|
@@ -132,7 +132,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
|
|
|
|
//删除
|
|
//删除
|
|
@PostMapping(value = "/deleteByResultId/{resultId}", produces = "application/json;charset=UTF-8")
|
|
@PostMapping(value = "/deleteByResultId/{resultId}", produces = "application/json;charset=UTF-8")
|
|
- public RESTfulResult deleteByResultId(@PathVariable Integer resultId){
|
|
|
|
|
|
+ public RESTfulResult deleteByResultId(@PathVariable String resultId){
|
|
WmspRestackMakeResult wmspRestackMakeResult=new WmspRestackMakeResult();
|
|
WmspRestackMakeResult wmspRestackMakeResult=new WmspRestackMakeResult();
|
|
wmspRestackMakeResult.setResultId(new BigDecimal(resultId));
|
|
wmspRestackMakeResult.setResultId(new BigDecimal(resultId));
|
|
wmspRestackMakeResult.setDeleted(new BigDecimal(1));
|
|
wmspRestackMakeResult.setDeleted(new BigDecimal(1));
|
|
@@ -143,7 +143,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
@ApiOperation(value="下发", notes="根据url的id下发")
|
|
@ApiOperation(value="下发", notes="根据url的id下发")
|
|
@ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
|
|
@ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
|
|
@PostMapping(value = "/dispatchDistrubtionStatus/{resultId}")//BigDecimal
|
|
@PostMapping(value = "/dispatchDistrubtionStatus/{resultId}")//BigDecimal
|
|
- public RESTfulResult dispatchDistrubtionStatus(@PathVariable Integer resultId){
|
|
|
|
|
|
+ public RESTfulResult dispatchDistrubtionStatus(@PathVariable String resultId){
|
|
WmspRestackMakeResult wmspRestackMakeResult=new WmspRestackMakeResult();
|
|
WmspRestackMakeResult wmspRestackMakeResult=new WmspRestackMakeResult();
|
|
wmspRestackMakeResult.setResultId(new BigDecimal(resultId));
|
|
wmspRestackMakeResult.setResultId(new BigDecimal(resultId));
|
|
wmspRestackMakeResult.setDistributionstatus(new BigDecimal(1));
|
|
wmspRestackMakeResult.setDistributionstatus(new BigDecimal(1));
|
|
@@ -170,7 +170,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
List<Map<String,Object>> code=wmspRestackMakeResultService.selectWarehouse();
|
|
List<Map<String,Object>> code=wmspRestackMakeResultService.selectWarehouse();
|
|
return success(code);
|
|
return success(code);
|
|
}
|
|
}
|
|
- @ApiOperation(value="展示倒垛单", notes="分页查询")
|
|
|
|
|
|
+ @ApiOperation(value="展示未下发倒垛单", notes="分页查询")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
@ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
@ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
@@ -195,6 +195,45 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
List<Map<String, Object>> columnList = wmspRestackMakeResultService.selectRestackForPc(mapVal);
|
|
List<Map<String, Object>> columnList = wmspRestackMakeResultService.selectRestackForPc(mapVal);
|
|
|
|
|
|
PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
+
|
|
|
|
+ return success(data);
|
|
|
|
+ }
|
|
|
|
+ @ApiOperation(value="展示已下发倒垛单", notes="分页查询")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "368", required = false, dataType = "BigDecimal"),
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ @PostMapping(value = "/selectRestackList2")
|
|
|
|
+ public RESTfulResult selectRestackList2(@RequestBody(required = false) Map<String,Object> mapVal,
|
|
|
|
+ Integer pageNum,
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ Integer apiId,
|
|
|
|
+ Integer DistrubtionStatus
|
|
|
|
+ ) {
|
|
|
|
+ if (mapVal == null) {
|
|
|
|
+ mapVal = new HashMap<>();
|
|
|
|
+ }
|
|
|
|
+ mapVal.put("DistrubtionStatus", DistrubtionStatus);
|
|
|
|
+ //不分页筛选数据
|
|
|
|
+ List<Map<String, Object>> list = wmspRestackMakeResultService.selectRestackForPc(mapVal);
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ //分页查询数据
|
|
|
|
+ List<Map<String, Object>> columnList = wmspRestackMakeResultService.selectRestackForPc(mapVal);
|
|
|
|
+ // 将获取到的columnList中的完成状态用中文表示
|
|
|
|
+ for (Map<String, Object> map1: list){
|
|
|
|
+ BigDecimal resultStatus =(BigDecimal)map1.get("resultStatus");
|
|
|
|
+ if (resultStatus.equals(0)){
|
|
|
|
+ map1.put("resultStatus","未完成");
|
|
|
|
+ }
|
|
|
|
+ if (resultStatus.equals(1)){
|
|
|
|
+ map1.put("resultStatus","已完成");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
+
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
//根据实绩查找倒垛信息
|
|
//根据实绩查找倒垛信息
|
|
@@ -206,7 +245,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
Integer apiId
|
|
Integer apiId
|
|
|
|
|
|
){
|
|
){
|
|
- Integer resultId =(Integer) mapVal.get("resultId");
|
|
|
|
|
|
+ String resultId =(String) mapVal.get("resultId");
|
|
List<Map<String, Object>> libaryInBoundList = wmspRestackMakeResultService.selectRestackInfoByResultId(resultId);
|
|
List<Map<String, Object>> libaryInBoundList = wmspRestackMakeResultService.selectRestackInfoByResultId(resultId);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
List<Map<String, Object>> columnList = wmspRestackMakeResultService.selectRestackInfoByResultId(resultId);
|
|
List<Map<String, Object>> columnList = wmspRestackMakeResultService.selectRestackInfoByResultId(resultId);
|
|
@@ -231,7 +270,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
@ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
|
|
@ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
|
|
@ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
|
|
@ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
|
|
@PostMapping("/selectAfterWarehouseByResultId/{resultId}")
|
|
@PostMapping("/selectAfterWarehouseByResultId/{resultId}")
|
|
- public RESTfulResult selectAfterWarehouseByResultId(@PathVariable("resultId") Integer resultId){
|
|
|
|
|
|
+ public RESTfulResult selectAfterWarehouseByResultId(@PathVariable("resultId") String resultId){
|
|
List<Map<String,Object>> RestackResult = wmspRestackMakeResultService.selectAfterWarehouseByResultId(resultId);
|
|
List<Map<String,Object>> RestackResult = wmspRestackMakeResultService.selectAfterWarehouseByResultId(resultId);
|
|
return success(RestackResult);
|
|
return success(RestackResult);
|
|
}
|
|
}
|
|
@@ -239,7 +278,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
@ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
|
|
@ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
|
|
@ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
|
|
@ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
|
|
@PostMapping("/selectAfterstackingByResultId/{resultId}")
|
|
@PostMapping("/selectAfterstackingByResultId/{resultId}")
|
|
- public RESTfulResult selectAfterstackingByResultId(@PathVariable("resultId") Integer resultId){
|
|
|
|
|
|
+ public RESTfulResult selectAfterstackingByResultId(@PathVariable("resultId") String resultId){
|
|
List<Map<String,Object>> RestackResult = wmspRestackMakeResultService.selectAfterstackingByResultId(resultId);
|
|
List<Map<String,Object>> RestackResult = wmspRestackMakeResultService.selectAfterstackingByResultId(resultId);
|
|
return success(RestackResult);
|
|
return success(RestackResult);
|
|
}
|
|
}
|
|
@@ -253,7 +292,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
@PostMapping("/selectMaterialInfoByResultId")
|
|
@PostMapping("/selectMaterialInfoByResultId")
|
|
public RESTfulResult selectMaterialInfoByResultId(@RequestBody(required = false) Map<String,Object> map
|
|
public RESTfulResult selectMaterialInfoByResultId(@RequestBody(required = false) Map<String,Object> map
|
|
){
|
|
){
|
|
- Integer resultId= (Integer) map.get("resultId");
|
|
|
|
|
|
+ String resultId= (String) map.get("resultId");
|
|
List<Map<String,Object>> list=wmspRestackMakeResultService.selectMaterialInfoByResultId(resultId);
|
|
List<Map<String,Object>> list=wmspRestackMakeResultService.selectMaterialInfoByResultId(resultId);
|
|
return success(list);
|
|
return success(list);
|
|
}
|
|
}
|
|
@@ -262,7 +301,7 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
public RESTfulResult selectRestackByWarehouseId(@RequestBody(required = false) Map<String,Object> map
|
|
public RESTfulResult selectRestackByWarehouseId(@RequestBody(required = false) Map<String,Object> map
|
|
){
|
|
){
|
|
Integer warehouseid= (Integer) map.get("warehouseid");
|
|
Integer warehouseid= (Integer) map.get("warehouseid");
|
|
- Integer DistrubtionStatus=(Integer)map.get("DistrubtionStatus");
|
|
|
|
|
|
+ String DistrubtionStatus=(String)map.get("DistrubtionStatus");
|
|
Map map1=new HashMap();
|
|
Map map1=new HashMap();
|
|
map1.put("warehouseid",warehouseid);
|
|
map1.put("warehouseid",warehouseid);
|
|
map1.put("DistrubtionStatus",DistrubtionStatus);
|
|
map1.put("DistrubtionStatus",DistrubtionStatus);
|
|
@@ -274,18 +313,22 @@ public class WmspRestackMakeResultController extends BaseRESTfulController {
|
|
@ApiImplicitParam(name = "keeperId" ,dataType = "BigDecimal",value = "库管员ID"),
|
|
@ApiImplicitParam(name = "keeperId" ,dataType = "BigDecimal",value = "库管员ID"),
|
|
@ApiImplicitParam(name = "beforeLevel" ,dataType = "String ",value = "倒垛层"),
|
|
@ApiImplicitParam(name = "beforeLevel" ,dataType = "String ",value = "倒垛层"),
|
|
@ApiImplicitParam(name = "afterStackingId" ,dataType = "BigDecimal",value = "倒垛后垛位id"),
|
|
@ApiImplicitParam(name = "afterStackingId" ,dataType = "BigDecimal",value = "倒垛后垛位id"),
|
|
- @ApiImplicitParam(name = "afterWarehouseId" ,dataType = "BigDecimal",value = "倒垛后仓库id"),
|
|
|
|
|
|
+ @ApiImplicitParam(name = "afterWarehouseId" ,dataType = "BigDecimal",value = "仓库id"),
|
|
@ApiImplicitParam(name = "afterBeforeStackingId" ,dataType = "BigDecimal",value = "倒垛前的垛位"),
|
|
@ApiImplicitParam(name = "afterBeforeStackingId" ,dataType = "BigDecimal",value = "倒垛前的垛位"),
|
|
@ApiImplicitParam(name = "resultRemark" ,dataType = "BigDecimal",value = "倒垛单备注"),
|
|
@ApiImplicitParam(name = "resultRemark" ,dataType = "BigDecimal",value = "倒垛单备注"),
|
|
- @ApiImplicitParam(name = "maps" ,dataType = "List<Map<String,Object>>",value = "物质类型集合")
|
|
|
|
|
|
+ @ApiImplicitParam(name = "maps" ,dataType = "List<Map<String,Object>>",value = "物质型号集合")
|
|
})
|
|
})
|
|
- public RESTfulResult createRestackMakeResult(@RequestParam("keeperId") BigDecimal keeperId,@RequestParam("resultStackNumber")String beforeLevel,
|
|
|
|
- @RequestParam(name = "afterStackingId",defaultValue = "20")BigDecimal afterStackingId,@RequestParam("afterWarehouseId")BigDecimal afterWarehouseId,
|
|
|
|
- @RequestParam("afterBeforeStackingId") BigDecimal afterBeforeStackingId,@RequestParam("resultRemark")String resultRemark,
|
|
|
|
- @RequestBody(required = false) List<Map<String,Object>> mps){
|
|
|
|
|
|
+ @PostMapping("/createRestackMakeResult")
|
|
|
|
+ public RESTfulResult createRestackMakeResult(@RequestParam("keeperId") BigDecimal keeperId,
|
|
|
|
+ @RequestParam("beforeLevel")BigDecimal beforeLevel,
|
|
|
|
+ @RequestParam(name = "afterStackingId",defaultValue = "20")BigDecimal afterStackingId,
|
|
|
|
+ @RequestParam("afterWarehouseId")BigDecimal afterWarehouseId,
|
|
|
|
+ @RequestParam("afterBeforeStackingId") BigDecimal afterBeforeStackingId,
|
|
|
|
+ @RequestParam("resultRemark")String resultRemark,
|
|
|
|
+ @RequestBody(required = false) List<Map<String,Object>> mps){
|
|
//创建倒垛单和倒垛单类型
|
|
//创建倒垛单和倒垛单类型
|
|
WmspRestackMakeResult wmspRestackMakeResult= wmspRestackMakeResultService.createRestackMakeResult(keeperId,beforeLevel,afterStackingId,afterWarehouseId,afterBeforeStackingId,resultRemark,mps);
|
|
WmspRestackMakeResult wmspRestackMakeResult= wmspRestackMakeResultService.createRestackMakeResult(keeperId,beforeLevel,afterStackingId,afterWarehouseId,afterBeforeStackingId,resultRemark,mps);
|
|
- return success();
|
|
|
|
|
|
+ return success(wmspRestackMakeResult);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|