select id, cust_type, cust_tag, cust_scale, cust_name, lp_name, cust_phone, cust_id, cust_isn, cust_capital, cust_location, loan_tag, status, belong_branch_id, belong_branch_name, belong_outlet_id, belong_outlet_name, belong_user_id, belong_user_name, create_by, create_time, update_by, update_time, region_code, social_credit_code, tel,
register_location, business_scope, taxpayer_identification_number, taxpayer_qualification, label, industry, cust_idc,cust_age,cust_gender,birthday,record_status from cust_info_business
insert into cust_info_business
cust_type,
cust_tag,
cust_scale,
cust_name,
lp_name,
cust_phone,
cust_id,
cust_isn,
cust_capital,
cust_location,
loan_tag,
status,
belong_branch_id,
belong_branch_name,
belong_outlet_id,
belong_outlet_name,
belong_user_id,
belong_user_name,
create_by,
create_time,
update_by,
update_time,
region_code,
social_credit_code,
tel,
register_location,
business_scope,
taxpayer_identification_number,
taxpayer_qualification,
label,
industry,
cust_idc,
cust_age,
cust_gender,
birthday,
record_status ,
#{custType},
#{custTag},
#{custScale},
#{custName},
#{lpName},
#{custPhone},
#{custId},
#{custIsn},
#{custCapital},
#{custLocation},
#{loanTag},
#{status},
#{belongBranchId},
#{belongBranchName},
#{belongOutletId},
#{belongOutletName},
#{belongUserId},
#{belongUserName},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{regionCode},
#{socialCreditCode},
#{tel},
#{registerLocation},
#{businessScope},
#{taxpayerIdentificationNumber},
#{taxpayerQualification},
#{label},
#{industry},
#{custIdc},
#{custAge},
#{custGender},
#{birthday},
#{recordStatus}
update cust_info_business
cust_type = #{custType},
cust_tag = #{custTag},
cust_scale = #{custScale},
cust_name = #{custName},
lp_name = #{lpName},
cust_phone = #{custPhone},
cust_id = #{custId},
cust_isn = #{custIsn},
cust_capital = #{custCapital},
cust_location = #{custLocation},
loan_tag = #{loanTag},
status = #{status},
belong_branch_id = #{belongBranchId},
belong_branch_name = #{belongBranchName},
belong_outlet_id = #{belongOutletId},
belong_outlet_name = #{belongOutletName},
belong_user_id = #{belongUserId},
belong_user_name = #{belongUserName},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
region_code = #{regionCode},
social_credit_code = #{socialCreditCode},
tel = #{tel},
register_location = #{registerLocation},
business_scope = #{businessScope},
taxpayer_identification_number = #{taxpayerIdentificationNumber},
taxpayer_qualification = #{taxpayerQualification},
label = #{label},
industry = #{industry},
cust_idc = #{custIdc},
cust_age = #{custAge},
cust_gender = #{custGender},
birthday = #{birthday},
record_status = #{recordStatus},
where id = #{id}
update cust_info_business
cust_type = #{custType},
cust_tag = #{custTag},
cust_scale = #{custScale},
cust_name = #{custName},
lp_name = #{lpName},
cust_phone = #{custPhone},
cust_id = #{custId},
cust_isn = #{custIsn},
cust_capital = #{custCapital},
cust_location = #{custLocation},
loan_tag = #{loanTag},
status = #{status},
belong_branch_id = #{belongBranchId},
belong_branch_name = #{belongBranchName},
belong_outlet_id = #{belongOutletId},
belong_outlet_name = #{belongOutletName},
belong_user_id = #{belongUserId},
belong_user_name = #{belongUserName},
create_by = #{createBy},
update_by = #{updateBy},
update_time = #{updateTime},
region_code = #{regionCode},
social_credit_code = #{socialCreditCode},
tel = #{tel},
register_location = #{registerLocation},
business_scope = #{businessScope},
taxpayer_identification_number = #{taxpayerIdentificationNumber},
taxpayer_qualification = #{taxpayerQualification},
label = #{label},
industry = #{industry},
cust_idc = #{custIdc},
cust_age = #{custAge},
cust_gender = #{custGender},
birthday = #{birthday},
record_status = #{recordStatus},
where cust_id = #{custId}
delete from cust_info_business where id = #{id}
delete from cust_info_business where id in
#{id}
update cust_info_business
cust_name = #{anchorName},
industry = #{belongBusiness},
update_by = #{updateBy},
update_time = #{updateTime},
update_dept = #{updateOrg},
${addressName} = #{address},
region_code = #{regionCode},
where social_credit_code = #{legalId}
insert into cust_info_business
cust_id,
cust_isn,
social_credit_code,
cust_name,
industry,
update_by,
update_time,
${addressName},
region_code,
#{custId},
#{custIsn},
#{legalId},
#{anchorName},
#{belongBusiness},
#{updateBy},
#{updateTime},
#{address},
#{regionCode},
update cust_info_business set region_code ='' where social_credit_code = #{legalId}
update cust_info_business_${deptCode}
set cust_level = case social_credit_code
when #{item.socialCreditCode} then #{item.custLevel}
end
where social_credit_code in
#{item.socialCreditCode}
INSERT INTO cust_info_business
(cust_id,cust_name, social_credit_code, update_by, update_time, cust_phone, industry, asset, credit)
VALUES
(#{item.custId},#{item.custName}, #{item.socialCreditCode}, #{item.createBy}, #{item.createTime}, #{item.custPhone},#{item.industry},#{item.asset},#{item.credit})