| | |
| | | package com.fzzy.gateway.service; |
| | | |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.api.data.GatewayDeviceType; |
| | | import com.fzzy.api.utils.DateUtil; |
| | | import com.fzzy.async.fzzy40.Fzzy40CommonService; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Grain; |
| | | import com.fzzy.gateway.api.GatewayDeviceReportService; |
| | | import com.fzzy.gateway.api.GatewayRemoteManager; |
| | |
| | | |
| | | @Resource |
| | | private GatewayDeviceRep gatewayDeviceRep; |
| | | // @Resource |
| | | // private Fzzy40CommonService fzzy40CommonService; |
| | | @Resource |
| | | private Fzzy40CommonService fzzy40CommonService; |
| | | @Resource |
| | | private GatewayRemoteManager gatewayRemoteManager; |
| | | // @Resource |
| | |
| | | } |
| | | |
| | | |
| | | private String pushByV40(List<GatewayDevice> list, Date start, Date end) { |
| | | public String pushByV40(List<GatewayDevice> list, Date start, Date end) { |
| | | |
| | | String depotIdSys; |
| | | List<Fz40Grain> listGrain; |
| | |
| | | } |
| | | |
| | | //TODO ----》 |
| | | // listGrain = fzzy40CommonService.listGrain(depotIdSys, start, end); |
| | | listGrain = null; |
| | | listGrain = fzzy40CommonService.listGrain(depotIdSys, start, end); |
| | | //listGrain = null; |
| | | if (null == listGrain || listGrain.isEmpty()) { |
| | | log.info("---------设备---{}--未同步到粮情信息,请确认当前条件下是否有数据", device.getDeviceName()); |
| | | continue; |
| | |
| | | } |
| | | |
| | | |
| | | // deviceReportService.pushGrainData2Cloud(pushData); |
| | | // deviceReportService.reportGrainDataByHand(pushData); |
| | | |
| | | } |
| | | |