|
|
@ -488,7 +488,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
|
|
|
|
map.put("0",orderTypeItem);
|
|
|
|
map.put("0",orderTypeItem);
|
|
|
|
Long planQtyItem = orderInfo.stream().filter(x->x.getOrderType().equals(orderTypeItem)).collect(Collectors.toList()).stream().mapToLong(OrderInfo ::getPlannedProduction).sum()/orderInfo.stream().filter(x->x.getOrderType().equals(orderTypeItem)).collect(Collectors.toList()).size();
|
|
|
|
Long planQtyItem = orderInfo.stream().filter(x->x.getOrderType().equals(orderTypeItem)).collect(Collectors.toList()).stream().mapToLong(OrderInfo ::getPlannedProduction).sum()/orderInfo.stream().filter(x->x.getOrderType().equals(orderTypeItem)).collect(Collectors.toList()).size();
|
|
|
|
map.put("1",planQtyItem);
|
|
|
|
map.put("1",planQtyItem);
|
|
|
|
map.put("2","10");
|
|
|
|
map.put("2",planQtyItem/10);
|
|
|
|
|
|
|
|
|
|
|
|
for(int i = 7;i < 19;i++){
|
|
|
|
for(int i = 7;i < 19;i++){
|
|
|
|
Long recordTimeitem = Convert.toLong(i);
|
|
|
|
Long recordTimeitem = Convert.toLong(i);
|
|
|
@ -768,9 +768,9 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@DataSource(value = DataSourceType.MASTER)
|
|
|
|
|
|
|
|
public List<ScadaUkHourData> findByRecordTimeBetweenNew() {
|
|
|
|
public List<ScadaUkHourData> findByRecordTimeBetweenNew() {
|
|
|
|
return imosPrPlanMapper.findByRecordTimeBetweenNew(in_id);
|
|
|
|
List<ScadaUkHourData> byRecordTimeBetweenNew = imosPrPlanMapper.findByRecordTimeBetweenNew(in_id);
|
|
|
|
|
|
|
|
return byRecordTimeBetweenNew;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|