修改bug
This commit is contained in:
@ -896,6 +896,7 @@
|
||||
resultType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.vo.SupplierPageVo">
|
||||
SELECT
|
||||
csb.id,
|
||||
csb.supplier_type as supplierType,
|
||||
MAX(csb.name) AS name,
|
||||
MAX(csb.social_credit_code) AS socialCreditCode,
|
||||
MAX(cas.dept_id) AS deptId,
|
||||
|
@ -222,7 +222,7 @@
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="getSupplierQualificationExpireList" parameterType="map" resultType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierQualificationExpireVo">
|
||||
<select id="getSupplierQualificationExpireList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierQualificationExpireVo" resultType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierQualificationExpireVo">
|
||||
SELECT
|
||||
csq.authority,
|
||||
csq.term_of_validity,
|
||||
@ -254,8 +254,8 @@
|
||||
csq.del_flag = 'normal'
|
||||
AND ( csq.term_of_validity < CURDATE() OR csq.term_of_validity
|
||||
BETWEEN CURDATE() AND DATE_ADD( CURDATE(), INTERVAL 30 DAY ) )
|
||||
<if test="vo.supplierName!=null and vo.supplierName!=''">
|
||||
and csb.name like concat('%',#{vo.supplierName},'%')
|
||||
<if test="supplierName!=null and supplierName!=''">
|
||||
and csb.name like concat('%',#{supplierName},'%')
|
||||
</if>
|
||||
ORDER BY
|
||||
csq.term_of_validity ASC
|
||||
@ -272,7 +272,7 @@
|
||||
WHEN csb.supplier_type = 'ovs' THEN
|
||||
'境内' ELSE '境内'
|
||||
END AS area,
|
||||
csb.id,
|
||||
csq.id,
|
||||
'准入单位' AS accessUnit,
|
||||
'准入部门' AS accessDept,
|
||||
(
|
||||
|
@ -191,7 +191,9 @@
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="getSupplierExitStatisticsList" resultType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierExitStatisticsVo" parameterType="map">
|
||||
<select id="getSupplierExitStatisticsList"
|
||||
resultType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierExitStatisticsVo"
|
||||
parameterType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierExitStatisticsVo">
|
||||
select
|
||||
csb.name supplierName,
|
||||
case when csb.supplier_type = 'ovs' then '境外'
|
||||
@ -212,8 +214,8 @@
|
||||
on cse.id= css.supplierexit_id
|
||||
join cosco_supplier_base csb on csb.id=css.supplier_id
|
||||
where cse.approve_status=1
|
||||
<if test="vo.supplierName!=null and vo.supplierName!=''">
|
||||
and csb.name like concat('%',#{vo.supplierName},'%')
|
||||
<if test="supplierName!=null and supplierName!=''">
|
||||
and csb.name like concat('%',#{supplierName},'%')
|
||||
</if>
|
||||
</select>
|
||||
<select id="getSupplierExitStatistics" resultType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierExitStatisticsVo" parameterType="map">
|
||||
@ -222,7 +224,7 @@
|
||||
case when csb.supplier_type = 'ovs' then '境外'
|
||||
when csb.supplier_type = 'ovs' then '境内'
|
||||
else '境内' end as area ,
|
||||
csb.id,
|
||||
cse.id,
|
||||
'退出单位' as accessUnit,
|
||||
'退出部门' as accessDept,
|
||||
cse.create_by as applyUser,
|
||||
|
Reference in New Issue
Block a user