|
|
@@ -12,6 +12,9 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.text.ParseException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
@@ -63,5 +66,45 @@ public class WMSController extends BaseRESTfulController {
|
|
|
Integer pageSize) {
|
|
|
return wmsFeign.selectDlivDirNo(parmas == null ? new HashMap<>() : parmas, apiId, pageNum, pageSize);
|
|
|
}
|
|
|
+
|
|
|
+ //====================> 实时库存
|
|
|
+ @ApiOperation(value = "实时库存")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "map", 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 = "/wmsgridmaterialsList")
|
|
|
+ public Map<String, Object> getAmsSalaryContracList(@RequestBody(required = false) Map<String, Object> map, Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize) {
|
|
|
+ return wmsFeign.list(map == null ? new HashMap<>() : map, apiId, pageNum, pageSize);
|
|
|
+ }
|
|
|
+ @ApiOperation(value = "新增实时库存")
|
|
|
+ @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map<String, Object>")
|
|
|
+ @LogAround(foreignKeys = {"gridMaterialId"}, foreignKeyTypes = {"实时库存"})
|
|
|
+ @PostMapping("/wmsgridmaterialsinsert")
|
|
|
+ public Map<String, Object> insertAmsSalaryContrac(@RequestBody(required = false) Map<String, Object> map) throws ParseException {
|
|
|
+ map.put("insertUsername", map.get("userName").toString());
|
|
|
+ return wmsFeign.insert(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "修改实时库存")
|
|
|
+ @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map<String, Object>")
|
|
|
+ @PutMapping(value = "/wmsgridmaterialsUpdate/{id}")
|
|
|
+ @LogAround(foreignKeys = {"gridMaterialId"}, foreignKeyTypes = {"实时库存"})
|
|
|
+ public Map<String, Object> updateAmsSalaryContrac(@PathVariable BigDecimal id, @RequestBody(required = false) Map<String, Object> map) {
|
|
|
+ map.put("updateUsername", map.get("userName").toString());
|
|
|
+ return wmsFeign.update(id, map);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "实时库存逻辑删除")
|
|
|
+ @ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map<String, Object>")
|
|
|
+ @PutMapping(value = "/wmsgridmaterialsDelete")
|
|
|
+ @LogAround(foreignKeys = {"gridMaterialId"}, foreignKeyTypes = {"实时库存"})
|
|
|
+ public Map<String, Object> logicdeleteAmsSaalryContrac(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
+ return wmsFeign.delete(map);
|
|
|
+ }
|
|
|
}
|
|
|
|