|
|
|
@ -3,6 +3,7 @@ package com.op.mes.service.impl;
|
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
|
|
import com.alibaba.fastjson2.JSONArray;
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
|
|
import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
|
|
|
|
|
import com.op.common.core.domain.R;
|
|
|
|
|
import com.op.common.core.utils.DateUtils;
|
|
|
|
@ -723,6 +724,42 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
|
|
|
|
|
return boardMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public Map getWhiteBoardProdDetails(Map paramMap) {
|
|
|
|
|
List<Map> whiteBoardProdListDetails = mesMapper.getWhiteBoardProdDetails(paramMap);
|
|
|
|
|
List<Map> whiteBoardProdListDetailss = mesMapper.whiteBoardProdListDetailss(paramMap);
|
|
|
|
|
if (paramMap.get("equipmentCode").toString().equals("S")) {
|
|
|
|
|
// 对第一个列表进行修改
|
|
|
|
|
for (Map map : whiteBoardProdListDetails) {
|
|
|
|
|
if (map.containsKey("completed_count")) {
|
|
|
|
|
// 获取 completed_count 字段的值并减去 5
|
|
|
|
|
Object completedCountObj = map.get("completed_count");
|
|
|
|
|
if (completedCountObj != null && completedCountObj instanceof Number) {
|
|
|
|
|
Number completedCount = (Number) completedCountObj;
|
|
|
|
|
map.put("completed_count", completedCount.intValue() - 5);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 对第二个列表进行修改
|
|
|
|
|
for (Map map : whiteBoardProdListDetailss) {
|
|
|
|
|
if (map.containsKey("completed_count")) {
|
|
|
|
|
// 获取 completed_count 字段的值并减去 5
|
|
|
|
|
Object completedCountObj = map.get("completed_count");
|
|
|
|
|
if (completedCountObj != null && completedCountObj instanceof Number) {
|
|
|
|
|
Number completedCount = (Number) completedCountObj;
|
|
|
|
|
map.put("completed_count", completedCount.intValue() - 5);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Map resultMap=new HashMap();
|
|
|
|
|
resultMap.put("leftList",whiteBoardProdListDetails);
|
|
|
|
|
resultMap.put("rightlist",whiteBoardProdListDetailss);
|
|
|
|
|
return resultMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected List<String> get7Days(){
|
|
|
|
|
List<String> days = new ArrayList<>();
|
|
|
|
|
// 获取当前日期
|
|
|
|
|