瀏覽代碼

登录页+接口(南通)

wangxuan 2 月之前
父節點
當前提交
34e8697f67

+ 5 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxApiDao.java

@@ -87,4 +87,9 @@ public interface ZhcxApiDao {
             "WHERE " +
             " po.USERID = #{userId}")
     List<JSONObject> getProjectOrgByUserId(@Param("userId") String userId);
+
+    @Select("SELECT x.MESSAGE \n" +
+            "FROM INCONTROL.ZHCX_NOTIFICATIONS x\n" +
+            "WHERE TRUNC(RELEASEDATE) = TRUNC(SYSDATE) AND DELETED = '0' AND ISEFFECTIVE = '1' ORDER BY MODIFYDATE DESC LIMIT 1")
+    String getTodeyNotice();
 }

+ 2 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxApiService.java

@@ -43,4 +43,6 @@ public interface ZhcxApiService {
     int getIp(String clientIp);
 
     void saveIp(String clientIp);
+
+    R getTodeyNotice();
 }

+ 5 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxApiServiceImpl.java

@@ -587,6 +587,11 @@ public class ZhcxApiServiceImpl implements ZhcxApiService {
         zhcxApiDao.saveIp(uuid,clientIp);
     }
 
+    @Override
+    public R getTodeyNotice() {
+        return R.ok(zhcxApiDao.getTodeyNotice());
+    }
+
     private List<RectifyApiDataDto> processFirstDeptData(List<ZhcxProjectRectifyMachineVo> list, ZhcxProjectManageDo projectManageDo) {
         Map<String, List<ZhcxProjectRectifyMachineVo>> groupFirstDeptList = list.stream()
                 .filter(e -> Objects.nonNull(e.getFirstdeptid()))

+ 5 - 0
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxApiController.java

@@ -205,4 +205,9 @@ public class ZhcxApiController {
         }
         return R.ok(jsonData);
     }
+
+    @PostMapping("getTodeyNotice")
+    public R getTodeyNotice(){
+        return zhcxApiService.getTodeyNotice();
+    }
 }