select CUSTOMER_SYSID, CUSTOMER_REGNO, CUSTOMER_NO, CUSTOMER_NAME_C, CUSTOMER_TAXNO,
CUSTOMER_ADDRESS, OFFICEPHONE, CUSTOMER_BANK, CUSTOMER_BANKACCOUNT, CUSTOMER_REGADDR,
EMAIL_ADDRESS, OPPOSITE_ID, OPPOSITE_CHARACTER, GAT_FLAG, GROUP_FLAG,
COUNTRY, COUNTRY_NAME, LEGAL_PERSON_NAME, CERTIFICATE_TYPE,
CERTIFICATE_NUM, TIN_CODE, REGISTERED_CAPITAL, REG_CAPITAL,
OPPOSITE_CODE, OPPOSITE_STATUS, IS_SGAT, IS_JTN,
NATURE_OF_ENTERPRISE_ORG, NATURE_OF_ENTERPRISE_ORG_LEV, RELATIVE_TYPE,
IS_DELETED, COMMENTS, REMARK, CREATE_BY, CREATE_TIME,
UPDATE_BY, UPDATE_TIME, sync_status, sync_time, sync_message
from ILDM_FEE_CUSTOMER_INFO
insert into ILDM_FEE_CUSTOMER_INFO
(
CUSTOMER_SYSID, CUSTOMER_NAME_C, CUSTOMER_TAXNO, CUSTOMER_REGADDR, EMAIL_ADDRESS,
OPPOSITE_ID, OPPOSITE_CHARACTER, GAT_FLAG, GROUP_FLAG, COUNTRY,
COUNTRY_NAME, LEGAL_PERSON_NAME, CERTIFICATE_TYPE, CERTIFICATE_NUM,
TIN_CODE, REGISTERED_CAPITAL, REG_CAPITAL, OPPOSITE_CODE,
OPPOSITE_STATUS, IS_SGAT, IS_JTN, NATURE_OF_ENTERPRISE_ORG,
NATURE_OF_ENTERPRISE_ORG_LEV, RELATIVE_TYPE, IS_DELETED, COMMENTS,
REMARK, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME,
sync_status, sync_time, sync_message
)
values
(
#{customerSysid}, #{customerNameC}, #{customerTaxno}, #{customerRegaddr}, #{emailAddress},
#{oppositeId}, #{oppositeCharacter}, #{gatFlag}, #{groupFlag}, #{country},
#{countryName}, #{legalPersonName}, #{certificateType}, #{certificateNum},
#{tinCode}, #{registeredCapital}, #{regCapital}, #{oppositeCode},
#{oppositeStatus}, #{isSgat}, #{isJtn}, #{natureOfEnterpriseOrg},
#{natureOfEnterpriseOrgLev}, #{relativeType}, #{isDeleted}, #{comments},
#{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime},
#{syncStatus}, #{syncTime}, #{syncMessage}
)
update ILDM_FEE_CUSTOMER_INFO
CUSTOMER_NAME_C = #{customerNameC},
CUSTOMER_TAXNO = #{customerTaxno},
CUSTOMER_REGADDR = #{customerRegaddr},
EMAIL_ADDRESS = #{emailAddress},
OPPOSITE_CHARACTER = #{oppositeCharacter},
GAT_FLAG = #{gatFlag},
GROUP_FLAG = #{groupFlag},
COUNTRY = #{country},
COUNTRY_NAME = #{countryName},
LEGAL_PERSON_NAME = #{legalPersonName},
CERTIFICATE_TYPE = #{certificateType},
CERTIFICATE_NUM = #{certificateNum},
TIN_CODE = #{tinCode},
REGISTERED_CAPITAL = #{registeredCapital},
REG_CAPITAL = #{regCapital},
OPPOSITE_CODE = #{oppositeCode},
OPPOSITE_STATUS = #{oppositeStatus},
IS_SGAT = #{isSgat},
IS_JTN = #{isJtn},
NATURE_OF_ENTERPRISE_ORG = #{natureOfEnterpriseOrg},
NATURE_OF_ENTERPRISE_ORG_LEV = #{natureOfEnterpriseOrgLev},
RELATIVE_TYPE = #{relativeType},
COMMENTS = #{comments},
REMARK = #{remark},
UPDATE_BY = #{updateBy},
UPDATE_TIME = #{updateTime},
sync_status = #{syncStatus},
sync_time = #{syncTime},
sync_message = #{syncMessage},
where CUSTOMER_SYSID = #{customerSysid}
and IS_DELETED = 'N'
update ILDM_FEE_CUSTOMER_INFO
set IS_DELETED = #{isDeleted},
UPDATE_BY = #{updateBy},
UPDATE_TIME = #{updateTime}
where CUSTOMER_SYSID in
#{customerSysid}
update SEAL_PARTNER_CONTACT
set del_flag = #{delFlag},
update_by = #{updateBy},
update_time = #{updateTime}
where partner_record_id = #{partnerRecordId}
and del_flag = '0'
update SEAL_PARTNER_CONTACT
set del_flag = #{delFlag},
update_by = #{updateBy},
update_time = #{updateTime}
where partner_record_id in
#{partnerRecordId}
and del_flag = '0'
INSERT ALL
INTO SEAL_PARTNER_CONTACT
(
id, partner_record_id, contact_name, contact_phone, postal_address, email,
sort_order, del_flag, create_by, create_time, update_by, update_time, remark
)
VALUES
(
#{item.id}, #{item.partnerRecordId}, #{item.contactName}, #{item.contactPhone},
#{item.postalAddress}, #{item.email}, #{item.sortOrder},
#{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{item.remark}
)
SELECT 1 FROM DUAL
update ILDM_FEE_CUSTOMER_INFO
set OPPOSITE_ID = #{oppositeId},
sync_status = #{syncStatus},
sync_time = #{syncTime},
sync_message = #{syncMessage},
UPDATE_BY = #{updateBy},
UPDATE_TIME = #{updateTime}
where CUSTOMER_SYSID = #{customerSysid}
and IS_DELETED = 'N'