Compare commits

...

3 Commits

Author SHA1 Message Date
YY
b860936aba 数据修改 2025-08-05 20:06:14 +08:00
YY
0ec3f55d00 Merge branch 'dev' of http://59.110.10.99:53000/liuc/biz_supplier_manage into dev 2025-08-05 20:04:52 +08:00
YY
7832c37a42 数据修改 2025-08-05 20:02:40 +08:00
5 changed files with 12 additions and 28 deletions

View File

@ -53,14 +53,6 @@ public class DataStatisticeServiceImpl implements DataStatisticeService {
supplierEvaluateStatistics.getRecords().forEach(item -> {
if (item.getCategoryIds() != null && item.getCategoryIds().length() > 0) {
String[] split = item.getCategoryIds().split(",");
StringBuilder builder = new StringBuilder();
for (String s : split) {
builder.append(coscoCategoryService.getCategoryNameById(s).getCategoryName());
}
item.setCategoryName(builder.toString());
}
});
return supplierEvaluateStatistics;
}
@ -71,14 +63,6 @@ public class DataStatisticeServiceImpl implements DataStatisticeService {
vo.getBasePageRequest().getPageSize());
IPage<SupplierAnnualReviewStatisticsVo> supplierAnnualReviewStatistics = coscoAnnualreviewTaskMapper.getSupplierAnnualReviewStatistics(p, vo);
supplierAnnualReviewStatistics.getRecords().forEach(item -> {
StringBuilder builder = new StringBuilder();
if (item.getCategoryIds() != null && item.getCategoryIds().length() > 0) {
String[] split = item.getCategoryIds().split(",");
for (String s : split) {
builder.append(coscoCategoryService.getCategoryNameById(s).getCategoryName());
}
}
item.setCategoryName(builder.toString());
});
return supplierAnnualReviewStatistics;
}

View File

@ -253,13 +253,13 @@
when csb.supplier_type = 'ovs' then '境内'
else '境内' end as area ,
cats.id,
'准入单位' as accessUnit,
'准入部门' as accessDept,
'天津中远海运集装箱运输有限公司' as accessUnit,
'天津中远海运集装箱运输有限公司' as accessDept,
case when cats.review_result = 1 then '合格'
else '不合格' end as annualStatisticsResult,
(select GROUP_CONCAT( DISTINCT casc.category_id SEPARATOR ', ' )
(select GROUP_CONCAT( DISTINCT casc.category_name SEPARATOR ', ' )
from cosco_access_supplier_category casc
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryIds,
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryName,
cat.annualreview_year
from
cosco_annualreview_task_supplier cats

View File

@ -384,11 +384,11 @@
when csb.supplier_type = 'ovs' then '境内'
else '境内' end as area ,
csb.id,
(select GROUP_CONCAT( DISTINCT casc.category_id SEPARATOR ', ' )
(select GROUP_CONCAT( DISTINCT casc.category_name SEPARATOR ', ' )
from cosco_access_supplier_category casc
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryIds,
'准入单位' as accessUnit,
'准入部门' as accessDept,
where casc.del_flag = 'normal' and casc.supplier_id=csb.id) as categoryName,
'天津中远海运集装箱运输有限公司' as accessUnit,
'天津中远海运集装箱运输有限公司' as accessDept,
cets.review_result evaluateResult,
cet.evaluate_year evaluateYear
from

View File

@ -273,8 +273,8 @@
'境内' ELSE '境内'
END AS area,
csq.id,
'准入单位' AS accessUnit,
'准入部门' AS accessDept,
'天津中远海运集装箱运输有限公司' AS accessUnit,
'天津中远海运集装箱运输有限公司' AS accessDept,
(
SELECT
GROUP_CONCAT( DISTINCT casc.category_id SEPARATOR ', ' )

View File

@ -251,9 +251,9 @@
'退出部门' as accessDept,
cse.create_by as applyUser,
cse.update_time as applyTime,
(select GROUP_CONCAT( DISTINCT cssc.category_id SEPARATOR ', ' )
(select GROUP_CONCAT( DISTINCT cssc.category_name SEPARATOR ', ' )
from cosco_supplierexit_supplier_category cssc
where cssc.supplier_id=csb.id and cssc.supplierexit_id=cse.id) as categoryIds
where cssc.supplier_id=csb.id and cssc.supplierexit_id=cse.id) as categoryName
from cosco_supplierexit cse
join cosco_supplierexit_supplier css
on cse.id= css.supplierexit_id