Browse Source

新增液位发送接口,每天23点发送

hfxc226 2 days ago
parent
commit
83aa77c804

+ 3 - 3
platform-rest/src/main/java/com/platform/rest/task/DegreeTask.java

@@ -132,7 +132,8 @@ public class DegreeTask {
         List<RemoteOpcVO> list = new ArrayList<>();
         List<RemoteOpcVO> list = new ArrayList<>();
         for (RemotePositionVO vo : remotePositionVOList) {
         for (RemotePositionVO vo : remotePositionVOList) {
             String jsonStr = RedisUtils.get(RedisKeyConstants.DCS_PREFIX + vo.getId());
             String jsonStr = RedisUtils.get(RedisKeyConstants.DCS_PREFIX + vo.getId());
-            // log.info("jsonStr: " + jsonStr);
+            log.info("vo.getId(): " + vo.getId());
+            log.info("jsonStr: " + jsonStr);
             if (StringUtils.isNotBlank(jsonStr)) {
             if (StringUtils.isNotBlank(jsonStr)) {
                 List<RemoteOpcVO> resultList = JSON.parseArray(jsonStr, RemoteOpcVO.class);
                 List<RemoteOpcVO> resultList = JSON.parseArray(jsonStr, RemoteOpcVO.class);
                 for (RemoteOpcVO remoteOpcVO : resultList) {
                 for (RemoteOpcVO remoteOpcVO : resultList) {
@@ -151,8 +152,7 @@ public class DegreeTask {
             if (StringUtil.isEmpty(url)) {
             if (StringUtil.isEmpty(url)) {
                 throw new BusinessException("请配置采购系统液位接收地址");
                 throw new BusinessException("请配置采购系统液位接收地址");
             }
             }
+            setDegreeValue(url, list);
         }
         }
     }
     }
-
-
 }
 }