Kaynağa Gözat

新增未轧钢材

liyg 2 yıl önce
ebeveyn
işleme
b8a4de97dd

+ 29 - 0
src/main/java/com/steerinfo/dil/controller/QMSController.java

@@ -2,6 +2,7 @@ package com.steerinfo.dil.controller;
 
 import com.steerinfo.dil.feign.QmsFeign;
 import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
@@ -434,5 +435,33 @@ public class QMSController extends BaseRESTfulController {
 //                                                       String con
 //    ){return qmsFeign.getWarehouseQueueEndMes(mapValue == null ? new HashMap<>(): mapValue, apiId, pageNum, pageSize,con);
 //    }
+    @ApiOperation(value="查看所有物资")
+    @GetMapping("/getAllModel")
+    public Map<String, Object>  getAllModel(String index){
+        return qmsFeign.getAllModel(index);
+    }
+
+    @ApiOperation(value="查看所有未轧物资")
+    @GetMapping("/getAllModelUnrolled")
+    public Map<String, Object>  getAllModelUnrolled(String index){
+        return qmsFeign.getAllModelUnrolled(index);
+    }
+
+    @ApiOperation(value="添加未轧物资")
+    @PostMapping("/addModel")
+    public Map<String, Object> addModel(@RequestBody(required=false) Map<String,Object> mapValue){
+        return qmsFeign.addModel(mapValue);
+    }
+
+    @ApiOperation(value="修改未轧物资")
+    @PostMapping("/updateModel")
+    public Map<String, Object> updateModel(@RequestBody(required=false) Map<String,Object> mapValue){
+        return qmsFeign.updateModel(mapValue);
+    }
 
+    @ApiOperation(value="删除未轧物资")
+    @PostMapping("/deleteModel")
+    public Map<String, Object> deleteModel(@RequestBody(required=false) Map<String,Object> mapValue){
+        return qmsFeign.deleteModel(mapValue);
+    }
 }

+ 13 - 0
src/main/java/com/steerinfo/dil/feign/QmsFeign.java

@@ -218,5 +218,18 @@ public interface QmsFeign {
 //                                                @RequestParam("pageSize") Integer pageSize,
 //                                                @RequestParam("con")String con
 //    );
+    @GetMapping("api/v1/queueTruck/qmsqueueresults/getAllModel")
+    Map<String, Object> getAllModel(@RequestParam String index);
 
+    @GetMapping("api/v1/queueTruck/qmsqueueresults/getAllModelUnrolled")
+    Map<String, Object> getAllModelUnrolled(@RequestParam String index);
+
+    @PostMapping("api/v1/queueTruck/qmsqueueresults/addModel")
+    Map<String, Object> addModel(@RequestBody(required=false) Map<String,Object> mapValue);
+
+    @PostMapping("api/v1/queueTruck/qmsqueueresults/updateModel")
+    Map<String, Object> updateModel(@RequestBody(required=false) Map<String,Object> mapValue);
+
+    @PostMapping("api/v1/queueTruck/qmsqueueresults/deleteModel")
+    Map<String, Object> deleteModel(@RequestBody(required=false) Map<String,Object> mapValue);
 }