品类修改
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
SELECT
|
||||
csb.id supplierId,
|
||||
csb.NAME,
|
||||
cc.id as categoryId,
|
||||
cat.category_id as categoryId,
|
||||
cats.annualreview_task_id as annualreviewTaskId,
|
||||
'单位' as deptName,
|
||||
cat.dept_id as deptId,
|
||||
@ -49,7 +49,6 @@
|
||||
cosco_annualreview_task_supplier cats
|
||||
join cosco_annualreview_task cat on cats.annualreview_task_id = cat.id
|
||||
JOIN cosco_supplier_base csb ON cats.supplier_id = csb.id
|
||||
left join cosco_category cc on cc.id = cat.category_id
|
||||
where cats.del_flag='normal'
|
||||
<if test="vo.name!=null and vo.name!=''">
|
||||
and csb.name like concat('%',#{vo.name},'%')
|
||||
@ -206,11 +205,9 @@
|
||||
'准入部门' as accessDept,
|
||||
case when cats.review_result = 1 then '合格'
|
||||
else '不合格' end as annualStatisticsResult,
|
||||
(select GROUP_CONCAT( DISTINCT cc.category_name SEPARATOR ', ' )
|
||||
(select GROUP_CONCAT( DISTINCT casc.category_id SEPARATOR ', ' )
|
||||
from cosco_access_supplier_category casc
|
||||
join cosco_category cc
|
||||
ON cc.id = casc.category_id
|
||||
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryName,
|
||||
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryIds,
|
||||
cat.annualreview_year
|
||||
from
|
||||
cosco_annualreview_task_supplier cats
|
||||
@ -244,11 +241,9 @@
|
||||
'准入部门' as accessDept,
|
||||
case when cats.review_result = 1 then '合格'
|
||||
else '不合格' end as annualStatisticsResult,
|
||||
(select GROUP_CONCAT( DISTINCT cc.category_name SEPARATOR ', ' )
|
||||
(select GROUP_CONCAT( DISTINCT casc.category_id SEPARATOR ', ' )
|
||||
from cosco_access_supplier_category casc
|
||||
join cosco_category cc
|
||||
ON cc.id = casc.category_id
|
||||
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryName,
|
||||
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryIds,
|
||||
cat.annualreview_year
|
||||
from
|
||||
cosco_annualreview_task_supplier cats
|
||||
|
Reference in New Issue
Block a user