供应商变更

This commit is contained in:
TL
2025-06-19 11:21:35 +08:00
parent 1a6440de59
commit 03e2115492
13 changed files with 217 additions and 18 deletions

View File

@ -191,8 +191,8 @@
</update>
<update id="deleteCoscoSupplierBankById" parameterType="String">
update cosco_supplier_bank set del_flag = 2
where id = #{id}
update cosco_supplier_bank set del_flag = 'deleted'
where supplier_id = #{supplierId}
</update>
<update id="deleteCoscoSupplierBankByIds" parameterType="String">

View File

@ -79,7 +79,7 @@
and social_credit_code = #{vo.socialCreditCode}
</if>
<if test="vo.range != null and vo.range != ''">
and range = #{vo.range}
and `range` = #{vo.range}
</if>
<if test="vo.regAddress != null and vo.regAddress != ''">
and reg_address = #{vo.regAddress}
@ -167,6 +167,7 @@
<select id="selectCoscoSupplierBaseList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase" resultMap="CoscoSupplierBaseResult">
<include refid="selectCoscoSupplierBaseVo"/>
<where>
and del_flag = 'normal'
<if test="supplierType != null and supplierType != ''">
and supplier_type = #{supplierType}
</if>
@ -189,7 +190,7 @@
and social_credit_code = #{socialCreditCode}
</if>
<if test="range != null and range != ''">
and range = #{range}
and `range` = #{range}
</if>
<if test="regAddress != null and regAddress != ''">
and reg_address = #{regAddress}
@ -369,7 +370,7 @@
</insert>
<insert id="batchCoscoSupplierBase" parameterType="java.util.List">
insert into cosco_supplier_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, access_status, blacklist_status, greylist_status, fillin_status, fillin_by, sap_code, del_flag, create_by, create_time, update_by, update_time, last_update_time)
( 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, access_status, blacklist_status, greylist_status, fillin_status, fillin_by, sap_code, 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.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.accessStatus}, #{item.blacklistStatus}, #{item.greylistStatus}, #{item.fillinStatus}, #{item.fillinBy}, #{item.sapCode}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.lastUpdateTime})
@ -399,7 +400,7 @@
<if test="socialCreditCode != null">social_credit_code =
#{socialCreditCode},
</if>
<if test="range != null">range =
<if test="range != null">`range` =
#{range},
</if>
<if test="regAddress != null">reg_address =

View File

@ -147,6 +147,9 @@
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id =
#{supplierChangeApplyId},
</if>
<if test="supplierBankId != null and supplierBankId != ''">supplier_bank_id =
#{supplierBankId},
</if>
</trim>
where id = #{id}
</update>

View File

@ -138,6 +138,10 @@
<if test="supplierChangeApplyId != null and supplierChangeApplyId != ''">supplier_change_apply_id =
#{supplierChangeApplyId},
</if>
<if test="supplierQualificationsId != null and supplierQualificationsId != ''">supplier_qualifications_id =
#{supplierQualificationsId},
</if>
</trim>
where id = #{id}
</update>

View File

@ -172,8 +172,8 @@
</update>
<update id="deleteCoscoSupplierInvoiceById" parameterType="String">
update cosco_supplier_invoice set del_flag = 2
where id = #{id}
update cosco_supplier_invoice set del_flag = 'deleted'
where supplier_id = #{supplierId}
</update>
<update id="deleteCoscoSupplierInvoiceByIds" parameterType="String">

View File

@ -172,8 +172,8 @@
</update>
<update id="deleteCoscoSupplierQualificationsById" parameterType="String">
update cosco_supplier_qualifications set del_flag = 2
where id = #{id}
update cosco_supplier_qualifications set del_flag = 'deleted'
where supplier_id = #{supplierId}
</update>
<update id="deleteCoscoSupplierQualificationsByIds" parameterType="String">