|
@@ -167,6 +167,33 @@ public class AMScontroller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "生产需求批量修改接口", notes = "生产需求批量修改接口")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|
|
|
|
|
+ })
|
|
|
|
|
+ @LogAround(foreignKeys = {"transRequirementId"}, foreignKeyTypes = {"生产需求"})
|
|
|
|
|
+ @PostMapping(value = "/productionRequirementBatchUpdate")
|
|
|
|
|
+ public Map<String, Object> productionRequirementBatchUpdate(@RequestBody(required = false) Map<String, Object> map) throws ParseException {
|
|
|
|
|
+ map.put("insertUsername", map.get("userName").toString());
|
|
|
|
|
+ if (map.containsKey("requirementStartTime")){
|
|
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
+ Date requirementStartTime = simpleDateFormat.parse(map.get("requirementStartTime").toString());
|
|
|
|
|
+ map.put("requirementStartTime", requirementStartTime);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (map.containsKey("requirementEndTime")){
|
|
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
+ Date requirementEndTime = simpleDateFormat.parse(map.get("requirementEndTime").toString());
|
|
|
|
|
+ map.put("requirementEndTime", requirementEndTime);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (map.containsKey("dueTime")){
|
|
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
+ Date dueTime = simpleDateFormat.parse(map.get("dueTime").toString());
|
|
|
|
|
+ map.put("dueTime", dueTime);
|
|
|
|
|
+ }
|
|
|
|
|
+ return amsFeign.productionRequirementBatchUpdate(map);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@ApiOperation(value = "生产需求状态修改接口", notes = "生产需求状态修改接口")
|
|
@ApiOperation(value = "生产需求状态修改接口", notes = "生产需求状态修改接口")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|
|
@ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|