|
@@ -286,7 +286,9 @@ public class WmspGridMaterialController extends BaseRESTfulController {
|
|
Integer apiId,
|
|
Integer apiId,
|
|
Integer warehouseId,
|
|
Integer warehouseId,
|
|
String con){
|
|
String con){
|
|
- mapVal.put("warehouseId",warehouseId);
|
|
|
|
|
|
+ if (warehouseId!=null){
|
|
|
|
+ mapVal.put("warehouseId",warehouseId);
|
|
|
|
+ }
|
|
if (con!=null&&!con.equals("undefined")){
|
|
if (con!=null&&!con.equals("undefined")){
|
|
mapVal.put("con","%"+con+"%");
|
|
mapVal.put("con","%"+con+"%");
|
|
}
|
|
}
|
|
@@ -297,6 +299,27 @@ public class WmspGridMaterialController extends BaseRESTfulController {
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 查询所有的钢材库名
|
|
|
|
+ @ApiOperation(value = "查询所有钢材的物资信息",notes = "查询所有钢材的物资信息")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "443", required = false, dataType = "BigDecimal"),
|
|
|
|
+ })
|
|
|
|
+ @PostMapping("/getSteelWarehouseList")
|
|
|
|
+ public RESTfulResult getSteelWarehouseList(@RequestBody(required = false) Map<String,Object> mapVal,
|
|
|
|
+ Integer pageNum,
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ Integer apiId,
|
|
|
|
+ String con){
|
|
|
|
+ if (con!=null&&!con.equals("undefined")){
|
|
|
|
+ mapVal.put("con","%"+con+"%");
|
|
|
|
+ }
|
|
|
|
+ List<Map<String,Object>> columnList=wmspGridMaterialService.getSteelWarehouseList(mapVal);
|
|
|
|
+ PageHelper.startPage(pageNum,pageSize);
|
|
|
|
+ List<Map<String,Object>> mapList=wmspGridMaterialService.getSteelWarehouseList(mapVal);
|
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId,columnList,mapList);
|
|
|
|
+ return success(pageList);
|
|
|
|
+ }
|
|
|
|
+
|
|
// 根据仓库id查询对应库的物资规格型号
|
|
// 根据仓库id查询对应库的物资规格型号
|
|
@ApiOperation(value = "查询所有钢材的物资信息",notes = "查询所有钢材的物资信息")
|
|
@ApiOperation(value = "查询所有钢材的物资信息",notes = "查询所有钢材的物资信息")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|