|
|
|
@ -396,6 +396,183 @@ |
|
|
|
|
</if> |
|
|
|
|
</trim> |
|
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
<insert id="insertBuyerOnDuplicateKey" parameterType="com.dxhy.order.baseservice.module.buyer.model.BuyerEntity"> |
|
|
|
|
<bind name="dataType" value="${dataType}"/> |
|
|
|
|
INSERT INTO buyer_manage_info |
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
|
<if test="id != null"> |
|
|
|
|
id, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxpayerCode != null"> |
|
|
|
|
taxpayer_code, |
|
|
|
|
</if> |
|
|
|
|
<if test="purchaseName != null"> |
|
|
|
|
purchase_name, |
|
|
|
|
</if> |
|
|
|
|
<if test="address != null"> |
|
|
|
|
address, |
|
|
|
|
</if> |
|
|
|
|
<if test="phone != null"> |
|
|
|
|
phone, |
|
|
|
|
</if> |
|
|
|
|
<if test="bankOfDeposit != null"> |
|
|
|
|
bank_of_deposit, |
|
|
|
|
</if> |
|
|
|
|
<if test="bankNumber != null"> |
|
|
|
|
bank_number, |
|
|
|
|
</if> |
|
|
|
|
<if test="email != null"> |
|
|
|
|
email, |
|
|
|
|
</if> |
|
|
|
|
<if test="sjh != null"> |
|
|
|
|
sjh, |
|
|
|
|
</if> |
|
|
|
|
<if test="remarks != null"> |
|
|
|
|
remarks, |
|
|
|
|
</if> |
|
|
|
|
create_time, |
|
|
|
|
modify_time, |
|
|
|
|
<if test="createUserId != null"> |
|
|
|
|
create_user_id, |
|
|
|
|
</if> |
|
|
|
|
<if test="modifyUserId != null"> |
|
|
|
|
modify_user_id, |
|
|
|
|
</if> |
|
|
|
|
<if test="ghfQylx != null"> |
|
|
|
|
ghf_qylx, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfNsrsbh != null"> |
|
|
|
|
xhf_nsrsbh, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfMc != null"> |
|
|
|
|
xhf_mc, |
|
|
|
|
</if> |
|
|
|
|
<if test="buyerCode != null"> |
|
|
|
|
buyer_code, |
|
|
|
|
</if> |
|
|
|
|
<if test="invoiceName != null"> |
|
|
|
|
invoice_name, |
|
|
|
|
</if> |
|
|
|
|
<if test="invoiceTaxno != null"> |
|
|
|
|
invoice_taxno, |
|
|
|
|
</if> |
|
|
|
|
<if test="mdmMulticodeJson != null"> |
|
|
|
|
mdm_multicode_json, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
</trim> |
|
|
|
|
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
|
<if test="id != null"> #{id,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxpayerCode != null"> #{taxpayerCode,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="purchaseName != null"> #{purchaseName,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="address != null"> #{address,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="phone != null"> #{phone,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="bankOfDeposit != null"> #{bankOfDeposit,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="bankNumber != null"> #{bankNumber,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="email != null"> #{email,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="sjh != null"> #{sjh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="remarks != null"> #{remarks,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 1"> |
|
|
|
|
SYSDATE, |
|
|
|
|
SYSDATE, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 0"> |
|
|
|
|
now(), |
|
|
|
|
now(), |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="createUserId != null"> #{createUserId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="modifyUserId != null"> #{modifyUserId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="ghfQylx != null"> #{ghfQylx,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfNsrsbh != null"> #{xhfNsrsbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfMc != null"> #{xhfMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="buyerCode != null"> #{buyerCode,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="invoiceName != null"> #{invoiceName,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="invoiceTaxno != null"> #{invoiceTaxno,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="mdmMulticodeJson != null"> #{mdmMulticodeJson,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
</trim> |
|
|
|
|
on duplicate key update |
|
|
|
|
<if test="id != null"> |
|
|
|
|
id = VALUES(id), |
|
|
|
|
</if> |
|
|
|
|
<if test="taxpayerCode != null"> |
|
|
|
|
taxpayer_code = VALUES(taxpayer_code), |
|
|
|
|
</if> |
|
|
|
|
<if test="purchaseName != null"> |
|
|
|
|
purchase_name = VALUES(purchase_name), |
|
|
|
|
</if> |
|
|
|
|
<if test="address != null"> |
|
|
|
|
address = VALUES(address), |
|
|
|
|
</if> |
|
|
|
|
<if test="phone != null"> |
|
|
|
|
phone = VALUES(phone), |
|
|
|
|
</if> |
|
|
|
|
<if test="bankOfDeposit != null"> |
|
|
|
|
bank_of_deposit = VALUES(bank_of_deposit), |
|
|
|
|
</if> |
|
|
|
|
<if test="bankNumber != null"> |
|
|
|
|
bank_number = VALUES(bank_number), |
|
|
|
|
</if> |
|
|
|
|
<if test="email != null"> |
|
|
|
|
email = VALUES(email), |
|
|
|
|
</if> |
|
|
|
|
<if test="sjh != null"> |
|
|
|
|
sjh = VALUES(sjh), |
|
|
|
|
</if> |
|
|
|
|
<if test="remarks != null"> |
|
|
|
|
remarks = VALUES(remarks), |
|
|
|
|
</if> |
|
|
|
|
create_time = VALUES(create_time), |
|
|
|
|
modify_time = VALUES(modify_time), |
|
|
|
|
<if test="createUserId != null"> |
|
|
|
|
create_user_id = VALUES(create_user_id), |
|
|
|
|
</if> |
|
|
|
|
<if test="modifyUserId != null"> |
|
|
|
|
modify_user_id = VALUES(modify_user_id), |
|
|
|
|
</if> |
|
|
|
|
<if test="ghfQylx != null"> |
|
|
|
|
ghf_qylx = VALUES(ghf_qylx), |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfNsrsbh != null"> |
|
|
|
|
xhf_nsrsbh = VALUES(xhf_nsrsbh), |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfMc != null"> |
|
|
|
|
xhf_mc = VALUES(xhf_mc), |
|
|
|
|
</if> |
|
|
|
|
<if test="buyerCode != null"> |
|
|
|
|
buyer_code = VALUES(buyer_code), |
|
|
|
|
</if> |
|
|
|
|
<if test="invoiceName != null"> |
|
|
|
|
invoice_name = VALUES(invoice_name), |
|
|
|
|
</if> |
|
|
|
|
<if test="invoiceTaxno != null"> |
|
|
|
|
invoice_taxno = VALUES(invoice_taxno), |
|
|
|
|
</if> |
|
|
|
|
<if test="mdmMulticodeJson != null"> |
|
|
|
|
mdm_multicode_json = VALUES(mdm_multicode_json) |
|
|
|
|
</if> |
|
|
|
|
</insert> |
|
|
|
|
<insert id="insertBuyerByList"> |
|
|
|
|
INSERT INTO buyer_manage_info ( |
|
|
|
|
id, |
|
|
|
|