|
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.steerinfo.dil.annotaion.LogAround;
|
|
import com.steerinfo.dil.annotaion.LogAround;
|
|
|
import com.steerinfo.dil.feign.AmsFeign;
|
|
import com.steerinfo.dil.feign.AmsFeign;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
|
|
+import com.steerinfo.dil.util.ExcelToolUtils;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
@@ -866,4 +867,103 @@ public class AMScontroller extends BaseRESTfulController {
|
|
|
RESTfulResult updateBalancePl(@RequestBody Map<String,Object> map) {
|
|
RESTfulResult updateBalancePl(@RequestBody Map<String,Object> map) {
|
|
|
return amsFeign.updateBalancePl(map);
|
|
return amsFeign.updateBalancePl(map);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation("固定需求新增")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|
|
|
|
|
+ })
|
|
|
|
|
+ @LogAround(foreignKeys = {"fixedNeedsId"}, foreignKeyTypes = {"固定生产需求"})
|
|
|
|
|
+ @PostMapping("/fixedNeedsAdd")
|
|
|
|
|
+ RESTfulResult fixedNeedsAdd(@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.fixedNeedsAdd(map);};
|
|
|
|
|
+
|
|
|
|
|
+ @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 = "/getfixdNeedsList")
|
|
|
|
|
+ RESTfulResult getfixdNeedsList(@RequestBody(required = false) Map<String, Object> map,
|
|
|
|
|
+ Integer apiId,
|
|
|
|
|
+ Integer pageNum,
|
|
|
|
|
+ Integer pageSize
|
|
|
|
|
+ ) {
|
|
|
|
|
+ return amsFeign.getfixdNeedsList(map == null ? new HashMap<>() : map, apiId, pageNum, pageSize);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation(value = "生产固定需求批量修改接口", notes = "生产固定需求批量修改接口")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|
|
|
|
|
+ })
|
|
|
|
|
+ @LogAround(foreignKeys = {"transRequirementId"}, foreignKeyTypes = {"生产需求"})
|
|
|
|
|
+ @PostMapping(value = "/fixedNeedsUpdate")
|
|
|
|
|
+ public Map<String, Object> fixedNeedsUpdate(@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.fixedNeedsUpdate(map);
|
|
|
|
|
+ }
|
|
|
|
|
+ @ApiOperation(value = "生产固定需求逻辑删除", notes = "生产固定需求逻辑删除")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|
|
|
|
|
+ })
|
|
|
|
|
+ @PostMapping(value = "/getfixedNeedsDelete")
|
|
|
|
|
+ @LogAround(foreignKeys = {"transRequirementId"}, foreignKeyTypes = {"生产需求"})
|
|
|
|
|
+ public Map<String, Object> getfixedNeedsDelete(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
|
|
+ return amsFeign.getfixedNeedsDelete(map);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation(value = "批量生产需求状态修改接口", notes = "生产需求状态修改接口")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|
|
|
|
|
+ })
|
|
|
|
|
+ @PostMapping(value = "/fixedNeedsChangeList")
|
|
|
|
|
+ @LogAround(foreignKeys = {"transRequirementId"}, foreignKeyTypes = {"生产需求"})
|
|
|
|
|
+ public Map<String, Object> fixedNeedsChangeList(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
|
|
+ return amsFeign.fixedNeedsChangeList(map);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation(value = "导入固定需求", notes = "导入固定需求")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "map", value = "json格式具体参数", required = true, dataType = "Map<String,Object>")
|
|
|
|
|
+ })
|
|
|
|
|
+ @PostMapping(value = "/readFixedNeedsExcel")
|
|
|
|
|
+ public Map<String, Object> readFixedNeedsExcel(MultipartFile file) throws Exception {
|
|
|
|
|
+ return amsFeign.readFixedNeedsExcel(file);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|