Merge remote-tracking branch 'origin/dev' into dev

# Conflicts:
#	src/main/java/com/chinaunicom/zyhy/ebtp/supplier/coscosupplier/service/impl/CoscoSupplierBaseServiceImpl.java
#	src/main/resources/com/chinaunicom/zyhy/ebtp/supplier/base/dao/mapper/CoscoSupplierBaseMapper.xml
This commit is contained in:
YY
2025-06-19 13:11:24 +08:00
13 changed files with 570 additions and 430 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

@ -4,99 +4,56 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierBaseMapper">
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase"
id="CoscoSupplierBaseResult">
<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="accessStatus" column="access_status"/>
<result property="blacklistStatus" column="blacklist_status"/>
<result property="greylistStatus" column="greylist_status"/>
<result property="fillinStatus" column="fillin_status"/>
<result property="fillinBy" column="fillin_by"/>
<result property="sapCode" column="sap_code"/>
<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"/>
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase" id="CoscoSupplierBaseResult">
<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="accessStatus" column="access_status"/>
<result property="blacklistStatus" column="blacklist_status"/>
<result property="greylistStatus" column="greylist_status"/>
<result property="fillinStatus" column="fillin_status"/>
<result property="fillinBy" column="fillin_by"/>
<result property="sapCode" column="sap_code"/>
<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"/>
</resultMap>
<sql id="selectCoscoSupplierBaseVo">
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,
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
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, 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
from cosco_supplier_base
</sql>
<select id="selectPageList"
parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase"
resultMap="CoscoSupplierBaseResult">
<select id="selectPageList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase" resultMap="CoscoSupplierBaseResult">
<include refid="selectCoscoSupplierBaseVo"/>
<where>
and del_flag = 'normal'
@ -122,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}
@ -207,362 +164,347 @@
</select>
<select id="selectCoscoSupplierBaseList"
parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase"
resultMap="CoscoSupplierBaseResult">
<select id="selectCoscoSupplierBaseList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase" resultMap="CoscoSupplierBaseResult">
<include refid="selectCoscoSupplierBaseVo"/>
<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="accessStatus != null ">
and access_status = #{accessStatus}
</if>
<if test="blacklistStatus != null ">
and blacklist_status = #{blacklistStatus}
</if>
<if test="greylistStatus != null ">
and greylist_status = #{greylistStatus}
</if>
<if test="fillinStatus != null ">
and fillin_status = #{fillinStatus}
</if>
<if test="fillinBy != null and fillinBy != ''">
and fillin_by = #{fillinBy}
</if>
<if test="sapCode != null and sapCode != ''">
and sap_code = #{sapCode}
</if>
<if test="lastUpdateTime != null ">
and last_update_time = #{lastUpdateTime}
</if>
and del_flag = 'normal'
<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="accessStatus != null ">
and access_status = #{accessStatus}
</if>
<if test="blacklistStatus != null ">
and blacklist_status = #{blacklistStatus}
</if>
<if test="greylistStatus != null ">
and greylist_status = #{greylistStatus}
</if>
<if test="fillinStatus != null ">
and fillin_status = #{fillinStatus}
</if>
<if test="fillinBy != null and fillinBy != ''">
and fillin_by = #{fillinBy}
</if>
<if test="sapCode != null and sapCode != ''">
and sap_code = #{sapCode}
</if>
<if test="lastUpdateTime != null ">
and last_update_time = #{lastUpdateTime}
</if>
</where>
</select>
<select id="selectCoscoSupplierBaseById" parameterType="String"
resultMap="CoscoSupplierBaseResult">
<include refid="selectCoscoSupplierBaseVo"/>
where id = #{id}
<include refid="selectCoscoSupplierBaseVo"/>
where id = #{id}
</select>
<insert id="insertCoscoSupplierBase"
parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase">
<insert id="insertCoscoSupplierBase" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase">
insert into cosco_supplier_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="accessStatus != null">access_status,</if>
<if test="blacklistStatus != null">blacklist_status,</if>
<if test="greylistStatus != null">greylist_status,</if>
<if test="fillinStatus != null">fillin_status,</if>
<if test="fillinBy != null">fillin_by,</if>
<if test="sapCode != null">sap_code,</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>
<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="accessStatus != null">access_status,</if>
<if test="blacklistStatus != null">blacklist_status,</if>
<if test="greylistStatus != null">greylist_status,</if>
<if test="fillinStatus != null">fillin_status,</if>
<if test="fillinBy != null">fillin_by,</if>
<if test="sapCode != null">sap_code,</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="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="accessStatus != null">#{accessStatus},</if>
<if test="blacklistStatus != null">#{blacklistStatus},</if>
<if test="greylistStatus != null">#{greylistStatus},</if>
<if test="fillinStatus != null">#{fillinStatus},</if>
<if test="fillinBy != null">#{fillinBy},</if>
<if test="sapCode != null">#{sapCode},</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>
<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="accessStatus != null">#{accessStatus},</if>
<if test="blacklistStatus != null">#{blacklistStatus},</if>
<if test="greylistStatus != null">#{greylistStatus},</if>
<if test="fillinStatus != null">#{fillinStatus},</if>
<if test="fillinBy != null">#{fillinBy},</if>
<if test="sapCode != null">#{sapCode},</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="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})
( #{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})
</foreach>
</insert>
<update id="updateCoscoSupplierBase"
parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase">
<update id="updateCoscoSupplierBase" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierBase">
update cosco_supplier_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="accessStatus != null">access_status =
#{accessStatus},
</if>
<if test="blacklistStatus != null">blacklist_status =
#{blacklistStatus},
</if>
<if test="greylistStatus != null">greylist_status =
#{greylistStatus},
</if>
<if test="fillinStatus != null">fillin_status =
#{fillinStatus},
</if>
<if test="fillinBy != null">fillin_by =
#{fillinBy},
</if>
<if test="sapCode != null">sap_code =
#{sapCode},
</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>
<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="accessStatus != null">access_status =
#{accessStatus},
</if>
<if test="blacklistStatus != null">blacklist_status =
#{blacklistStatus},
</if>
<if test="greylistStatus != null">greylist_status =
#{greylistStatus},
</if>
<if test="fillinStatus != null">fillin_status =
#{fillinStatus},
</if>
<if test="fillinBy != null">fillin_by =
#{fillinBy},
</if>
<if test="sapCode != null">sap_code =
#{sapCode},
</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="deleteCoscoSupplierBaseById" parameterType="String">
update cosco_supplier_base
set del_flag = 2
update cosco_supplier_base set del_flag = 2
where id = #{id}
</update>

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">