|
|
@ -39,42 +39,44 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_mer (company_id, company_name, ", |
|
|
|
"insert into bs_mer (org_no, company_id, ", |
|
|
|
"agent_id, agent_name, ", |
|
|
|
"company_name, agent_id, ", |
|
|
|
"salesman_id, salesman_name, ", |
|
|
|
"agent_name, salesman_id, ", |
|
|
|
"reg_phone, reg_name, ", |
|
|
|
"salesman_name, reg_phone, ", |
|
|
|
"reg_email, mer_type, ", |
|
|
|
"reg_name, reg_email, ", |
|
|
|
"mer_no, mer_name, ", |
|
|
|
"mer_type, mer_no, ", |
|
|
|
"mer_abbreviate, mer_mcc_code, ", |
|
|
|
"mer_name, mer_abbreviate, ", |
|
|
|
"mer_mcc_name, blis_url, ", |
|
|
|
"mer_mcc_code, mer_mcc_name, ", |
|
|
|
"blis_name, blis_no, ", |
|
|
|
"blis_url, blis_name, ", |
|
|
|
"blis_reg_address, blis_period_type, ", |
|
|
|
"blis_no, blis_reg_address, ", |
|
|
|
"blis_period_start, blis_period_end, ", |
|
|
|
"blis_period_type, blis_period_start, ", |
|
|
|
"lar_name, lar_id_card, ", |
|
|
|
"blis_period_end, lar_name, ", |
|
|
|
"lar_id_card_portrait_img, lar_id_card_national_emblem_img, ", |
|
|
|
"lar_id_card, lar_id_card_portrait_img, ", |
|
|
|
"lar_id_card_address, lar_id_card_period_type, ", |
|
|
|
"lar_id_card_national_emblem_img, lar_id_card_address, ", |
|
|
|
"lar_id_card_period_start, lar_id_card_period_end, ", |
|
|
|
"lar_id_card_period_type, lar_id_card_period_start, ", |
|
|
|
"complete_status, mer_status, ", |
|
|
|
"lar_id_card_period_end, complete_status, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"mer_status, create_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"#{agentId,jdbcType=BIGINT}, #{agentName,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{orgNo,jdbcType=VARCHAR}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{salesmanId,jdbcType=BIGINT}, #{salesmanName,jdbcType=VARCHAR}, ", |
|
|
|
"#{companyName,jdbcType=VARCHAR}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
"#{regPhone,jdbcType=VARCHAR}, #{regName,jdbcType=VARCHAR}, ", |
|
|
|
"#{agentName,jdbcType=VARCHAR}, #{salesmanId,jdbcType=BIGINT}, ", |
|
|
|
"#{regEmail,jdbcType=VARCHAR}, #{merType,jdbcType=INTEGER}, ", |
|
|
|
"#{salesmanName,jdbcType=VARCHAR}, #{regPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{merNo,jdbcType=VARCHAR}, #{merName,jdbcType=VARCHAR}, ", |
|
|
|
"#{regName,jdbcType=VARCHAR}, #{regEmail,jdbcType=VARCHAR}, ", |
|
|
|
"#{merAbbreviate,jdbcType=VARCHAR}, #{merMccCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{merType,jdbcType=INTEGER}, #{merNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{merMccName,jdbcType=VARCHAR}, #{blisUrl,jdbcType=VARCHAR}, ", |
|
|
|
"#{merName,jdbcType=VARCHAR}, #{merAbbreviate,jdbcType=VARCHAR}, ", |
|
|
|
"#{blisName,jdbcType=VARCHAR}, #{blisNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{merMccCode,jdbcType=VARCHAR}, #{merMccName,jdbcType=VARCHAR}, ", |
|
|
|
"#{blisRegAddress,jdbcType=VARCHAR}, #{blisPeriodType,jdbcType=INTEGER}, ", |
|
|
|
"#{blisUrl,jdbcType=VARCHAR}, #{blisName,jdbcType=VARCHAR}, ", |
|
|
|
"#{blisPeriodStart,jdbcType=VARCHAR}, #{blisPeriodEnd,jdbcType=VARCHAR}, ", |
|
|
|
"#{blisNo,jdbcType=VARCHAR}, #{blisRegAddress,jdbcType=VARCHAR}, ", |
|
|
|
"#{larName,jdbcType=VARCHAR}, #{larIdCard,jdbcType=VARCHAR}, ", |
|
|
|
"#{blisPeriodType,jdbcType=INTEGER}, #{blisPeriodStart,jdbcType=VARCHAR}, ", |
|
|
|
"#{larIdCardPortraitImg,jdbcType=VARCHAR}, #{larIdCardNationalEmblemImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{blisPeriodEnd,jdbcType=VARCHAR}, #{larName,jdbcType=VARCHAR}, ", |
|
|
|
"#{larIdCardAddress,jdbcType=VARCHAR}, #{larIdCardPeriodType,jdbcType=INTEGER}, ", |
|
|
|
"#{larIdCard,jdbcType=VARCHAR}, #{larIdCardPortraitImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{larIdCardPeriodStart,jdbcType=VARCHAR}, #{larIdCardPeriodEnd,jdbcType=VARCHAR}, ", |
|
|
|
"#{larIdCardNationalEmblemImg,jdbcType=VARCHAR}, #{larIdCardAddress,jdbcType=VARCHAR}, ", |
|
|
|
"#{completeStatus,jdbcType=INTEGER}, #{merStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{larIdCardPeriodType,jdbcType=INTEGER}, #{larIdCardPeriodStart,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{larIdCardPeriodEnd,jdbcType=VARCHAR}, #{completeStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{merStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsMer record); |
|
|
|
int insert(BsMer record); |
|
|
@ -86,6 +88,7 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
@SelectProvider(type=BsMerSqlProvider.class, method="selectByExample") |
|
|
|
@SelectProvider(type=BsMerSqlProvider.class, method="selectByExample") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="org_no", property="orgNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
@ -128,7 +131,7 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, company_id, company_name, agent_id, agent_name, salesman_id, salesman_name, ", |
|
|
|
"id, org_no, company_id, company_name, agent_id, agent_name, salesman_id, salesman_name, ", |
|
|
|
"reg_phone, reg_name, reg_email, mer_type, mer_no, mer_name, mer_abbreviate, ", |
|
|
|
"reg_phone, reg_name, reg_email, mer_type, mer_no, mer_name, mer_abbreviate, ", |
|
|
|
"mer_mcc_code, mer_mcc_name, blis_url, blis_name, blis_no, blis_reg_address, ", |
|
|
|
"mer_mcc_code, mer_mcc_name, blis_url, blis_name, blis_no, blis_reg_address, ", |
|
|
|
"blis_period_type, blis_period_start, blis_period_end, lar_name, lar_id_card, ", |
|
|
|
"blis_period_type, blis_period_start, blis_period_end, lar_name, lar_id_card, ", |
|
|
@ -140,6 +143,7 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="org_no", property="orgNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
@ -191,7 +195,8 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update bs_mer", |
|
|
|
"update bs_mer", |
|
|
|
"set company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"set org_no = #{orgNo,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"company_name = #{companyName,jdbcType=VARCHAR},", |
|
|
|
"company_name = #{companyName,jdbcType=VARCHAR},", |
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
"agent_name = #{agentName,jdbcType=VARCHAR},", |
|
|
|
"agent_name = #{agentName,jdbcType=VARCHAR},", |
|
|
|