供应商变更
This commit is contained in:
@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierChangeApplyMapper">
|
||||
|
||||
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeApply" id="CoscoSupplierChangeApplyResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="supplierId" column="supplier_id"/>
|
||||
<result property="changeBy" column="change_by"/>
|
||||
<result property="changeTime" column="change_time"/>
|
||||
<result property="approveStatus" column="approve_status"/>
|
||||
<result property="workFlowId" column="work_flow_id"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="lastUpdateTime" column="last_update_time"/>
|
||||
|
||||
<result property="supplierType" column="supplier_type"/>
|
||||
<result property="enterpriseType" column="enterprise_type"/>
|
||||
<result property="approveStatusText" column="approve_status_text"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCoscoSupplierChangeApplyVo">
|
||||
select id, supplier_id, change_by, change_time, approve_status,
|
||||
CASE
|
||||
WHEN approve_status = 0 THEN '审批中'
|
||||
WHEN approve_status = 1 THEN '通过'
|
||||
WHEN approve_status = 2 THEN '驳回'
|
||||
ELSE CAST(approve_status AS CHAR)
|
||||
END AS approve_status_text,
|
||||
work_flow_id, del_flag, create_by, create_time, update_by, update_time, last_update_time
|
||||
from cosco_supplier_change_apply
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="selectPageList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeApply" resultMap="CoscoSupplierChangeApplyResult">
|
||||
SELECT
|
||||
ca.id,
|
||||
sb.`name` as supplierName ,
|
||||
CASE
|
||||
WHEN sb.supplier_type = 'dvs' THEN '境内企业'
|
||||
WHEN sb.supplier_type = 'ovs' THEN '境外企业'
|
||||
WHEN sb.supplier_type = 'pe' THEN '个人'
|
||||
END AS supplier_type,
|
||||
sb.enterprise_type,
|
||||
caw.update_time,
|
||||
ca.change_time,
|
||||
CASE
|
||||
WHEN ca.approve_status = 0 THEN '审批中'
|
||||
WHEN ca.approve_status = 1 THEN '通过'
|
||||
WHEN ca.approve_status = 2 THEN '驳回'
|
||||
ELSE CAST(ca.approve_status AS CHAR)
|
||||
END AS approve_status_text
|
||||
FROM
|
||||
cosco_supplier_change_apply ca
|
||||
left join cosco_supplier_base sb on sb.id = ca.supplier_id and sb.del_flag = 'normal'
|
||||
left join cosco_access_supplier cas on sb.id = cas.supplier_id
|
||||
left join cosco_access_work caw on cas.access_work_id = caw.id and caw.del_flag = 'normal'
|
||||
where sb.access_status = 1 and sb.blacklist_status = 0 and sb.greylist_status = 0 and caw.apply_type = 0 and ca.del_flag = 'normal'
|
||||
<if test="vo.supplierName != null and vo.supplierName != ''">
|
||||
and sb.name like concat('%', #{vo.supplierName}, '%')
|
||||
</if>
|
||||
<if test="vo.supplierType != null and vo.supplierType != ''">
|
||||
and sb.supplier_type = #{vo.supplierType}
|
||||
</if>
|
||||
<if test="vo.startTime!=null and vo.startTime != ''">
|
||||
and ca.change_time >= #{vo.startTime}
|
||||
</if>
|
||||
<if test="vo.endTime!=null and vo.endTime != ''">
|
||||
and ca.change_time <= #{vo.endTime}
|
||||
</if>
|
||||
<if test="vo.approveStatus!=null and vo.approveStatus != ''">
|
||||
and ca.approve_status = #{vo.approveStatus}
|
||||
</if>
|
||||
order by ca.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectCoscoSupplierChangeApplyList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeApply" resultMap="CoscoSupplierChangeApplyResult">
|
||||
<include refid="selectCoscoSupplierChangeApplyVo"/>
|
||||
<where>
|
||||
<if test="supplierId != null and supplierId != ''">
|
||||
and supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="changeBy != null and changeBy != ''">
|
||||
and change_by = #{changeBy}
|
||||
</if>
|
||||
<if test="changeTime != null ">
|
||||
and change_time = #{changeTime}
|
||||
</if>
|
||||
<if test="approveStatus != null ">
|
||||
and approve_status = #{approveStatus}
|
||||
</if>
|
||||
<if test="workFlowId != null and workFlowId != ''">
|
||||
and work_flow_id = #{workFlowId}
|
||||
</if>
|
||||
<if test="lastUpdateTime != null ">
|
||||
and last_update_time = #{lastUpdateTime}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCoscoSupplierChangeApplyById" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeApplyResult">
|
||||
<include refid="selectCoscoSupplierChangeApplyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectBySupplierId" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeApplyResult">
|
||||
<include refid="selectCoscoSupplierChangeApplyVo"/>
|
||||
WHERE supplier_id = #{supplierId}
|
||||
AND del_flag = 'normal'
|
||||
ORDER BY change_time DESC
|
||||
LIMIT 1 OFFSET 1;
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertCoscoSupplierChangeApply" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeApply">
|
||||
insert into cosco_supplier_change_apply
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id,</if>
|
||||
<if test="changeBy != null">change_by,</if>
|
||||
<if test="changeTime != null">change_time,</if>
|
||||
<if test="approveStatus != null">approve_status,</if>
|
||||
<if test="workFlowId != null">work_flow_id,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="lastUpdateTime != null">last_update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="supplierId != null and supplierId != ''">#{supplierId},</if>
|
||||
<if test="changeBy != null">#{changeBy},</if>
|
||||
<if test="changeTime != null">#{changeTime},</if>
|
||||
<if test="approveStatus != null">#{approveStatus},</if>
|
||||
<if test="workFlowId != null">#{workFlowId},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="lastUpdateTime != null">#{lastUpdateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="batchCoscoSupplierChangeApply" parameterType="java.util.List">
|
||||
insert into cosco_supplier_change_apply
|
||||
( id, supplier_id, change_by, change_time, approve_status, work_flow_id, del_flag, create_by, create_time, update_by, update_time, last_update_time)
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.supplierId}, #{item.changeBy}, #{item.changeTime}, #{item.approveStatus}, #{item.workFlowId}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.lastUpdateTime})
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateCoscoSupplierChangeApply" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeApply">
|
||||
update cosco_supplier_change_apply
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id =
|
||||
#{supplierId},
|
||||
</if>
|
||||
<if test="changeBy != null">change_by =
|
||||
#{changeBy},
|
||||
</if>
|
||||
<if test="changeTime != null">change_time =
|
||||
#{changeTime},
|
||||
</if>
|
||||
<if test="approveStatus != null">approve_status =
|
||||
#{approveStatus},
|
||||
</if>
|
||||
<if test="workFlowId != null">work_flow_id =
|
||||
#{workFlowId},
|
||||
</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null and createBy != ''">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="lastUpdateTime != null">last_update_time =
|
||||
#{lastUpdateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeApplyById" parameterType="String">
|
||||
update cosco_supplier_change_apply set del_flag = 2
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeApplyByIds" parameterType="String">
|
||||
update cosco_supplier_change_apply set del_flag = 2 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,165 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierChangeBankMapper">
|
||||
|
||||
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBank" id="CoscoSupplierChangeBankResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="supplierId" column="supplier_id"/>
|
||||
<result property="interbankNumber" column="interbank_number"/>
|
||||
<result property="bank" column="bank"/>
|
||||
<result property="swiftCode" column="swift_code"/>
|
||||
<result property="accountName" column="account_name"/>
|
||||
<result property="account" column="account"/>
|
||||
<result property="currency" column="currency"/>
|
||||
<result property="nation" column="nation"/>
|
||||
<result property="province" column="province"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="supplierChangeApplyId" column="supplier_change_apply_id"/>
|
||||
<result property="supplierBankId" column="supplier_bank_id"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCoscoSupplierChangeBankVo">
|
||||
select id, supplier_bank_id,supplier_id, interbank_number, bank, swift_code, account_name, account, currency, nation, province, city, supplier_change_apply_id
|
||||
from cosco_supplier_change_bank
|
||||
</sql>
|
||||
|
||||
<select id="selectCoscoSupplierChangeBankList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBank" resultMap="CoscoSupplierChangeBankResult">
|
||||
<include refid="selectCoscoSupplierChangeBankVo"/>
|
||||
<where>
|
||||
<if test="supplierId != null and supplierId != ''">
|
||||
and supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="interbankNumber != null and interbankNumber != ''">
|
||||
and interbank_number = #{interbankNumber}
|
||||
</if>
|
||||
<if test="bank != null and bank != ''">
|
||||
and bank = #{bank}
|
||||
</if>
|
||||
<if test="swiftCode != null and swiftCode != ''">
|
||||
and swift_code = #{swiftCode}
|
||||
</if>
|
||||
<if test="accountName != null and accountName != ''">
|
||||
and account_name like concat('%', #{accountName}, '%')
|
||||
</if>
|
||||
<if test="account != null and account != ''">
|
||||
and account = #{account}
|
||||
</if>
|
||||
<if test="currency != null and currency != ''">
|
||||
and currency = #{currency}
|
||||
</if>
|
||||
<if test="nation != null and nation != ''">
|
||||
and nation = #{nation}
|
||||
</if>
|
||||
<if test="province != null and province != ''">
|
||||
and province = #{province}
|
||||
</if>
|
||||
<if test="city != null and city != ''">
|
||||
and city = #{city}
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">
|
||||
and supplier_change_apply_id = #{supplierChangeApplyId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCoscoSupplierChangeBankById" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeBankResult">
|
||||
<include refid="selectCoscoSupplierChangeBankVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCoscoSupplierChangeBank" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBank">
|
||||
insert into cosco_supplier_change_bank
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id,</if>
|
||||
<if test="interbankNumber != null">interbank_number,</if>
|
||||
<if test="bank != null">bank,</if>
|
||||
<if test="swiftCode != null">swift_code,</if>
|
||||
<if test="accountName != null">account_name,</if>
|
||||
<if test="account != null">account,</if>
|
||||
<if test="currency != null">currency,</if>
|
||||
<if test="nation != null">nation,</if>
|
||||
<if test="province != null">province,</if>
|
||||
<if test="city != null">city,</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id,</if>
|
||||
<if test="supplierBankId != null and supplierBankId != ''">supplier_bank_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="supplierId != null and supplierId != ''">#{supplierId},</if>
|
||||
<if test="interbankNumber != null">#{interbankNumber},</if>
|
||||
<if test="bank != null">#{bank},</if>
|
||||
<if test="swiftCode != null">#{swiftCode},</if>
|
||||
<if test="accountName != null">#{accountName},</if>
|
||||
<if test="account != null">#{account},</if>
|
||||
<if test="currency != null">#{currency},</if>
|
||||
<if test="nation != null">#{nation},</if>
|
||||
<if test="province != null">#{province},</if>
|
||||
<if test="city != null">#{city},</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">#{supplierChangeApplyId},</if>
|
||||
<if test="supplierBankId != null and supplierBankId != ''">#{supplierBankId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="batchCoscoSupplierChangeBank" parameterType="java.util.List">
|
||||
insert into cosco_supplier_change_bank
|
||||
( id, supplier_id, interbank_number, bank, swift_code, account_name, account, currency, nation, province, city, supplier_change_apply_id)
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.supplierId}, #{item.interbankNumber}, #{item.bank}, #{item.swiftCode}, #{item.accountName}, #{item.account}, #{item.currency}, #{item.nation}, #{item.province}, #{item.city}, #{item.supplierChangeApplyId})
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateCoscoSupplierChangeBank" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBank">
|
||||
update cosco_supplier_change_bank
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id =
|
||||
#{supplierId},
|
||||
</if>
|
||||
<if test="interbankNumber != null">interbank_number =
|
||||
#{interbankNumber},
|
||||
</if>
|
||||
<if test="bank != null">bank =
|
||||
#{bank},
|
||||
</if>
|
||||
<if test="swiftCode != null">swift_code =
|
||||
#{swiftCode},
|
||||
</if>
|
||||
<if test="accountName != null">account_name =
|
||||
#{accountName},
|
||||
</if>
|
||||
<if test="account != null">account =
|
||||
#{account},
|
||||
</if>
|
||||
<if test="currency != null">currency =
|
||||
#{currency},
|
||||
</if>
|
||||
<if test="nation != null">nation =
|
||||
#{nation},
|
||||
</if>
|
||||
<if test="province != null">province =
|
||||
#{province},
|
||||
</if>
|
||||
<if test="city != null">city =
|
||||
#{city},
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id =
|
||||
#{supplierChangeApplyId},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeBankById" parameterType="String">
|
||||
update cosco_supplier_change_bank set del_flag = 2
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeBankByIds" parameterType="String">
|
||||
update cosco_supplier_change_bank set del_flag = 2 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,471 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierChangeBaseMapper">
|
||||
|
||||
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBase" id="CoscoSupplierChangeBaseResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="supplierType" column="supplier_type"/>
|
||||
<result property="licenceAccessory" column="licence_accessory"/>
|
||||
<result property="licenceDate" column="licence_date"/>
|
||||
<result property="enterpriseType" column="enterprise_type"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="nameEn" column="name_en"/>
|
||||
<result property="socialCreditCode" column="social_credit_code"/>
|
||||
<result property="range" column="range"/>
|
||||
<result property="regAddress" column="reg_address"/>
|
||||
<result property="workAddress" column="work_address"/>
|
||||
<result property="parentCompanyInvestor" column="parent_company_investor"/>
|
||||
<result property="legalPerson" column="legal_person"/>
|
||||
<result property="idCard" column="id_card"/>
|
||||
<result property="capital" column="capital"/>
|
||||
<result property="contactsName" column="contacts_name"/>
|
||||
<result property="contactsPhone" column="contacts_phone"/>
|
||||
<result property="contactsType" column="contacts_type"/>
|
||||
<result property="contactsEmail" column="contacts_email"/>
|
||||
<result property="telephone" column="telephone"/>
|
||||
<result property="nation" column="nation"/>
|
||||
<result property="vat" column="vat"/>
|
||||
<result property="taxpayerId" column="taxpayer_id"/>
|
||||
<result property="currency" column="currency"/>
|
||||
<result property="personName" column="person_name"/>
|
||||
<result property="personPhone" column="person_phone"/>
|
||||
<result property="personBank" column="person_bank"/>
|
||||
<result property="personAccount" column="person_account"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="supplierChangeApplyId" column="supplier_change_apply_id"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="supplierChangeDiffResultMap" type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.SupplierChangeDiffResult">
|
||||
<result property="supplierTypeDiff" column="supplier_type_diff"/>
|
||||
<result property="licenceAccessoryDiff" column="licence_accessory_diff"/>
|
||||
<result property="licenceDateDiff" column="licence_date_diff"/>
|
||||
<result property="enterpriseTypeDiff" column="enterprise_type_diff"/>
|
||||
<result property="nameDiff" column="name_diff"/>
|
||||
<result property="nameEnDiff" column="name_en_diff"/>
|
||||
<result property="socialCreditCodeDiff" column="social_credit_code_diff"/>
|
||||
<result property="rangeDiff" column="range_diff"/>
|
||||
<result property="regAddressDiff" column="reg_address_diff"/>
|
||||
<result property="workAddressDiff" column="work_address_diff"/>
|
||||
<result property="parentCompanyInvestorDiff" column="parent_company_investor_diff"/>
|
||||
<result property="legalPersonDiff" column="legal_person_diff"/>
|
||||
<result property="idCardDiff" column="id_card_diff"/>
|
||||
<result property="capitalDiff" column="capital_diff"/>
|
||||
<result property="contactsNameDiff" column="contacts_name_diff"/>
|
||||
<result property="contactsPhoneDiff" column="contacts_phone_diff"/>
|
||||
<result property="contactsTypeDiff" column="contacts_type_diff"/>
|
||||
<result property="contactsEmailDiff" column="contacts_email_diff"/>
|
||||
<result property="telephoneDiff" column="telephone_diff"/>
|
||||
<result property="nationDiff" column="nation_diff"/>
|
||||
<result property="vatDiff" column="vat_diff"/>
|
||||
<result property="taxpayerIdDiff" column="taxpayer_id_diff"/>
|
||||
<result property="currencyDiff" column="currency_diff"/>
|
||||
<result property="personNameDiff" column="person_name_diff"/>
|
||||
<result property="personPhoneDiff" column="person_phone_diff"/>
|
||||
<result property="personBankDiff" column="person_bank_diff"/>
|
||||
<result property="personAccountDiff" column="person_account_diff"/>
|
||||
<result property="remarkDiff" column="remark_diff"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCoscoSupplierChangeBaseVo">
|
||||
select id, supplier_type, licence_accessory, licence_date, enterprise_type, name, name_en, social_credit_code, `range`, reg_address, work_address, parent_company_investor, legal_person, id_card, capital, contacts_name, contacts_phone, contacts_type, contacts_email, telephone, nation, vat, taxpayer_id, currency, person_name, person_phone, person_bank, person_account, remark, supplier_change_apply_id
|
||||
from cosco_supplier_change_base
|
||||
</sql>
|
||||
|
||||
<select id="selectCoscoSupplierChangeBaseList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBase" resultMap="CoscoSupplierChangeBaseResult">
|
||||
<include refid="selectCoscoSupplierChangeBaseVo"/>
|
||||
<where>
|
||||
<if test="supplierType != null and supplierType != ''">
|
||||
and supplier_type = #{supplierType}
|
||||
</if>
|
||||
<if test="licenceAccessory != null and licenceAccessory != ''">
|
||||
and licence_accessory = #{licenceAccessory}
|
||||
</if>
|
||||
<if test="licenceDate != null and licenceDate != ''">
|
||||
and licence_date = #{licenceDate}
|
||||
</if>
|
||||
<if test="enterpriseType != null and enterpriseType != ''">
|
||||
and enterprise_type = #{enterpriseType}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%', #{name}, '%')
|
||||
</if>
|
||||
<if test="nameEn != null and nameEn != ''">
|
||||
and name_en = #{nameEn}
|
||||
</if>
|
||||
<if test="socialCreditCode != null and socialCreditCode != ''">
|
||||
and social_credit_code = #{socialCreditCode}
|
||||
</if>
|
||||
<if test="range != null and range != ''">
|
||||
and range = #{range}
|
||||
</if>
|
||||
<if test="regAddress != null and regAddress != ''">
|
||||
and reg_address = #{regAddress}
|
||||
</if>
|
||||
<if test="workAddress != null and workAddress != ''">
|
||||
and work_address = #{workAddress}
|
||||
</if>
|
||||
<if test="parentCompanyInvestor != null and parentCompanyInvestor != ''">
|
||||
and parent_company_investor = #{parentCompanyInvestor}
|
||||
</if>
|
||||
<if test="legalPerson != null and legalPerson != ''">
|
||||
and legal_person = #{legalPerson}
|
||||
</if>
|
||||
<if test="idCard != null and idCard != ''">
|
||||
and id_card = #{idCard}
|
||||
</if>
|
||||
<if test="capital != null ">
|
||||
and capital = #{capital}
|
||||
</if>
|
||||
<if test="contactsName != null and contactsName != ''">
|
||||
and contacts_name like concat('%', #{contactsName}, '%')
|
||||
</if>
|
||||
<if test="contactsPhone != null and contactsPhone != ''">
|
||||
and contacts_phone = #{contactsPhone}
|
||||
</if>
|
||||
<if test="contactsType != null and contactsType != ''">
|
||||
and contacts_type = #{contactsType}
|
||||
</if>
|
||||
<if test="contactsEmail != null and contactsEmail != ''">
|
||||
and contacts_email = #{contactsEmail}
|
||||
</if>
|
||||
<if test="telephone != null and telephone != ''">
|
||||
and telephone = #{telephone}
|
||||
</if>
|
||||
<if test="nation != null and nation != ''">
|
||||
and nation = #{nation}
|
||||
</if>
|
||||
<if test="vat != null and vat != ''">
|
||||
and vat = #{vat}
|
||||
</if>
|
||||
<if test="taxpayerId != null and taxpayerId != ''">
|
||||
and taxpayer_id = #{taxpayerId}
|
||||
</if>
|
||||
<if test="currency != null and currency != ''">
|
||||
and currency = #{currency}
|
||||
</if>
|
||||
<if test="personName != null and personName != ''">
|
||||
and person_name like concat('%', #{personName}, '%')
|
||||
</if>
|
||||
<if test="personPhone != null and personPhone != ''">
|
||||
and person_phone = #{personPhone}
|
||||
</if>
|
||||
<if test="personBank != null and personBank != ''">
|
||||
and person_bank = #{personBank}
|
||||
</if>
|
||||
<if test="personAccount != null and personAccount != ''">
|
||||
and person_account = #{personAccount}
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">
|
||||
and supplier_change_apply_id = #{supplierChangeApplyId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectDiff" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBase" resultMap="supplierChangeDiffResultMap">
|
||||
SELECT
|
||||
CASE WHEN a.supplier_type != b.supplier_type OR (a.supplier_type IS NULL XOR b.supplier_type IS NULL)
|
||||
THEN CONCAT('供应商身份类型: 变更前: ', a.supplier_type, ' 变更后: ', b.supplier_type) ELSE NULL END AS supplier_type_diff,
|
||||
CASE WHEN a.licence_accessory != b.licence_accessory OR (a.licence_accessory IS NULL XOR b.licence_accessory IS NULL)
|
||||
THEN CONCAT('营业执照附件: 变更前: ', a.licence_accessory, ' 变更后: ', b.licence_accessory) ELSE NULL END AS licence_accessory_diff,
|
||||
CASE WHEN a.licence_date != b.licence_date OR (a.licence_date IS NULL XOR b.licence_date IS NULL)
|
||||
THEN CONCAT('营业执照有效期: 变更前: ', a.licence_date, ' 变更后: ', b.licence_date) ELSE NULL END AS licence_date_diff,
|
||||
CASE WHEN a.enterprise_type != b.enterprise_type OR (a.enterprise_type IS NULL XOR b.enterprise_type IS NULL)
|
||||
THEN CONCAT('企业类型: 变更前: ', a.enterprise_type, ' 变更后: ', b.enterprise_type) ELSE NULL END AS enterprise_type_diff,
|
||||
CASE WHEN a.name != b.name OR (a.name IS NULL XOR b.name IS NULL)
|
||||
THEN CONCAT('企业名称: 变更前: ', a.name, ' 变更后: ', b.name) ELSE NULL END AS name_diff,
|
||||
CASE WHEN a.name_en != b.name_en OR (a.name_en IS NULL XOR b.name_en IS NULL)
|
||||
THEN CONCAT('企业英文名称: 变更前: ', a.name_en, ' 变更后: ', b.name_en) ELSE NULL END AS name_en_diff,
|
||||
CASE WHEN a.social_credit_code != b.social_credit_code OR (a.social_credit_code IS NULL XOR b.social_credit_code IS NULL)
|
||||
THEN CONCAT('统一社会信用代码: 变更前: ', a.social_credit_code, ' 变更后: ', b.social_credit_code) ELSE NULL END AS social_credit_code_diff,
|
||||
CASE WHEN a.range != b.range OR (a.range IS NULL XOR b.range IS NULL)
|
||||
THEN CONCAT('经营范围: 变更前: ', a.range, ' 变更后: ', b.range) ELSE NULL END AS range_diff,
|
||||
CASE WHEN a.reg_address != b.reg_address OR (a.reg_address IS NULL XOR b.reg_address IS NULL)
|
||||
THEN CONCAT('注册地址: 变更前: ', a.reg_address, ' 变更后: ', b.reg_address) ELSE NULL END AS reg_address_diff,
|
||||
CASE WHEN a.work_address != b.work_address OR (a.work_address IS NULL XOR b.work_address IS NULL)
|
||||
THEN CONCAT('办公地址: 变更前: ', a.work_address, ' 变更后: ', b.work_address) ELSE NULL END AS work_address_diff,
|
||||
CASE WHEN a.parent_company_investor != b.parent_company_investor OR (a.parent_company_investor IS NULL XOR b.parent_company_investor IS NULL)
|
||||
THEN CONCAT('母公司/出资人信息: 变更前: ', a.parent_company_investor, ' 变更后: ', b.parent_company_investor) ELSE NULL END AS parent_company_investor_diff,
|
||||
CASE WHEN a.legal_person != b.legal_person OR (a.legal_person IS NULL XOR b.legal_person IS NULL)
|
||||
THEN CONCAT('法定代表人: 变更前: ', a.legal_person, ' 变更后: ', b.legal_person) ELSE NULL END AS legal_person_diff,
|
||||
CASE WHEN a.id_card != b.id_card OR (a.id_card IS NULL XOR b.id_card IS NULL)
|
||||
THEN CONCAT('身份证号: 变更前: ', a.id_card, ' 变更后: ', b.id_card) ELSE NULL END AS id_card_diff,
|
||||
CASE WHEN a.capital != b.capital OR (a.capital IS NULL XOR b.capital IS NULL)
|
||||
THEN CONCAT('注册资本(万元): 变更前: ', a.capital, ' 变更后: ', b.capital) ELSE NULL END AS capital_diff,
|
||||
CASE WHEN a.contacts_name != b.contacts_name OR (a.contacts_name IS NULL XOR b.contacts_name IS NULL)
|
||||
THEN CONCAT('联系人姓名: 变更前: ', a.contacts_name, ' 变更后: ', b.contacts_name) ELSE NULL END AS contacts_name_diff,
|
||||
CASE WHEN a.contacts_phone != b.contacts_phone OR (a.contacts_phone IS NULL XOR b.contacts_phone IS NULL)
|
||||
THEN CONCAT('联系人手机: 变更前: ', a.contacts_phone, ' 变更后: ', b.contacts_phone) ELSE NULL END AS contacts_phone_diff,
|
||||
CASE WHEN a.contacts_type != b.contacts_type OR (a.contacts_type IS NULL XOR b.contacts_type IS NULL)
|
||||
THEN CONCAT('联系人身份类别: 变更前: ', a.contacts_type, ' 变更后: ', b.contacts_type) ELSE NULL END AS contacts_type_diff,
|
||||
CASE WHEN a.contacts_email != b.contacts_email OR (a.contacts_email IS NULL XOR b.contacts_email IS NULL)
|
||||
THEN CONCAT('联系人邮箱: 变更前: ', a.contacts_email, ' 变更后: ', b.contacts_email) ELSE NULL END AS contacts_email_diff,
|
||||
CASE WHEN a.telephone != b.telephone OR (a.telephone IS NULL XOR b.telephone IS NULL)
|
||||
THEN CONCAT('固定电话: 变更前: ', a.telephone, ' 变更后: ', b.telephone) ELSE NULL END AS telephone_diff,
|
||||
CASE WHEN a.nation != b.nation OR (a.nation IS NULL XOR b.nation IS NULL)
|
||||
THEN CONCAT('国家地区: 变更前: ', a.nation, ' 变更后: ', b.nation) ELSE NULL END AS nation_diff,
|
||||
CASE WHEN a.vat != b.vat OR (a.vat IS NULL XOR b.vat IS NULL)
|
||||
THEN CONCAT('增值税号: 变更前: ', a.vat, ' 变更后: ', b.vat) ELSE NULL END AS vat_diff,
|
||||
CASE WHEN a.taxpayer_id != b.taxpayer_id OR (a.taxpayer_id IS NULL XOR b.taxpayer_id IS NULL)
|
||||
THEN CONCAT('境外纳税人ID: 变更前: ', a.taxpayer_id, ' 变更后: ', b.taxpayer_id) ELSE NULL END AS taxpayer_id_diff,
|
||||
CASE WHEN a.currency != b.currency OR (a.currency IS NULL XOR b.currency IS NULL)
|
||||
THEN CONCAT('币种: 变更前: ', a.currency, ' 变更后: ', b.currency) ELSE NULL END AS currency_diff,
|
||||
CASE WHEN a.person_name != b.person_name OR (a.person_name IS NULL XOR b.person_name IS NULL)
|
||||
THEN CONCAT('个人姓名: 变更前: ', a.person_name, ' 变更后: ', b.person_name) ELSE NULL END AS person_name_diff,
|
||||
CASE WHEN a.person_phone != b.person_phone OR (a.person_phone IS NULL XOR b.person_phone IS NULL)
|
||||
THEN CONCAT('个人联系电话: 变更前: ', a.person_phone, ' 变更后: ', b.person_phone) ELSE NULL END AS person_phone_diff,
|
||||
CASE WHEN a.person_bank != b.person_bank OR (a.person_bank IS NULL XOR b.person_bank IS NULL)
|
||||
THEN CONCAT('个人开户行: 变更前: ', a.person_bank, ' 变更后: ', b.person_bank) ELSE NULL END AS person_bank_diff,
|
||||
CASE WHEN a.person_account != b.person_account OR (a.person_account IS NULL XOR b.person_account IS NULL)
|
||||
THEN CONCAT('个人银行账号: 变更前: ', a.person_account, ' 变更后: ', b.person_account) ELSE NULL END AS person_account_diff,
|
||||
CASE WHEN a.remark != b.remark OR (a.remark IS NULL XOR b.remark IS NULL)
|
||||
THEN CONCAT('备注: 变更前: ', a.remark, ' 变更后: ', b.remark) ELSE NULL END AS remark_diff
|
||||
FROM
|
||||
(SELECT * FROM cosco_supplier_change_base
|
||||
WHERE
|
||||
<if test="supplierId != null and supplierId != ''">
|
||||
supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="supplierChangeApplyIdOld != null and supplierChangeApplyIdOld != ''">
|
||||
supplier_change_apply_id = #{supplierChangeApplyIdOld}
|
||||
</if>
|
||||
|
||||
) a,
|
||||
(SELECT * FROM cosco_supplier_change_base
|
||||
WHERE supplier_change_apply_id = #{supplierChangeApplyId}) b
|
||||
HAVING
|
||||
supplier_type_diff IS NOT NULL OR
|
||||
licence_accessory_diff IS NOT NULL OR
|
||||
licence_date_diff IS NOT NULL OR
|
||||
enterprise_type_diff IS NOT NULL OR
|
||||
name_diff IS NOT NULL OR
|
||||
name_en_diff IS NOT NULL OR
|
||||
social_credit_code_diff IS NOT NULL OR
|
||||
range_diff IS NOT NULL OR
|
||||
reg_address_diff IS NOT NULL OR
|
||||
work_address_diff IS NOT NULL OR
|
||||
parent_company_investor_diff IS NOT NULL OR
|
||||
legal_person_diff IS NOT NULL OR
|
||||
id_card_diff IS NOT NULL OR
|
||||
capital_diff IS NOT NULL OR
|
||||
contacts_name_diff IS NOT NULL OR
|
||||
contacts_phone_diff IS NOT NULL OR
|
||||
contacts_type_diff IS NOT NULL OR
|
||||
contacts_email_diff IS NOT NULL OR
|
||||
telephone_diff IS NOT NULL OR
|
||||
nation_diff IS NOT NULL OR
|
||||
vat_diff IS NOT NULL OR
|
||||
taxpayer_id_diff IS NOT NULL OR
|
||||
currency_diff IS NOT NULL OR
|
||||
person_name_diff IS NOT NULL OR
|
||||
person_phone_diff IS NOT NULL OR
|
||||
person_bank_diff IS NOT NULL OR
|
||||
person_account_diff IS NOT NULL OR
|
||||
remark_diff IS NOT NULL;
|
||||
</select>
|
||||
|
||||
<select id="selectCoscoSupplierChangeBaseById" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeBaseResult">
|
||||
<include refid="selectCoscoSupplierChangeBaseVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectBySupplierId" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeBaseResult">
|
||||
<include refid="selectCoscoSupplierChangeBaseVo"/>
|
||||
where supplier_id = #{supplierId}
|
||||
</select>
|
||||
|
||||
<select id="selectBySupplierChangeApplyId" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeBaseResult">
|
||||
<include refid="selectCoscoSupplierChangeBaseVo"/>
|
||||
where supplier_change_apply_id = #{supplierChangeApplyId}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertCoscoSupplierChangeBase" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBase">
|
||||
insert into cosco_supplier_change_base
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="supplierType != null">supplier_type,</if>
|
||||
<if test="licenceAccessory != null">licence_accessory,</if>
|
||||
<if test="licenceDate != null">licence_date,</if>
|
||||
<if test="enterpriseType != null">enterprise_type,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="nameEn != null">name_en,</if>
|
||||
<if test="socialCreditCode != null">social_credit_code,</if>
|
||||
<if test="range != null">`range`,</if>
|
||||
<if test="regAddress != null">reg_address,</if>
|
||||
<if test="workAddress != null">work_address,</if>
|
||||
<if test="parentCompanyInvestor != null">parent_company_investor,</if>
|
||||
<if test="legalPerson != null">legal_person,</if>
|
||||
<if test="idCard != null">id_card,</if>
|
||||
<if test="capital != null">capital,</if>
|
||||
<if test="contactsName != null">contacts_name,</if>
|
||||
<if test="contactsPhone != null">contacts_phone,</if>
|
||||
<if test="contactsType != null">contacts_type,</if>
|
||||
<if test="contactsEmail != null">contacts_email,</if>
|
||||
<if test="telephone != null">telephone,</if>
|
||||
<if test="nation != null">nation,</if>
|
||||
<if test="vat != null">vat,</if>
|
||||
<if test="taxpayerId != null">taxpayer_id,</if>
|
||||
<if test="currency != null">currency,</if>
|
||||
<if test="personName != null">person_name,</if>
|
||||
<if test="personPhone != null">person_phone,</if>
|
||||
<if test="personBank != null">person_bank,</if>
|
||||
<if test="personAccount != null">person_account,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id,</if>
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="supplierType != null">#{supplierType},</if>
|
||||
<if test="licenceAccessory != null">#{licenceAccessory},</if>
|
||||
<if test="licenceDate != null">#{licenceDate},</if>
|
||||
<if test="enterpriseType != null">#{enterpriseType},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="nameEn != null">#{nameEn},</if>
|
||||
<if test="socialCreditCode != null">#{socialCreditCode},</if>
|
||||
<if test="range != null">#{range},</if>
|
||||
<if test="regAddress != null">#{regAddress},</if>
|
||||
<if test="workAddress != null">#{workAddress},</if>
|
||||
<if test="parentCompanyInvestor != null">#{parentCompanyInvestor},</if>
|
||||
<if test="legalPerson != null">#{legalPerson},</if>
|
||||
<if test="idCard != null">#{idCard},</if>
|
||||
<if test="capital != null">#{capital},</if>
|
||||
<if test="contactsName != null">#{contactsName},</if>
|
||||
<if test="contactsPhone != null">#{contactsPhone},</if>
|
||||
<if test="contactsType != null">#{contactsType},</if>
|
||||
<if test="contactsEmail != null">#{contactsEmail},</if>
|
||||
<if test="telephone != null">#{telephone},</if>
|
||||
<if test="nation != null">#{nation},</if>
|
||||
<if test="vat != null">#{vat},</if>
|
||||
<if test="taxpayerId != null">#{taxpayerId},</if>
|
||||
<if test="currency != null">#{currency},</if>
|
||||
<if test="personName != null">#{personName},</if>
|
||||
<if test="personPhone != null">#{personPhone},</if>
|
||||
<if test="personBank != null">#{personBank},</if>
|
||||
<if test="personAccount != null">#{personAccount},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">#{supplierChangeApplyId},</if>
|
||||
<if test="supplierId != null and supplierId != ''">#{supplierId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="batchCoscoSupplierChangeBase" parameterType="java.util.List">
|
||||
insert into cosco_supplier_change_base
|
||||
( id, supplier_type, licence_accessory, licence_date, enterprise_type, name, name_en, social_credit_code, range, reg_address, work_address, parent_company_investor, legal_person, id_card, capital, contacts_name, contacts_phone, contacts_type, contacts_email, telephone, nation, vat, taxpayer_id, currency, person_name, person_phone, person_bank, person_account, remark, supplier_change_apply_id)
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.supplierType}, #{item.licenceAccessory}, #{item.licenceDate}, #{item.enterpriseType}, #{item.name}, #{item.nameEn}, #{item.socialCreditCode}, #{item.range}, #{item.regAddress}, #{item.workAddress}, #{item.parentCompanyInvestor}, #{item.legalPerson}, #{item.idCard}, #{item.capital}, #{item.contactsName}, #{item.contactsPhone}, #{item.contactsType}, #{item.contactsEmail}, #{item.telephone}, #{item.nation}, #{item.vat}, #{item.taxpayerId}, #{item.currency}, #{item.personName}, #{item.personPhone}, #{item.personBank}, #{item.personAccount}, #{item.remark}, #{item.supplierChangeApplyId})
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateCoscoSupplierChangeBase" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeBase">
|
||||
update cosco_supplier_change_base
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierType != null">supplier_type =
|
||||
#{supplierType},
|
||||
</if>
|
||||
<if test="licenceAccessory != null">licence_accessory =
|
||||
#{licenceAccessory},
|
||||
</if>
|
||||
<if test="licenceDate != null">licence_date =
|
||||
#{licenceDate},
|
||||
</if>
|
||||
<if test="enterpriseType != null">enterprise_type =
|
||||
#{enterpriseType},
|
||||
</if>
|
||||
<if test="name != null">name =
|
||||
#{name},
|
||||
</if>
|
||||
<if test="nameEn != null">name_en =
|
||||
#{nameEn},
|
||||
</if>
|
||||
<if test="socialCreditCode != null">social_credit_code =
|
||||
#{socialCreditCode},
|
||||
</if>
|
||||
<if test="range != null">range =
|
||||
#{range},
|
||||
</if>
|
||||
<if test="regAddress != null">reg_address =
|
||||
#{regAddress},
|
||||
</if>
|
||||
<if test="workAddress != null">work_address =
|
||||
#{workAddress},
|
||||
</if>
|
||||
<if test="parentCompanyInvestor != null">parent_company_investor =
|
||||
#{parentCompanyInvestor},
|
||||
</if>
|
||||
<if test="legalPerson != null">legal_person =
|
||||
#{legalPerson},
|
||||
</if>
|
||||
<if test="idCard != null">id_card =
|
||||
#{idCard},
|
||||
</if>
|
||||
<if test="capital != null">capital =
|
||||
#{capital},
|
||||
</if>
|
||||
<if test="contactsName != null">contacts_name =
|
||||
#{contactsName},
|
||||
</if>
|
||||
<if test="contactsPhone != null">contacts_phone =
|
||||
#{contactsPhone},
|
||||
</if>
|
||||
<if test="contactsType != null">contacts_type =
|
||||
#{contactsType},
|
||||
</if>
|
||||
<if test="contactsEmail != null">contacts_email =
|
||||
#{contactsEmail},
|
||||
</if>
|
||||
<if test="telephone != null">telephone =
|
||||
#{telephone},
|
||||
</if>
|
||||
<if test="nation != null">nation =
|
||||
#{nation},
|
||||
</if>
|
||||
<if test="vat != null">vat =
|
||||
#{vat},
|
||||
</if>
|
||||
<if test="taxpayerId != null">taxpayer_id =
|
||||
#{taxpayerId},
|
||||
</if>
|
||||
<if test="currency != null">currency =
|
||||
#{currency},
|
||||
</if>
|
||||
<if test="personName != null">person_name =
|
||||
#{personName},
|
||||
</if>
|
||||
<if test="personPhone != null">person_phone =
|
||||
#{personPhone},
|
||||
</if>
|
||||
<if test="personBank != null">person_bank =
|
||||
#{personBank},
|
||||
</if>
|
||||
<if test="personAccount != null">person_account =
|
||||
#{personAccount},
|
||||
</if>
|
||||
<if test="remark != null">remark =
|
||||
#{remark},
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id =
|
||||
#{supplierChangeApplyId},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeBaseById" parameterType="String">
|
||||
update cosco_supplier_change_base set del_flag = 2
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeBaseByIds" parameterType="String">
|
||||
update cosco_supplier_change_base set del_flag = 2 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,231 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierChangeInvoiceMapper">
|
||||
|
||||
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeInvoice" id="CoscoSupplierChangeInvoiceResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="supplierId" column="supplier_id"/>
|
||||
<result property="taxpayerType" column="taxpayer_type"/>
|
||||
<result property="taxpayerCode" column="taxpayer_code"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="account" column="account"/>
|
||||
<result property="head" column="head"/>
|
||||
<result property="address" column="address"/>
|
||||
<result property="bank" column="bank"/>
|
||||
<result property="qualificationCertificate" column="qualification_certificate"/>
|
||||
<result property="supplierChangeApplyId" column="supplier_change_apply_id"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="InvoiceChangeDiffResultMap" type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.InvoiceChangeDiffVo">
|
||||
<!-- 纳税人类型变更对比 -->
|
||||
<result property="taxpayerTypeDiff" column="taxpayer_type_diff" />
|
||||
|
||||
<!-- 纳税人识别号变更对比 -->
|
||||
<result property="taxpayerCodeDiff" column="taxpayer_code_diff" />
|
||||
|
||||
<!-- 开票电话变更对比 -->
|
||||
<result property="phoneDiff" column="phone_diff" />
|
||||
|
||||
<!-- 开票户行账号变更对比 -->
|
||||
<result property="accountDiff" column="account_diff" />
|
||||
|
||||
<!-- 开票抬头变更对比 -->
|
||||
<result property="headDiff" column="head_diff" />
|
||||
|
||||
<!-- 开票地址变更对比 -->
|
||||
<result property="addressDiff" column="address_diff" />
|
||||
|
||||
<!-- 开票户行变更对比 -->
|
||||
<result property="bankDiff" column="bank_diff" />
|
||||
|
||||
<!-- 一般纳税人资格证明变更对比 -->
|
||||
<result property="qualificationCertificateDiff" column="qualification_certificate_diff" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectCoscoSupplierChangeInvoiceVo">
|
||||
select id, supplier_id, taxpayer_type, taxpayer_code, phone, account, head, address, bank, qualification_certificate, supplier_change_apply_id
|
||||
from cosco_supplier_change_invoice
|
||||
</sql>
|
||||
|
||||
<select id="selectCoscoSupplierChangeInvoiceList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeInvoice" resultMap="CoscoSupplierChangeInvoiceResult">
|
||||
<include refid="selectCoscoSupplierChangeInvoiceVo"/>
|
||||
<where>
|
||||
<if test="supplierId != null and supplierId != ''">
|
||||
and supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="taxpayerType != null and taxpayerType != ''">
|
||||
and taxpayer_type = #{taxpayerType}
|
||||
</if>
|
||||
<if test="taxpayerCode != null and taxpayerCode != ''">
|
||||
and taxpayer_code = #{taxpayerCode}
|
||||
</if>
|
||||
<if test="phone != null and phone != ''">
|
||||
and phone = #{phone}
|
||||
</if>
|
||||
<if test="account != null and account != ''">
|
||||
and account = #{account}
|
||||
</if>
|
||||
<if test="head != null and head != ''">
|
||||
and head = #{head}
|
||||
</if>
|
||||
<if test="address != null and address != ''">
|
||||
and address = #{address}
|
||||
</if>
|
||||
<if test="bank != null and bank != ''">
|
||||
and bank = #{bank}
|
||||
</if>
|
||||
<if test="qualificationCertificate != null and qualificationCertificate != ''">
|
||||
and qualification_certificate = #{qualificationCertificate}
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">
|
||||
and supplier_change_apply_id = #{supplierChangeApplyId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectInvoiceDitt" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeInvoice" resultMap="InvoiceChangeDiffResultMap">
|
||||
SELECT
|
||||
CASE WHEN a.taxpayer_type != b.taxpayer_type OR (a.taxpayer_type IS NULL XOR b.taxpayer_type IS NULL)
|
||||
THEN CONCAT('纳税人类型: 变更前: ', a.taxpayer_type, ' 变更后: ', b.taxpayer_type) ELSE NULL END AS taxpayer_type_diff,
|
||||
CASE WHEN a.taxpayer_code != b.taxpayer_code OR (a.taxpayer_code IS NULL XOR b.taxpayer_code IS NULL)
|
||||
THEN CONCAT('纳税人识别号: 变更前: ', a.taxpayer_code, ' 变更后: ', b.taxpayer_code) ELSE NULL END AS taxpayer_code_diff,
|
||||
CASE WHEN a.phone != b.phone OR (a.phone IS NULL XOR b.phone IS NULL)
|
||||
THEN CONCAT('开票电话: 变更前: ', a.phone, ' 变更后: ', b.phone) ELSE NULL END AS phone_diff,
|
||||
CASE WHEN a.account != b.account OR (a.account IS NULL XOR b.account IS NULL)
|
||||
THEN CONCAT('开票户行账号: 变更前: ', a.account, ' 变更后: ', b.account) ELSE NULL END AS account_diff,
|
||||
CASE WHEN a.head != b.head OR (a.head IS NULL XOR b.head IS NULL)
|
||||
THEN CONCAT('开票抬头: 变更前: ', a.head, ' 变更后: ', b.head) ELSE NULL END AS head_diff,
|
||||
CASE WHEN a.address != b.address OR (a.address IS NULL XOR b.address IS NULL)
|
||||
THEN CONCAT('开票地址: 变更前: ', a.address, ' 变更后: ', b.address) ELSE NULL END AS address_diff,
|
||||
CASE WHEN a.bank != b.bank OR (a.bank IS NULL XOR b.bank IS NULL)
|
||||
THEN CONCAT('开票户行: 变更前: ', a.bank, ' 变更后: ', b.bank) ELSE NULL END AS bank_diff,
|
||||
CASE WHEN a.qualification_certificate != b.qualification_certificate OR (a.qualification_certificate IS NULL XOR b.qualification_certificate IS NULL)
|
||||
THEN CONCAT('一般纳税人资格证明: 变更前: ', a.qualification_certificate, ' 变更后: ', b.qualification_certificate) ELSE NULL END AS qualification_certificate_diff
|
||||
FROM
|
||||
(SELECT * FROM cosco_supplier_change_invoice
|
||||
WHERE supplier_id = #{oldSupplierId}) a, -- 变更前供应商ID
|
||||
(SELECT * FROM cosco_supplier_change_invoice
|
||||
WHERE supplier_id = #{newSupplierId}) b -- 变更后供应商ID
|
||||
HAVING
|
||||
taxpayer_type_diff IS NOT NULL OR
|
||||
taxpayer_code_diff IS NOT NULL OR
|
||||
phone_diff IS NOT NULL OR
|
||||
account_diff IS NOT NULL OR
|
||||
head_diff IS NOT NULL OR
|
||||
address_diff IS NOT NULL OR
|
||||
bank_diff IS NOT NULL OR
|
||||
qualification_certificate_diff IS NOT NULL;
|
||||
</select>
|
||||
|
||||
<select id="selectCoscoSupplierChangeInvoiceById" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeInvoiceResult">
|
||||
<include refid="selectCoscoSupplierChangeInvoiceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectBySupplierId" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeInvoiceResult">
|
||||
<include refid="selectCoscoSupplierChangeInvoiceVo"/>
|
||||
where supplier_id = #{supplierId}
|
||||
</select>
|
||||
|
||||
<select id="selectBySupplierChangeApplyId" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeInvoiceResult">
|
||||
<include refid="selectCoscoSupplierChangeInvoiceVo"/>
|
||||
where supplier_change_apply_id = #{supplierChangeApplyId}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertCoscoSupplierChangeInvoice" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeInvoice">
|
||||
insert into cosco_supplier_change_invoice
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id,</if>
|
||||
<if test="taxpayerType != null">taxpayer_type,</if>
|
||||
<if test="taxpayerCode != null">taxpayer_code,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="account != null">account,</if>
|
||||
<if test="head != null">head,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="bank != null">bank,</if>
|
||||
<if test="qualificationCertificate != null">qualification_certificate,</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id,</if>
|
||||
<if test="supplierInvoiceId != null and supplierInvoiceId != ''">supplier_invoice_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="supplierId != null and supplierId != ''">#{supplierId},</if>
|
||||
<if test="taxpayerType != null">#{taxpayerType},</if>
|
||||
<if test="taxpayerCode != null">#{taxpayerCode},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="account != null">#{account},</if>
|
||||
<if test="head != null">#{head},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="bank != null">#{bank},</if>
|
||||
<if test="qualificationCertificate != null">#{qualificationCertificate},</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">#{supplierChangeApplyId},</if>
|
||||
<if test="supplierInvoiceId != null and supplierInvoiceId != ''">#{supplierInvoiceId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="batchCoscoSupplierChangeInvoice" parameterType="java.util.List">
|
||||
insert into cosco_supplier_change_invoice
|
||||
( id, supplier_id, taxpayer_type, taxpayer_code, phone, account, head, address, bank, qualification_certificate, supplier_change_apply_id)
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.supplierId}, #{item.taxpayerType}, #{item.taxpayerCode}, #{item.phone}, #{item.account}, #{item.head}, #{item.address}, #{item.bank}, #{item.qualificationCertificate}, #{item.supplierChangeApplyId})
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateCoscoSupplierChangeInvoice" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeInvoice">
|
||||
update cosco_supplier_change_invoice
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id =
|
||||
#{supplierId},
|
||||
</if>
|
||||
<if test="taxpayerType != null">taxpayer_type =
|
||||
#{taxpayerType},
|
||||
</if>
|
||||
<if test="taxpayerCode != null">taxpayer_code =
|
||||
#{taxpayerCode},
|
||||
</if>
|
||||
<if test="phone != null">phone =
|
||||
#{phone},
|
||||
</if>
|
||||
<if test="account != null">account =
|
||||
#{account},
|
||||
</if>
|
||||
<if test="head != null">head =
|
||||
#{head},
|
||||
</if>
|
||||
<if test="address != null">address =
|
||||
#{address},
|
||||
</if>
|
||||
<if test="bank != null">bank =
|
||||
#{bank},
|
||||
</if>
|
||||
<if test="qualificationCertificate != null">qualification_certificate =
|
||||
#{qualificationCertificate},
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id =
|
||||
#{supplierChangeApplyId},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeInvoiceById" parameterType="String">
|
||||
update cosco_supplier_change_invoice set del_flag = 2
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeInvoiceByIds" parameterType="String">
|
||||
update cosco_supplier_change_invoice set del_flag = 2 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierChangeQualificationsMapper">
|
||||
|
||||
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeQualifications" id="CoscoSupplierChangeQualificationsResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="supplierId" column="supplier_id"/>
|
||||
<result property="certificateType" column="certificate_type"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="code" column="code"/>
|
||||
<result property="typeLevel" column="type_level"/>
|
||||
<result property="authority" column="authority"/>
|
||||
<result property="dateTime" column="date_time"/>
|
||||
<result property="termOfValidity" column="term_of_validity"/>
|
||||
<result property="accessory" column="accessory"/>
|
||||
<result property="supplierChangeApplyId" column="supplier_change_apply_id"/>
|
||||
<result property="supplierQualificationsId" column="supplier_qualifications_id"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCoscoSupplierChangeQualificationsVo">
|
||||
select id, supplier_id, certificate_type, name, code, type_level, authority, date_time, term_of_validity, accessory, supplier_change_apply_id,supplier_qualifications_id
|
||||
from cosco_supplier_change_qualifications
|
||||
</sql>
|
||||
|
||||
<select id="selectCoscoSupplierChangeQualificationsList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeQualifications" resultMap="CoscoSupplierChangeQualificationsResult">
|
||||
<include refid="selectCoscoSupplierChangeQualificationsVo"/>
|
||||
<where>
|
||||
<if test="supplierId != null and supplierId != ''">
|
||||
and supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="certificateType != null and certificateType != ''">
|
||||
and certificate_type = #{certificateType}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%', #{name}, '%')
|
||||
</if>
|
||||
<if test="code != null and code != ''">
|
||||
and code = #{code}
|
||||
</if>
|
||||
<if test="typeLevel != null and typeLevel != ''">
|
||||
and type_level = #{typeLevel}
|
||||
</if>
|
||||
<if test="authority != null and authority != ''">
|
||||
and authority = #{authority}
|
||||
</if>
|
||||
<if test="dateTime != null ">
|
||||
and date_time = #{dateTime}
|
||||
</if>
|
||||
<if test="termOfValidity != null ">
|
||||
and term_of_validity = #{termOfValidity}
|
||||
</if>
|
||||
<if test="accessory != null and accessory != ''">
|
||||
and accessory = #{accessory}
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">
|
||||
and supplier_change_apply_id = #{supplierChangeApplyId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCoscoSupplierChangeQualificationsById" parameterType="String"
|
||||
resultMap="CoscoSupplierChangeQualificationsResult">
|
||||
<include refid="selectCoscoSupplierChangeQualificationsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCoscoSupplierChangeQualifications" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeQualifications">
|
||||
insert into cosco_supplier_change_qualifications
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id,</if>
|
||||
<if test="certificateType != null">certificate_type,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="code != null">code,</if>
|
||||
<if test="typeLevel != null">type_level,</if>
|
||||
<if test="authority != null">authority,</if>
|
||||
<if test="dateTime != null">date_time,</if>
|
||||
<if test="termOfValidity != null">term_of_validity,</if>
|
||||
<if test="accessory != null">accessory,</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id,</if>
|
||||
<if test="supplierQualificationsId != null and supplierQualificationsId != ''">supplier_qualifications_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="supplierId != null and supplierId != ''">#{supplierId},</if>
|
||||
<if test="certificateType != null">#{certificateType},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="code != null">#{code},</if>
|
||||
<if test="typeLevel != null">#{typeLevel},</if>
|
||||
<if test="authority != null">#{authority},</if>
|
||||
<if test="dateTime != null">#{dateTime},</if>
|
||||
<if test="termOfValidity != null">#{termOfValidity},</if>
|
||||
<if test="accessory != null">#{accessory},</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">#{supplierChangeApplyId},</if>
|
||||
<if test="supplierQualificationsId != null and supplierQualificationsId != ''">#{supplierQualificationsId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="batchCoscoSupplierChangeQualifications" parameterType="java.util.List">
|
||||
insert into cosco_supplier_change_qualifications
|
||||
( id, supplier_id, certificate_type, name, code, type_level, authority, date_time, term_of_validity, accessory, supplier_change_apply_id)
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.supplierId}, #{item.certificateType}, #{item.name}, #{item.code}, #{item.typeLevel}, #{item.authority}, #{item.dateTime}, #{item.termOfValidity}, #{item.accessory}, #{item.supplierChangeApplyId})
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateCoscoSupplierChangeQualifications" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierChangeQualifications">
|
||||
update cosco_supplier_change_qualifications
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierId != null and supplierId != ''">supplier_id =
|
||||
#{supplierId},
|
||||
</if>
|
||||
<if test="certificateType != null">certificate_type =
|
||||
#{certificateType},
|
||||
</if>
|
||||
<if test="name != null">name =
|
||||
#{name},
|
||||
</if>
|
||||
<if test="code != null">code =
|
||||
#{code},
|
||||
</if>
|
||||
<if test="typeLevel != null">type_level =
|
||||
#{typeLevel},
|
||||
</if>
|
||||
<if test="authority != null">authority =
|
||||
#{authority},
|
||||
</if>
|
||||
<if test="dateTime != null">date_time =
|
||||
#{dateTime},
|
||||
</if>
|
||||
<if test="termOfValidity != null">term_of_validity =
|
||||
#{termOfValidity},
|
||||
</if>
|
||||
<if test="accessory != null">accessory =
|
||||
#{accessory},
|
||||
</if>
|
||||
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id =
|
||||
#{supplierChangeApplyId},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeQualificationsById" parameterType="String">
|
||||
update cosco_supplier_change_qualifications set del_flag = 2
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteCoscoSupplierChangeQualificationsByIds" parameterType="String">
|
||||
update cosco_supplier_change_qualifications set del_flag = 2 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
Reference in New Issue
Block a user