From 4f53785c3f435d49829782bbbc5cc5ffd96ed9b9 Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期三, 13 九月 2023 16:48:19 +0800
Subject: [PATCH] zjh 2023/09/13---5

---
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOrderController.java |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOrderController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOrderController.java
index 0cbd25b..4c7dad4 100644
--- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOrderController.java
+++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOrderController.java
@@ -132,7 +132,7 @@
     /**
      * 鏌ヨ浣撴璁板綍鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('hosp:order:list')")
+//    @PreAuthorize("@ss.hasPermi('hosp:order:list')")
     @GetMapping("/list")
     @ApiOperation(value = "鏌ヨ浣撴璁板綍鍒楄〃(榛樿)")
     public TableDataInfo list(TjOrder tjOrder) {
@@ -703,7 +703,7 @@
     /**
      * 瀵煎嚭浣撴璁板綍鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('hosp:order:export')")
+//    @PreAuthorize("@ss.hasPermi('hosp:order:export')")
     @Log(title = "浣撴璁板綍", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     @ApiOperation(value = "瀵煎嚭浣撴璁板綍鍒楄〃")
@@ -717,7 +717,7 @@
     /**
      * 鑾峰彇浣撴璁板綍璇︾粏淇℃伅
      */
-    @PreAuthorize("@ss.hasPermi('hosp:order:query')")
+//    @PreAuthorize("@ss.hasPermi('hosp:order:query')")
     @GetMapping(value = "/{orderId}")
     @ApiOperation(value = "鑾峰彇浣撴璁板綍璇︾粏淇℃伅")
     public AjaxResult getInfo(@PathVariable("orderId") Long orderId) {
@@ -858,7 +858,9 @@
 
             //涓汉
             if ("2".equals(tjOrder.getTjType())) {
-                asyncService.extracted(tjOrder, tjCustomer, discount, sysUser, tjReservation, tjFlowingWater);
+//                asyncService.extracted(tjOrder, tjCustomer, discount, sysUser, tjReservation, tjFlowingWater);
+
+                asyncService.newSaveextracted(tjOrder, tjCustomer, discount, sysUser, tjReservation, tjFlowingWater);
             }
             return AjaxResult.success(tjNumber);
         }
@@ -869,7 +871,7 @@
     /**
      * 淇敼浣撴璁板綍
      */
-    @PreAuthorize("@ss.hasPermi('hosp:order:edit')")
+//    @PreAuthorize("@ss.hasPermi('hosp:order:edit')")
     @Log(title = "浣撴璁板綍", businessType = BusinessType.UPDATE)
     @PutMapping
     @ApiOperation(value = "淇敼浣撴璁板綍")
@@ -880,7 +882,7 @@
     /**
      * 鍒犻櫎浣撴璁板綍
      */
-    @PreAuthorize("@ss.hasPermi('hosp:order:remove')")
+//    @PreAuthorize("@ss.hasPermi('hosp:order:remove')")
     @Log(title = "浣撴璁板綍", businessType = BusinessType.DELETE)
     @DeleteMapping("/{orderIds}")
     @ApiOperation(value = "鍒犻櫎浣撴璁板綍")
@@ -1325,8 +1327,11 @@
                         tbTransition.setPacPrice(projectService.getTjProjectById(String.valueOf(tbTransition.getParentProId())).getProPrice());
                     }
                 }
-                map.put("ordPrice", money1.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price"))));
-                map.put("nowPrice", money2.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price"))));
+//                map.put("ordPrice", money1.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price"))));
+//                map.put("nowPrice", money2.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price"))));
+
+                map.put("ordPrice", money1);
+                map.put("nowPrice", money2);
             }
             list.add(map);
         }
@@ -1537,8 +1542,10 @@
 
     @PostMapping("/deletedTbTransitionByCusId")
     @ApiOperation(value = "鏍规嵁韬唤璇佸彿鍒犻櫎涓存椂琛ㄦ暟鎹�")
-    public AjaxResult deletedTbTransitionByCusId(@RequestBody String cusId) {
-        transitionService.deletedTbTransitionByCusId(cusId);
-        return AjaxResult.success();
+    public AjaxResult deletedTbTransitionByCusId(@RequestParam @ApiParam(value = "韬唤璇佸彿") String cusId) {
+        LambdaQueryWrapper<TbTransition> wq=new LambdaQueryWrapper<>();
+        wq.between(TbTransition::getCreateTime,transitionService.getTbTransitionCreateTimeByCusId(cusId),new Date());
+        wq.eq(TbTransition::getCusId,cusId);
+        return AjaxResult.success(transitionService.remove(wq));
     }
 }

--
Gitblit v1.8.0