|
|
|
@ -39,13 +39,15 @@ public interface EnSerCompanySgRelMapper extends EnSerCompanySgRelMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into en_ser_company_sg_rel (company_id, segment_id, ", |
|
|
|
|
"insert into en_ser_company_sg_rel (company_id, company_name, ", |
|
|
|
|
"segment_name, segment_id, ", |
|
|
|
|
"`status`, create_user, ", |
|
|
|
|
"create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{segmentId,jdbcType=BIGINT}, ", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{segmentName,jdbcType=VARCHAR}, #{segmentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createUser,jdbcType=BIGINT}, ", |
|
|
|
|
"#{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateUser,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, ", |
|
|
|
@ -63,6 +65,8 @@ public interface EnSerCompanySgRelMapper extends EnSerCompanySgRelMapperExt { |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="segment_name", property="segmentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="segment_id", property="segmentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -79,14 +83,17 @@ public interface EnSerCompanySgRelMapper extends EnSerCompanySgRelMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, company_id, segment_id, `status`, create_user, create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, company_id, company_name, segment_name, segment_id, `status`, create_user, ", |
|
|
|
|
"create_user_name, create_time, update_user, update_user_name, update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"from en_ser_company_sg_rel", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="segment_name", property="segmentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="segment_id", property="segmentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -113,6 +120,8 @@ public interface EnSerCompanySgRelMapper extends EnSerCompanySgRelMapperExt { |
|
|
|
|
@Update({ |
|
|
|
|
"update en_ser_company_sg_rel", |
|
|
|
|
"set company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
|
"company_name = #{companyName,jdbcType=VARCHAR},", |
|
|
|
|
"segment_name = #{segmentName,jdbcType=VARCHAR},", |
|
|
|
|
"segment_id = #{segmentId,jdbcType=BIGINT},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_user = #{createUser,jdbcType=BIGINT},", |
|
|
|
|