| | |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz40Grain> list = fzzySync1302Rep.findByReceiveDate(start, end); |
| | | log.info(DateUtils.format("yyyy-MM-dd HH:mm:ss", start)); |
| | | log.info(DateUtils.format("yyyy-MM-dd HH:mm:ss", end)); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("1302---同步数据:没有查询到需要同步的数据"); |
| | | return; |
| | | } |
| | | log.info(JSONObject.toJSONString(list)); |
| | | |
| | | Date syncTime = new Date(); |
| | | Api1302 api1302; |
| | | Api1105 api1105; |
| | |
| | | |
| | | api1302.setCfww(fz40Grain.getTempOut() == null ? 0.00 : fz40Grain.getTempOut()); |
| | | if (null == fz40Grain.getHumidityOut() || fz40Grain.getHumidityOut() < 0) { |
| | | api1302.setCfws(-1); |
| | | api1302.setCfws(0); |
| | | } else { |
| | | api1302.setCfws(fz40Grain.getHumidityOut()); |
| | | } |
| | | |
| | | 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()); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | return result.substring(1); |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | } |
| | | return result.substring(1); |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | } |
| | | return result.substring(1); |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | } |
| | | return result.substring(1); |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | } |