liyg 2 năm trước cách đây
mục cha
commit
01858e37cc

+ 16 - 0
src/main/java/com/steerinfo/dil/controller/AMScontroller.java

@@ -127,6 +127,22 @@ public class AMScontroller{
         return amsFeign.getPurchaseRequirementList(mapValue == null ? new HashMap<>() : mapValue,apiId,pageNum,pageSize);
     }
 
+    @ApiOperation(value="展示采购计划详情")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "mapValue", value = "参数", required = false, dataType = "map"),
+            @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
+    })
+    @PostMapping(value = "/getPurchasePlanList")
+    Map<String, Object> getPurchasePlanList(@RequestBody(required=false) Map<String,Object> mapValue,
+                                                   Integer apiId,
+                                                   Integer pageNum,
+                                                   Integer pageSize
+    ){
+        return amsFeign.getPurchasePlanList(mapValue == null ? new HashMap<>() : mapValue,apiId,pageNum,pageSize);
+    }
+
     @ApiOperation(value = "采购计划新增接口", notes = "采购计划新增接口")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")

+ 7 - 0
src/main/java/com/steerinfo/dil/controller/RMScontroller.java

@@ -231,6 +231,13 @@ public class RMScontroller extends BaseRESTfulController {
     public Map<String, Object> getOperationPointById(@PathVariable("id") BigDecimal id) {
         return rmsFeign.getOperationPointById(id);
     }
+    @ApiOperation(value = "更新作业点同步作业点", notes = "根据rmsOperationPoint对象创建")
+    @ApiImplicitParam(name = "rmsOperationPoint", value = "详细实体rmsOperationPoint", required = true, dataType = "rmsOperationPoint")
+    @PostMapping(value = "/syncOperationPoint")
+    @LogAround(foreignKeys = {"operationPointId"}, foreignKeyTypes = {"作业点"}, description = "同步作业点")
+    public Map<String, Object> syncOperationPoint(@RequestBody(required = false) Map<String, Object> map) {
+        return rmsFeign.syncOperationPoint(map);
+    }
 
     //============人员信息
     @ApiOperation(value = "获取人员信息列表")

+ 6 - 0
src/main/java/com/steerinfo/dil/feign/AmsFeign.java

@@ -51,6 +51,12 @@ public interface AmsFeign {
                                                    @RequestParam  Integer pageNum,
                                                    @RequestParam  Integer pageSize);
 
+    @PostMapping(value = "api/v1/ams/amstransplans/getPurchasePlanList")
+    Map<String, Object> getPurchasePlanList(@RequestBody(required=false) Map<String,Object> mapValue,
+                                                   @RequestParam  Integer apiId,
+                                                   @RequestParam  Integer pageNum,
+                                                   @RequestParam  Integer pageSize);
+
     @PostMapping(value = "api/v1/ams/amstransplans/purchasePlanAdd")
     Map<String, Object> purchasePlanAdd(Map<String, Object> map);
 

+ 4 - 0
src/main/java/com/steerinfo/dil/feign/RmsFeign.java

@@ -139,6 +139,10 @@ public interface RmsFeign {
     @PostMapping(value = "api/v1/rms/rmsoperationpoint/updateOperationPoint")
     Map<String, Object> updateOperationPoint(@RequestBody(required = false) Map<String, Object> map);
 
+    //同步作业点信息
+    @PostMapping(value = "api/v1/rms/rmsoperationpoint/syncOperationPoint")
+    Map<String, Object> syncOperationPoint(@RequestBody(required = false) Map<String, Object> map);
+
     //查询作业点ID
     @PostMapping(value = "api/v1/rms/rmsoperationpoint/getOperationPointById/{id}")
     Map<String, Object> getOperationPointById(@PathVariable("id") BigDecimal id);