| | |
| | | private ShjdjwApi1403 copyApi1403(Api1403 api1403) { |
| | | ShjdjwApi1403 shjdjwApi1403 = new ShjdjwApi1403(); |
| | | BeanUtils.copyProperties(api1403, shjdjwApi1403); |
| | | |
| | | List<Double> lhsl = getLhsl(api1403); |
| | | if (null != lhsl && lhsl.size() > 0) { |
| | | shjdjwApi1403.setLrsl(lhsl.get(1)); |
| | | shjdjwApi1403.setLrsl(lhsl.get(0)); |
| | | } |
| | | |
| | | shjdjwApi1403.setJhbm(api1403.getLhjhdh()); |
| | | shjdjwApi1403.setPch("0"); |
| | | return shjdjwApi1403; |
| | |
| | | |
| | | /** |
| | | * 获取轮入和轮出重量 |
| | | * |
| | | * @param api1403 |
| | | * @return |
| | | */ |
| | |
| | | |
| | | // 计划数量 |
| | | List<Double> lhsl = getLhsl(api1403); |
| | | Double sum = lhsl.stream().reduce(0d, Double::sum); |
| | | Double sum = 0.0; |
| | | if (null != lhsl && lhsl.size() > 0) { |
| | | sum = lhsl.stream().reduce(0d, Double::sum); |
| | | } |
| | | // 已执行数量 |
| | | List<Api1202> api1202List = api1202Rep.getDataByTime(api1403.getKszxrq(), api1403.getJzzxrq()); |
| | | // DateUtils.format("yyyy-MM-dd HH:mm:ss", api1403.getKszxrq()), |