|
@@ -0,0 +1,38 @@
|
|
|
+package com.steerinfo.dil.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.steerinfo.dil.mapper.BackgroundProcessingMapper;
|
|
|
+import com.steerinfo.dil.service.impl.BackgroundProcessingServiceImpl;
|
|
|
+import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
+import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/*
|
|
|
+ * 后台处理程序
|
|
|
+ */
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("${api.version}/bp")
|
|
|
+public class BackgroundProcessingController extends BaseRESTfulController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private BackgroundProcessingMapper backgroundProcessingMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private BackgroundProcessingServiceImpl backgroundProcessingService;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "关闭一车多趟方法")
|
|
|
+ @PostMapping("/closePurOrderMoreTrips")
|
|
|
+ public RESTfulResult closePurOrderMoreTrips(String purchaseOrderNo) {
|
|
|
+ int i = backgroundProcessingMapper.closePurOrderMoreTrips(purchaseOrderNo);
|
|
|
+ if(i != 1){
|
|
|
+ return failed("关闭失败!没有此采购订单");
|
|
|
+ }
|
|
|
+ return success("关闭成功");
|
|
|
+ }
|
|
|
+}
|