修改 不良率写死和一处报错的地方

master
wangh 2 years ago
parent 8508439a1e
commit 3d2fa66271

@ -92,7 +92,7 @@ public class FoamerMesController {
@ResponseBody
public String getPlanHourInfo() throws Exception {
String jsonInfo = iImosPrPlanService.getFoamerPlanHourInfo();
System.out.println("小时数据:" + jsonInfo);
// System.out.println("小时数据:" + jsonInfo);
return jsonInfo;
}

@ -24,6 +24,7 @@ public class OrderInfo {
private long plannedProduction;
private long actualProduction;
private long target;
private long recordTime;

@ -182,7 +182,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
public String getFoamerPlanHourInfo() {
List<OrderInfo> orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(in_id);
List<String> orderTypeList = new ArrayList<>();
/* List<String> orderTypeList = new ArrayList<>();
List<Long> planQtyList = new ArrayList<>();
List<Long> recordTimeList = new ArrayList<>();
orderInfo.forEach(x->orderTypeList.add(x.getOrderType()));
@ -278,35 +278,10 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
}
}
/*if(9-list1.size() > 0){
for(int i = 0;i<9-list1.size();i++){
Map<String,Object> map2 = new HashMap<>();
map2.put("0","C"+(list1.size()));
map2.put("1","");
map2.put("2","");
map2.put("3","");
map2.put("4","");
map2.put("5","");
map2.put("6","");
map2.put("7","");
map2.put("8","");
map2.put("9","");
map2.put("10","");
map2.put("11","");
map2.put("12","");
map2.put("13","");
map2.put("14","");
map2.put("15","");
map2.put("16","");
map2.put("17","");
map2.put("18","");
map2.entrySet().stream().sorted(Map.Entry.comparingByKey());
list1.add(map2);
}
}*/
String info = JSONArray.toJSONString(list1);
*/
String info = JSONArray.toJSONString(orderInfo);
return info;
}

@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="recordTime" column="record_Time" />
<result property="endTime" column="end_time" />
<result property="planDate" column="plan_date"/>
<result property="target" column="target"/>
</resultMap>
<resultMap type="ImosPrPlan" id="ImosPrPlanResult">

Loading…
Cancel
Save