|
|
|
@ -39,42 +39,44 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_mer (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, 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, ", |
|
|
|
|
"lar_id_card_portrait_img, lar_id_card_national_emblem_img, ", |
|
|
|
|
"lar_id_card_address, lar_id_card_period_type, ", |
|
|
|
|
"lar_id_card_period_start, lar_id_card_period_end, ", |
|
|
|
|
"complete_status, mer_status, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{agentId,jdbcType=BIGINT}, #{agentName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{salesmanId,jdbcType=BIGINT}, #{salesmanName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{regPhone,jdbcType=VARCHAR}, #{regName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{regEmail,jdbcType=VARCHAR}, #{merType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{merNo,jdbcType=VARCHAR}, #{merName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merAbbreviate,jdbcType=VARCHAR}, #{merMccCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merMccName,jdbcType=VARCHAR}, #{blisUrl,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{blisName,jdbcType=VARCHAR}, #{blisNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{blisRegAddress,jdbcType=VARCHAR}, #{blisPeriodType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{blisPeriodStart,jdbcType=VARCHAR}, #{blisPeriodEnd,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{larName,jdbcType=VARCHAR}, #{larIdCard,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{larIdCardPortraitImg,jdbcType=VARCHAR}, #{larIdCardNationalEmblemImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{larIdCardAddress,jdbcType=VARCHAR}, #{larIdCardPeriodType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{larIdCardPeriodStart,jdbcType=VARCHAR}, #{larIdCardPeriodEnd,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{completeStatus,jdbcType=INTEGER}, #{merStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into bs_mer (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, ", |
|
|
|
|
"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, lar_id_card_portrait_img, ", |
|
|
|
|
"lar_id_card_national_emblem_img, lar_id_card_address, ", |
|
|
|
|
"lar_id_card_period_type, lar_id_card_period_start, ", |
|
|
|
|
"lar_id_card_period_end, complete_status, ", |
|
|
|
|
"mer_status, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{orgNo,jdbcType=VARCHAR}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{companyName,jdbcType=VARCHAR}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{agentName,jdbcType=VARCHAR}, #{salesmanId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{salesmanName,jdbcType=VARCHAR}, #{regPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{regName,jdbcType=VARCHAR}, #{regEmail,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merType,jdbcType=INTEGER}, #{merNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merName,jdbcType=VARCHAR}, #{merAbbreviate,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merMccCode,jdbcType=VARCHAR}, #{merMccName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{blisUrl,jdbcType=VARCHAR}, #{blisName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{blisNo,jdbcType=VARCHAR}, #{blisRegAddress,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{blisPeriodType,jdbcType=INTEGER}, #{blisPeriodStart,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{blisPeriodEnd,jdbcType=VARCHAR}, #{larName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{larIdCard,jdbcType=VARCHAR}, #{larIdCardPortraitImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{larIdCardNationalEmblemImg,jdbcType=VARCHAR}, #{larIdCardAddress,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{larIdCardPeriodType,jdbcType=INTEGER}, #{larIdCardPeriodStart,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{larIdCardPeriodEnd,jdbcType=VARCHAR}, #{completeStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{merStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsMer record); |
|
|
|
@ -86,6 +88,7 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
|
@SelectProvider(type=BsMerSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@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_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -128,7 +131,7 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
|
|
|
|
|
|
@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, ", |
|
|
|
|
"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, ", |
|
|
|
@ -140,6 +143,7 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@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_name", property="companyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -191,7 +195,8 @@ public interface BsMerMapper extends BsMerMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"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},", |
|
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
|
"agent_name = #{agentName,jdbcType=VARCHAR},", |
|
|
|
|