From 10aaa035f5be0312304d20f022bdb714a8f4900a Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 11 十二月 2024 22:16:23 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java | 29 +++++++++++++++++++++++------ 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java index 3e4d7dc..2a3f0ad 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java @@ -11,6 +11,7 @@ import com.ruoyi.common.utils.RSAPublicKeyExample; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.poi.ExcelUtil; +import com.smartor.common.SendService; import com.smartor.domain.*; import com.smartor.service.IServiceSubtaskService; import com.smartor.service.IServiceTaskService; @@ -24,6 +25,7 @@ import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletResponse; +import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.List; import java.util.stream.Collectors; @@ -54,6 +56,19 @@ @Autowired private RSAPublicKeyExample rsaPublicKeyExample; + @Autowired + private SendService sendService; + + @PostMapping("/test") + public TableDataInfo test(@RequestBody SendMagParam sendMagParam) { + try { + Boolean aBoolean = sendService.sendMsg(sendMagParam); + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + /** * 鏌ヨ璇煶浠诲姟鍒楄〃 */ @@ -67,9 +82,11 @@ if (CollectionUtils.isNotEmpty(serviceTaskVOS)) { for (ServiceTaskVO ServiceTaskVO : serviceTaskVOS) { - ServiceSubtaskVO ServiceTaskcall = new ServiceSubtaskVO(); - ServiceTaskcall.setTaskid(ServiceTaskVO.getTaskid()); - List<ServiceSubtask> ServiceTaskcalls = iServiceTaskCallService.selectServiceSubtaskList(ServiceTaskcall); + ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); + serviceSubtaskVO.setTaskid(ServiceTaskVO.getTaskid()); + serviceSubtaskVO.setStartOutHospTime(serviceTask.getStartOutHospTime()); + serviceSubtaskVO.setEndOutHospTime(serviceTask.getEndOutHospTime()); + List<ServiceSubtask> ServiceTaskcalls = iServiceTaskCallService.selectServiceSubtaskList(serviceSubtaskVO); if (CollectionUtils.isNotEmpty(ServiceTaskcalls)) { //宸插彂閫� long yfs = ServiceTaskcalls.stream().filter(serviceTaskcall1 -> serviceTaskcall1.getSendstate() != null && serviceTaskcall1.getSendstate() == 3L).collect(Collectors.toList()).stream().count(); @@ -177,7 +194,7 @@ public AjaxResult getScriptInfoByCondition(@RequestBody ServiceTaskScriptQues serviceTaskScriptQues) { Long tid = null; Long pid = null; - log.info("getScriptInfoByCondition鍏ュ弬涓猴細{}", serviceTaskScriptQues); + log.error("getScriptInfoByCondition鍏ュ弬涓猴細{}", serviceTaskScriptQues); try { tid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam1(), pri_key)); pid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam2(), pri_key)); @@ -185,8 +202,8 @@ log.error("getScriptInfoByCondition鎶ラ敊浜嗭細{}", e.getMessage()); } - log.info("tid鍜宲id鐨勫�间负锛歿},{}", tid, pid); - return success(serviceTaskService.getScriptInfoByCondition(tid, pid)); + log.error("tid鍜宲id鐨勫�间负锛歿},{}", tid, pid); + return success(serviceTaskService.getScriptInfoByCondition(tid, pid, true)); } } -- Gitblit v1.9.3