|
@@ -50,69 +50,67 @@ public class UniversalController extends BaseRESTfulController {
|
|
return success(tiHuoDan);
|
|
return success(tiHuoDan);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiModelProperty(value = "模糊查询物资")
|
|
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "模糊查询发货单位")
|
|
@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"),
|
|
- @ApiImplicitParam(name = "apiId", value = "244", required = false, dataType = "BigDecimal")
|
|
|
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "247", required = false, dataType = "BigDecimal")
|
|
})
|
|
})
|
|
- @PostMapping("/queryMaterialByLike")
|
|
|
|
- public RESTfulResult queryMaterialByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- Integer apiId,
|
|
|
|
- String index,
|
|
|
|
- String startNum) {
|
|
|
|
-
|
|
|
|
|
|
+ @PostMapping("/querySupplierByLike")
|
|
|
|
+ public RESTfulResult querySupplierByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
|
+ Integer pageNum,
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ Integer apiId,
|
|
|
|
+ String index) {
|
|
if(mapValue == null) {
|
|
if(mapValue == null) {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
- if(startNum != null && !startNum.equals("undefined")){
|
|
|
|
- mapValue.put("startNum", startNum + "%");
|
|
|
|
- }
|
|
|
|
- if(index != null && !index.equals("undefined")){
|
|
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
|
|
|
+ if(index != null){
|
|
|
|
+ mapValue.put("index","%" + index + "%");
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.queryMaterialByLike(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.querySupplierByLike(mapValue);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
- List<Map<String, Object>> columnList = universalMapper.queryMaterialByLike(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> columnList = universalMapper.querySupplierByLike(mapValue);
|
|
PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiModelProperty(value = "模糊查询发货单位")
|
|
|
|
|
|
+ @ApiModelProperty(value = "通过物资ID查询该物资的发货单位信息")
|
|
@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"),
|
|
@ApiImplicitParam(name = "apiId", value = "247", required = false, dataType = "BigDecimal")
|
|
@ApiImplicitParam(name = "apiId", value = "247", required = false, dataType = "BigDecimal")
|
|
})
|
|
})
|
|
- @PostMapping("/querySupplierByLike")
|
|
|
|
- public RESTfulResult querySupplierByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
|
|
|
+ @PostMapping("/getSupplierMesByMaterialId")
|
|
|
|
+ public RESTfulResult getSupplierMesByMaterialId(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
- String index) {
|
|
|
|
- if(mapValue == null) {
|
|
|
|
|
|
+ String index, String materialId) {
|
|
|
|
+ if(mapValue == null)
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ if(!"null".equals(materialId))
|
|
|
|
+ mapValue.put("materialId",materialId);
|
|
|
|
+
|
|
if(index != null){
|
|
if(index != null){
|
|
- mapValue.put("index", index + "%");
|
|
|
|
- }else {
|
|
|
|
- mapValue.put("index", "aaaaa%");
|
|
|
|
|
|
+ mapValue.put("index","%" + index + "%");
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.querySupplierByLike(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.getSupplierMesByMaterialId(mapValue);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
- List<Map<String, Object>> columnList = universalMapper.querySupplierByLike(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> columnList = universalMapper.getSupplierMesByMaterialId(mapValue);
|
|
PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@ApiOperation(value="查询所有空闲的运力信息")
|
|
@ApiOperation(value="查询所有空闲的运力信息")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
@ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
- @ApiImplicitParam(name = "apiId(248)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
|
|
|
+ @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
|
|
@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"),
|
|
})
|
|
})
|
|
@@ -128,8 +126,6 @@ public class UniversalController extends BaseRESTfulController {
|
|
}
|
|
}
|
|
if(index != null){
|
|
if(index != null){
|
|
mapValue.put("index", index + "%");
|
|
mapValue.put("index", index + "%");
|
|
- }else {
|
|
|
|
- mapValue.put("index", "aaaaaa%");
|
|
|
|
}
|
|
}
|
|
//不分页筛选数据
|
|
//不分页筛选数据
|
|
List<Map<String, Object>> allCapacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
List<Map<String, Object>> allCapacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
@@ -169,4 +165,94 @@ public class UniversalController extends BaseRESTfulController {
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allCapacity,capacity);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allCapacity,capacity);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "模糊查询物资")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "244", required = false, dataType = "BigDecimal")
|
|
|
|
+ })
|
|
|
|
+ @PostMapping("/queryAPOMaterialByLike")
|
|
|
|
+ public RESTfulResult queryMaterialByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
|
+ Integer pageNum,
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ Integer apiId,
|
|
|
|
+ String index) {
|
|
|
|
+
|
|
|
|
+ if(mapValue == null) {
|
|
|
|
+ mapValue = new HashMap<>();
|
|
|
|
+ }
|
|
|
|
+ if(index != null){
|
|
|
|
+ mapValue.put("index", "%" + index + "%");
|
|
|
|
+ }
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.queryAPOMaterialByLike(mapValue);
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ //分页查询数据
|
|
|
|
+ List<Map<String, Object>> columnList = universalMapper.queryAPOMaterialByLike(mapValue);
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
+ return success(data);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "模糊查询卸货点")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "374", required = false, dataType = "BigDecimal")
|
|
|
|
+ })
|
|
|
|
+ @PostMapping("/getUnloadingMesByLike")
|
|
|
|
+ public RESTfulResult getUnloadingMesByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
|
+ Integer pageNum,
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ Integer apiId,
|
|
|
|
+ Integer type,
|
|
|
|
+ String index) {
|
|
|
|
+
|
|
|
|
+ if(mapValue == null) {
|
|
|
|
+ mapValue = new HashMap<>();
|
|
|
|
+ }
|
|
|
|
+ if(type != null){
|
|
|
|
+ mapValue.put("type", type);
|
|
|
|
+ }
|
|
|
|
+ if(index != null){
|
|
|
|
+ mapValue.put("index", "%" + index + "%");
|
|
|
|
+ }
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.getUnloadingMesByLike(mapValue);
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ //分页查询数据
|
|
|
|
+ List<Map<String, Object>> columnList = universalMapper.getUnloadingMesByLike(mapValue);
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
+ return success(data);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "模糊查询物资")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "244", required = false, dataType = "BigDecimal")
|
|
|
|
+ })
|
|
|
|
+ @PostMapping("/queryMaterialByLike")
|
|
|
|
+ public RESTfulResult queryMaterialByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
|
+ Integer pageNum,
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ Integer apiId,
|
|
|
|
+ String index,
|
|
|
|
+ String startNum) {
|
|
|
|
+
|
|
|
|
+ if(mapValue == null) {
|
|
|
|
+ mapValue = new HashMap<>();
|
|
|
|
+ }
|
|
|
|
+ if(startNum != null){
|
|
|
|
+ mapValue.put("startNum", startNum + "%");
|
|
|
|
+ }
|
|
|
|
+ if(index != null){
|
|
|
|
+ mapValue.put("index", "%" + index + "%");
|
|
|
|
+ }
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.queryMaterialByLike(mapValue);
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ //分页查询数据
|
|
|
|
+ List<Map<String, Object>> columnList = universalMapper.queryMaterialByLike(mapValue);
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
+ return success(data);
|
|
|
|
+ }
|
|
}
|
|
}
|