From 195190571e567602d5e4e8ae3c7c490a515719ef Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 08 十月 2024 15:43:04 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 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 f3b4d20..e117cc3 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
@@ -58,7 +58,7 @@
* 鏌ヨ璇煶浠诲姟鍒楄〃
*/
@ApiOperation("鏌ヨ浠诲姟鍒楄〃")
- @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:list')")
+ //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:list')")
@PostMapping("/list")
public TableDataInfo list(@RequestBody ServiceTask serviceTask) {
PageUtils.startPageByPost(serviceTask.getPageNum(), serviceTask.getPageSize());
@@ -67,9 +67,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();
@@ -99,7 +101,7 @@
* 瀵煎嚭浠诲姟鍒楄〃
*/
@ApiOperation("瀵煎嚭浠诲姟鍒楄〃")
- @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:export')")
+ //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:export')")
@Log(title = "璇煶浠诲姟", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ServiceTask ServiceTask) {
@@ -112,7 +114,7 @@
* 鑾峰彇浠诲姟璇︾粏淇℃伅
*/
@ApiOperation("鑾峰彇浠诲姟璇︾粏淇℃伅")
- @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:query')")
+ //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:query')")
@GetMapping(value = "/{taskid}")
public AjaxResult getInfo(@PathVariable("taskid") Long taskid) {
return success(serviceTaskService.selectServiceTaskByTaskid(taskid));
@@ -122,7 +124,7 @@
* 鏂板浠诲姟
*/
@ApiOperation("鏂板浠诲姟")
- @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:add')")
+ //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:add')")
@Log(title = "璇煶浠诲姟", businessType = BusinessType.INSERT)
@PostMapping("/add")
public AjaxResult add(@RequestBody ServiceTask ServiceTask) {
@@ -133,7 +135,7 @@
* 淇敼璇煶浠诲姟
*/
@ApiOperation("淇敼浠诲姟")
- @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:edit')")
+ //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:edit')")
@Log(title = "浠诲姟", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
public AjaxResult edit(@RequestBody ServiceTask ServiceTask) {
@@ -144,7 +146,7 @@
// * 鍒犻櫎璇煶浠诲姟
// */
// @ApiOperation("鍒犻櫎浠诲姟")
-// @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')")
+// //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')")
// @Log(title = "璇煶浠诲姟", businessType = BusinessType.DELETE)
// @GetMapping("/remove/{taskids}")
// public AjaxResult remove(@PathVariable Long[] taskids) {
@@ -156,7 +158,7 @@
* 鍒犻櫎浠诲姟(鍖呮嫭瀹冨搴旂殑鎮h�呬俊鎭�)
*/
@ApiOperation("鍒犻櫎浠诲姟(鍖呮嫭瀹冨搴旂殑鎮h�呬俊鎭�)")
- @PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')")
+ //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:remove')")
@Log(title = "璇煶浠诲姟", businessType = BusinessType.DELETE)
@GetMapping("/remove/{taskId}")
public AjaxResult removeTask(@PathVariable("taskId") String taskId) {
@@ -179,8 +181,6 @@
Long pid = null;
log.info("getScriptInfoByCondition鍏ュ弬涓猴細{}", serviceTaskScriptQues);
try {
-// tid = Long.valueOf(rsaPublicKeyExample.decryptedData(URLDecoder.decode(serviceTaskScriptQues.getParam1(), "UTF-8"), pri_key));
-// pid = Long.valueOf(rsaPublicKeyExample.decryptedData(URLDecoder.decode(serviceTaskScriptQues.getParam2(), "UTF-8"), pri_key));
tid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam1(), pri_key));
pid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam2(), pri_key));
} catch (Exception e) {
@@ -188,7 +188,7 @@
}
log.info("tid鍜宲id鐨勫�间负锛歿},{}", tid, pid);
- return success(serviceTaskService.getScriptInfoByCondition(tid, pid));
+ return success(serviceTaskService.getScriptInfoByCondition(tid, pid, true));
}
}
--
Gitblit v1.9.3