| | |
| | | if (String.valueOf(minute).equals(conf.getSyncMinute99())) { |
| | | isExecute = true; |
| | | if (!isUpdateStart) { |
| | | start = DateUtils.addHours(start, -1); |
| | | start = DateUtils.addHours(start, -2); |
| | | } |
| | | } else { |
| | | isExecute = false; |
| | |
| | | |
| | | api1302.setCfww(grain.getTempOut()); |
| | | api1302.setCfws(grain.getHumidityOut()); |
| | | api1302.setCfnw(grain.getTempIn()); |
| | | if (api1302.getCfnw()<0){ |
| | | api1302.setCfnw(0); |
| | | } |
| | | api1302.setCfns(grain.getHumidityIn()); |
| | | if (api1302.getCfns()<0){ |
| | | api1302.setCfns(0); |
| | | } |
| | | api1302.setCfnw(grain.getTempIn() < 0.0 ? 0.0 : grain.getTempIn()); |
| | | |
| | | api1302.setCfns(grain.getHumidityIn() < 0.0 ? 0.0 : grain.getHumidityIn()); |
| | | |
| | | api1302.setLszgw(grain.getTempMax()); |
| | | api1302.setLspjw(grain.getTempAve()); |
| | | api1302.setLszdw(grain.getTempMin()); |
| | |
| | | if (sysData.getRecordStatus().equals("DEL") || sysData.getRecordStatus().equals("ERROR")) { |
| | | continue; |
| | | } |
| | | if (!sysData.getProgress().equals("RECORD")){ |
| | | continue; |
| | | } |
| | | if (null == sysData.getRecordWeight() || sysData.getRecordWeight() == 0) { |
| | | sysData.setRecordWeight(sysData.getSettleWeight()); |
| | | } |
| | |
| | | |
| | | if ("1".equals(apiData.getHwzt())) { |
| | | //出仓完成时间 |
| | | apiData.setCcwcsj(DateUtils.addDays(fz40DepotStore.getStoreDate(), 5)); |
| | | apiData.setCcwcsj(fz40DepotStore.getOutDate()); |
| | | //清仓时间 |
| | | apiData.setQcsj(DateUtils.addDays(apiData.getCcwcsj(), 1)); |
| | | apiData.setQcsj(DateUtils.addHours(apiData.getCcwcsj(), 60)); |
| | | } |
| | | //国别 |
| | | apiData.setGb("156"); |
| | |
| | | |
| | | api1302.setCfnw(fz40Grain.getTempIn() == null ? 0.00 : fz40Grain.getTempIn()); |
| | | if (null == fz40Grain.getHumidityIn() || fz40Grain.getHumidityIn() < 0) { |
| | | api1302.setCfns(-1); |
| | | api1302.setCfns(0); |
| | | } else { |
| | | api1302.setCfns(fz40Grain.getHumidityIn()); |
| | | } |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.lang.reflect.Field; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | api1403.setRotationInQty(lrsl); |
| | | api1403.setRotationOutQty(lcsl); |
| | | api1403.setRotationInQty(Double.valueOf(String.format("%.3f",lrsl))); |
| | | api1403.setRotationOutQty(Double.valueOf(String.format("%.3f",lcsl))); |
| | | api1403.setDtls(dtls); |
| | | //先上传文件,获取文件id |
| | | GD2023ResponseDto responseDto = GD2023HttpClientUtil.postUploadData(url, authToken, api1403.getWjdz()); |