fubin 2 лет назад
Родитель
Сommit
4276d9f01f

+ 20 - 9
src/main/java/com/dk/mdm/controller/sale/OrderController.java

@@ -39,9 +39,9 @@ public class OrderController {
     }
 
     /**
-     * @desc   :查询订单明细(货物、收款、附件)
+     * @desc :查询订单明细(货物、收款、附件)
      * @author : 付斌
-     * @date   : 2024-02-28 13:24
+     * @date : 2024-02-28 13:24
      */
     @PostMapping({"select_order_info_by_id/{id}"})
     public ResponseResultVO<Map<String, Object>> selectOrderInfoById(@PathVariable String id) {
@@ -77,14 +77,25 @@ public class OrderController {
      */
     @ApiOperation(value = "编辑订单", notes = "编辑订单")
     @PostMapping({"update"})
-    public ResponseResultVO<Boolean> update(@RequestBody OrderVO orderVO) {
+    public ResponseResultVO<?> update(@RequestBody OrderVO orderVO) {
         return orderService.update(orderVO);
     }
 
     /**
-     * @desc   : 获取订单信息(编辑用)
+     * @desc : 作废
      * @author : 付斌
-     * @date   : 2024-03-03 9:28
+     * @date : 2024-03-08 16:36
+     */
+    @ApiOperation(value = "作废", notes = "作废")
+    @PostMapping({"invalid/{id}"})
+    public ResponseResultVO<?> invalid(@PathVariable String id) {
+        return orderService.invalid(id);
+    }
+
+    /**
+     * @desc : 获取订单信息(编辑用)
+     * @author : 付斌
+     * @date : 2024-03-03 9:28
      */
     @ApiOperation(value = "获取订单信息(编辑用)", notes = "获取订单信息(编辑用)")
     @PostMapping({"get_order_for_update/{id}"})
@@ -93,9 +104,9 @@ public class OrderController {
     }
 
     /**
-     * @desc   : 获取订单信息(出库用)
+     * @desc : 获取订单信息(出库用)
      * @author : 付斌
-     * @date   : 2024-03-06 12:58
+     * @date : 2024-03-06 12:58
      */
     @ApiOperation(value = "获取订单信息(出库用)", notes = "获取订单信息(出库用)")
     @PostMapping({"get_order_for_out/{id}"})
@@ -104,9 +115,9 @@ public class OrderController {
     }
 
     /**
-     * @desc   : 获取订单信息(退货用)
+     * @desc : 获取订单信息(退货用)
      * @author : 付斌
-     * @date   : 2024-03-06 12:58
+     * @date : 2024-03-06 12:58
      */
     @ApiOperation(value = "获取订单信息(退货用)", notes = "获取订单信息(退货用)")
     @PostMapping({"get_order_for_return/{id}"})

+ 11 - 1
src/main/java/com/dk/mdm/controller/sale/OutReturnController.java

@@ -66,8 +66,18 @@ public class OutReturnController{
      */
     @ApiOperation(value = "编辑退货", notes = "编辑退货")
     @PostMapping({"update"})
-    public ResponseResultVO<Boolean> update(@RequestBody OutReturnVO outReturnVO) {
+    public ResponseResultVO<?> update(@RequestBody OutReturnVO outReturnVO) {
         return outReturnService.update(outReturnVO);
     }
 
+    /**
+     * @desc : 作废
+     * @author : 付斌
+     * @date : 2024-03-08 16:36
+     */
+    @ApiOperation(value = "作废", notes = "作废")
+    @PostMapping({"invalid/{id}"})
+    public ResponseResultVO<?> invalid(@PathVariable String id) {
+        return outReturnService.invalid(id);
+    }
 }

+ 9 - 0
src/main/java/com/dk/mdm/service/ivt/OutboundService.java

@@ -222,6 +222,15 @@ public class OutboundService extends BaseService<Outbound> {
 	}
 
 	/**
+	 * @desc   : 作废
+	 * @author : 付斌
+	 * @date   : 2024-03-08 16:38
+	 */
+	public ResponseResultVO<?> invalid(String id) {
+		return ResponseResultUtil.success();
+	}
+
+	/**
 	 * @desc : 采购退货出库
 	 * @author : 于继渤
 	 * @date : 2023/1/9 10:49

+ 10 - 1
src/main/java/com/dk/mdm/service/sale/OrderService.java

@@ -162,7 +162,7 @@ public class OrderService extends BaseService<Order> {
     @Transactional(
             rollbackFor = {Exception.class}
     )
-    public ResponseResultVO<Boolean> update(OrderVO orderVO) {
+    public ResponseResultVO<?> update(OrderVO orderVO) {
         // 转化实体
         Order order = orderConvert.convertToPo(orderVO);
         //删除的
@@ -202,6 +202,15 @@ public class OrderService extends BaseService<Order> {
     }
 
     /**
+     * @desc   : 作废
+     * @author : 付斌
+     * @date   : 2024-03-08 16:38
+     */
+    public ResponseResultVO<?> invalid(String id) {
+        return ResponseResultUtil.success();
+    }
+
+    /**
      * @desc   : 获取订单信息(编辑用)
      * @author : 付斌
      * @date   : 2024-03-02 17:27

+ 10 - 1
src/main/java/com/dk/mdm/service/sale/OutReturnService.java

@@ -175,7 +175,7 @@ public class OutReturnService extends BaseService<OutReturn> {
     @Transactional(
             rollbackFor = {Exception.class}
     )
-    public ResponseResultVO<Boolean> update(OutReturnVO outReturnVO) {
+    public ResponseResultVO<?> update(OutReturnVO outReturnVO) {
         // 转化实体
         OutReturn outReturn = outReturnConvert.convertToPo(outReturnVO);
 
@@ -194,4 +194,13 @@ public class OutReturnService extends BaseService<OutReturn> {
         return ResponseResultUtil.success(super.update(outReturn, new UpdateWrapper<OutReturn>().lambda().eq(OutReturn::getReturnId,
                 UUID.fromString(outReturn.getReturnId()))));
     }
+
+    /**
+     * @desc   : 作废
+     * @author : 付斌
+     * @date   : 2024-03-08 16:38
+     */
+    public ResponseResultVO<?> invalid(String id) {
+        return ResponseResultUtil.success();
+    }
 }