cnas-device/src/main/java/com/ruoyi/device/task/DeviceRecordSchedule.java
@@ -31,7 +31,7 @@ * æéå¡«å设å¤ä½¿ç¨è®°å½ */ // @Scheduled(cron = "0/5 * * * * *") @Scheduled(cron = "0 0 9 * * 6") // æ¯å¨å æ§è¡ä¸æ¬¡ // @Scheduled(cron = "0 0 9 * * 6") // æ¯å¨å æ§è¡ä¸æ¬¡ public void task1() { // æ¥è¯¢æªå¡«åç设å¤ä½¿ç¨è®°å½ List<DeviceRecordDto> deviceRecords = deviceRecordMapper.selectNotFilled(); cnas-manage/src/main/java/com/ruoyi/manage/schedule/ManageRecordTotalSchedule.java
@@ -20,7 +20,7 @@ @Resource private ManageRecordIntervalsTotalService manageRecordIntervalsTotalService; @Scheduled(cron = "0 0 2 1 1 ?") //æ¯å¹´1æ1å·2ç¹ // @Scheduled(cron = "0 0 2 1 1 ?") //æ¯å¹´1æ1å·2ç¹ public void manageRecordTotal() { ManageRecordTotal manageRecordTotal = new ManageRecordTotal(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); cnas-personnel/src/main/java/com/ruoyi/personnel/task/PersonTrainingSchedule.java
@@ -31,7 +31,7 @@ * æéå¡«å设å¤ä½¿ç¨è®°å½ */ // @Scheduled(cron = "0/5 * * * * *") @Scheduled(cron = "0 0 9 1 * *") // æ¯æä¸å·æ§è¡ // @Scheduled(cron = "0 0 9 1 * *") // æ¯æä¸å·æ§è¡ public void task1() { // æ¥è¯¢å½æå¹è®è®¡å DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.M"); cnas-process/src/main/java/com/ruoyi/process/schedule/ProcessTotaldealSchedule.java
@@ -21,7 +21,7 @@ @Resource private ProcessTotalSampleService processTotalSampleService; @Scheduled(cron = "0 0 2 1 * ?") //æ¯æ1å·2ç¹ // @Scheduled(cron = "0 0 2 1 * ?") //æ¯æ1å·2ç¹ public void processTotaldeal() { ProcessTotaldeal processTotaldeal = new ProcessTotaldeal(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); cnas-process/src/main/java/com/ruoyi/process/task/QualitySuperviseSchedule.java
@@ -32,7 +32,7 @@ * æéå¡«å设å¤ä½¿ç¨è®°å½ */ // @Scheduled(cron = "0/5 * * * * *") @Scheduled(cron = "0 0 9 1 * *") // æ¯æ1å·æ§è¡ // @Scheduled(cron = "0 0 9 1 * *") // æ¯æ1å·æ§è¡ public void task1() { // æ¥è¯¢å½æçç£è®¡å DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.M"); cnas-require/src/main/java/com/ruoyi/require/task/FeTempHumDateSchedule.java
@@ -86,7 +86,7 @@ * è·å温度湿度 */ // @Scheduled(cron = "0/5 * * * * *") @Scheduled(cron = "0 0 9 * * 1-6") // æ¯å¤©9ç¹æ§è¡ä¸æ¬¡ é¤äºææå¤© // @Scheduled(cron = "0 0 9 * * 1-6") // æ¯å¤©9ç¹æ§è¡ä¸æ¬¡ é¤äºææå¤© public void task1() { checkLaboratoriesSchedule(); // æ ¹æ®æ¶é´éåºï¼è·åå°ææ°ç䏿¡æ°æ® @@ -183,7 +183,7 @@ * è·å温度湿度 */ // @Scheduled(cron = "0/5 * * * * *") @Scheduled(cron = "0 0 14 * * 1-5") // æ¯å¤©14ç¹æ§è¡ä¸æ¬¡ é¤äºææå 忿天 // @Scheduled(cron = "0 0 14 * * 1-5") // æ¯å¤©14ç¹æ§è¡ä¸æ¬¡ é¤äºææå 忿天 public void task2() { // æ£æ¥å®éªå®¤æ¯å¦æä»»å¡ å¦ææ²¡ææ°å¢ä»»å¡ @@ -295,7 +295,7 @@ * è·å温度湿度 */ // @Scheduled(cron = "0/5 * * * * *") @Scheduled(cron = "0 0 9 * * 7") // // @Scheduled(cron = "0 0 9 * * 7") // public void task3() { checkLaboratoriesSchedule(); @@ -338,7 +338,7 @@ * */ // @Scheduled(cron = "0/5 * * * * *") @Scheduled(cron = "0 0 16 * * 1-6") // æ¯å¤©15ç¹æ§è¡ä¸æ¬¡ é¤äºææå¤© // @Scheduled(cron = "0 0 16 * * 1-6") // æ¯å¤©15ç¹æ§è¡ä¸æ¬¡ é¤äºææå¤© public void affirmTempHum() { // æ¥è¯¢ææ¥æä½æ¯æªå¡«åååç List<FeTempHumRecordDto> feTempHumRecordList = feTempHumRecordMapper.selectNoaffirm(LocalDate.now()); inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderPlanServiceImpl.java
@@ -911,7 +911,7 @@ .last("limit 1")); threadPoolTaskExecutor.execute(() -> { String message = ""; message += "æ£éªä»»å¡å¤æ ¸éç¥"; message += "èä¸ç³»ç»æ£éªä»»å¡å¤æ ¸éç¥"; message += "\næäº¤äºº: " + userName; message += "\nå§æç¼å·: " + order.getEntrustCode(); message += "\næ ·ååç§°: " + insSample.getModel(); @@ -1172,7 +1172,7 @@ IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(order.getIfsInventoryId()); String message = ""; message += "æ¥åç¼å¶å®¡æ¹éç¥"; message += "èä¸ç³»ç»æ¥åç¼å¶å®¡æ¹éç¥"; message += "\næ£éªäºº: " + userName; message += "\n夿 ¸äºº: " + chenkUserName; message += "\nå§æç¼å·: " + order.getEntrustCode(); @@ -1214,7 +1214,7 @@ IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(order.getIfsInventoryId()); String message = ""; message += "æ£éªä»»å¡å¤æ ¸éåéç¥"; message += "èä¸ç³»ç»æ£éªä»»å¡å¤æ ¸éåéç¥"; message += "\n夿 ¸äºº: " + userName; message += "\nå§æç¼å·: " + order.getEntrustCode(); message += "\næ ·ååç§°: " + insSample.getModel(); inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsReportServiceImpl.java
@@ -262,7 +262,7 @@ IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(order.getIfsInventoryId()); String message = ""; message += "æ¥åç¼å¶å®¡æ ¸éåéç¥"; message += "èä¸ç³»ç»æ¥åç¼å¶å®¡æ ¸éåéç¥"; message += "\nå®¡æ ¸äºº: " + checkUserName; message += "\nå§æç¼å·: " + order.getEntrustCode(); message += "\næ ·ååç§°: " + insSample.getModel(); @@ -337,7 +337,7 @@ IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(order.getIfsInventoryId()); String message = ""; message += "æ¥åç¼å¶æ¹åéç¥"; message += "èä¸ç³»ç»æ¥åç¼å¶æ¹åéç¥"; message += "\næ£éªäºº: " + userName; message += "\n夿 ¸äºº: " + checkUserName; message += "\nå§æç¼å·: " + order.getEntrustCode(); @@ -399,7 +399,7 @@ IfsInventoryQuantity ifsInventoryQuantity = ifsInventoryQuantityMapper.selectById(order.getIfsInventoryId()); String message = ""; message += "æ¥åç¼å¶æ¹åéåéç¥"; message += "èä¸ç³»ç»æ¥åç¼å¶æ¹åéåéç¥"; message += "\næ¹å人: " + ratifyUserName; message += "\nå§æç¼å·: " + order.getEntrustCode(); message += "\næ ·ååç§°: " + insSample.getModel(); inspect-server/src/main/resources/static/report-template.docxBinary files differ
ruoyi-admin/src/main/resources/application-prod.yml
ÎļþÒÑɾ³ý ruoyi-admin/src/main/resources/application-test.yml
@@ -151,7 +151,7 @@ examiningUrl: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=21993616-9966-4fe4-81b0-68e99a40c964 ifs: contract: ZTZB contract: ZTNS contract-key-get: 4ttDeLKNsZuhstjtROMcRE1USNFXKdFYE7lQ2p1m5Bo= contract-key-post: 4ttDeLKNsZuhstjtROMcRE1USNFXKdFYE7lQ2p1m5Bo= custorder: http://192.168.20.47/PurchService.ashx? ruoyi-admin/src/main/resources/application-ztns.yml
@@ -113,7 +113,7 @@ # minio容å¨ç®¡ç minio: endpoint: http://114.132.189.42/ endpoint: http://localhost/ port: 7019 secure: false accessKey: admin @@ -154,9 +154,9 @@ person: https://ztt-connector.ztt.cn/api/org/v1/employees/simple/ ifs: contract: ZTZB contract-key-get: x%2bvbGReagnsK%2fDr45xkVcGLOh%2fWWGODQ2inBGeNwbZw%3d contract-key-post: x+vbGReagnsK/Dr45xkVcGLOh/WWGODQ2inBGeNwbZw= contract: ZTNS contract-key-get: NmAkSXwoAeRF2NWF6dnsVc2O+kH2X3XuNVFbfDtnaFU= contract-key-post: NmAkSXwoAeRF2NWF6dnsVc2O+kH2X3XuNVFbfDtnaFU= custorder: http://192.168.20.50/PurchService.ashx? custorder-port: http://192.168.20.50:8008/PurchService.ashx? erp-services: http://192.168.20.50:8081 ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java
@@ -93,18 +93,19 @@ } /** * æ¨éç¾¤æ¶æ¯ * todo:æ¨éç¾¤æ¶æ¯ * * @param webHook ä¼ä¸å¾®ä¿¡æºå¨äººå°å * @param content æ°æ® * @throws Exception */ public static String informWebHook(String webHook, String content) { JSONObject jsonObject = new JSONObject() .accumulate("msgtype", "text") .accumulate("text", new JSONObject() .accumulate("content", content)); return HttpRequest.post(webHook).header("Content-Type", "application/json").body(jsonObject.toString()).execute().body(); // JSONObject jsonObject = new JSONObject() // .accumulate("msgtype", "text") // .accumulate("text", new JSONObject() // .accumulate("content", content)); // return HttpRequest.post(webHook).header("Content-Type", "application/json").body(jsonObject.toString()).execute().body(); return null; } public static String getMd5(File file) {