|
|
|
@ -39,16 +39,20 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into en_service_company (`name`, `status`, ", |
|
|
|
|
"create_user, create_user_name, ", |
|
|
|
|
"create_time, update_user, ", |
|
|
|
|
"update_user_name, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{name,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createUser,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=BIGINT}, ", |
|
|
|
|
"#{updateUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into en_service_company (address, person, ", |
|
|
|
|
"contact_info, `name`, ", |
|
|
|
|
"`status`, create_user, ", |
|
|
|
|
"create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{address,jdbcType=VARCHAR}, #{person,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{contactInfo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createUser,jdbcType=BIGINT}, ", |
|
|
|
|
"#{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateUser,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(EnServiceCompany record); |
|
|
|
@ -60,6 +64,9 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { |
|
|
|
|
@SelectProvider(type=EnServiceCompanySqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -76,13 +83,16 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `name`, `status`, create_user, create_user_name, create_time, update_user, ", |
|
|
|
|
"update_user_name, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, address, person, contact_info, `name`, `status`, create_user, create_user_name, ", |
|
|
|
|
"create_time, update_user, update_user_name, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from en_service_company", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -108,7 +118,10 @@ public interface EnServiceCompanyMapper extends EnServiceCompanyMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update en_service_company", |
|
|
|
|
"set `name` = #{name,jdbcType=VARCHAR},", |
|
|
|
|
"set address = #{address,jdbcType=VARCHAR},", |
|
|
|
|
"person = #{person,jdbcType=VARCHAR},", |
|
|
|
|
"contact_info = #{contactInfo,jdbcType=VARCHAR},", |
|
|
|
|
"`name` = #{name,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_user = #{createUser,jdbcType=BIGINT},", |
|
|
|
|
"create_user_name = #{createUserName,jdbcType=VARCHAR},", |
|
|
|
|