数据修改
This commit is contained in:
@ -53,14 +53,6 @@ public class DataStatisticeServiceImpl implements DataStatisticeService {
|
|||||||
|
|
||||||
supplierEvaluateStatistics.getRecords().forEach(item -> {
|
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;
|
return supplierEvaluateStatistics;
|
||||||
}
|
}
|
||||||
@ -71,14 +63,6 @@ public class DataStatisticeServiceImpl implements DataStatisticeService {
|
|||||||
vo.getBasePageRequest().getPageSize());
|
vo.getBasePageRequest().getPageSize());
|
||||||
IPage<SupplierAnnualReviewStatisticsVo> supplierAnnualReviewStatistics = coscoAnnualreviewTaskMapper.getSupplierAnnualReviewStatistics(p, vo);
|
IPage<SupplierAnnualReviewStatisticsVo> supplierAnnualReviewStatistics = coscoAnnualreviewTaskMapper.getSupplierAnnualReviewStatistics(p, vo);
|
||||||
supplierAnnualReviewStatistics.getRecords().forEach(item -> {
|
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;
|
return supplierAnnualReviewStatistics;
|
||||||
}
|
}
|
||||||
|
@ -257,9 +257,9 @@
|
|||||||
'天津中远海运集装箱运输有限公司' as accessDept,
|
'天津中远海运集装箱运输有限公司' as accessDept,
|
||||||
case when cats.review_result = 1 then '合格'
|
case when cats.review_result = 1 then '合格'
|
||||||
else '不合格' end as annualStatisticsResult,
|
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
|
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
|
cat.annualreview_year
|
||||||
from
|
from
|
||||||
cosco_annualreview_task_supplier cats
|
cosco_annualreview_task_supplier cats
|
||||||
|
@ -251,9 +251,9 @@
|
|||||||
'退出部门' as accessDept,
|
'退出部门' as accessDept,
|
||||||
cse.create_by as applyUser,
|
cse.create_by as applyUser,
|
||||||
cse.update_time as applyTime,
|
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
|
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
|
from cosco_supplierexit cse
|
||||||
join cosco_supplierexit_supplier css
|
join cosco_supplierexit_supplier css
|
||||||
on cse.id= css.supplierexit_id
|
on cse.id= css.supplierexit_id
|
||||||
|
Reference in New Issue
Block a user