|
@@ -73,11 +73,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
if(index != null){
|
|
|
mapValue.put("index","%" + index + "%");
|
|
|
}
|
|
|
- List<Map<String, Object>> list = universalMapper.querySupplierByLike(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.querySupplierByLike(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId,columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -99,11 +98,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
if(index != null){
|
|
|
mapValue.put("index","%" + index + "%");
|
|
|
}
|
|
|
- List<Map<String, Object>> list = universalMapper.queryAllSupplierByLike(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.queryAllSupplierByLike(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -130,11 +128,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
if(index != null){
|
|
|
mapValue.put("index","%" + index + "%");
|
|
|
}
|
|
|
- List<Map<String, Object>> list = universalMapper.getSupplierMesByMaterialId(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.getSupplierMesByMaterialId(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -172,11 +169,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue.put("carrierId",carrierId);
|
|
|
}
|
|
|
//不分页筛选数据
|
|
|
- List<Map<String, Object>> allCapacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
|
//分页数据
|
|
|
List<Map<String, Object>> capacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
|
- PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allCapacity,capacity);
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId, capacity);
|
|
|
return success(pageList);
|
|
|
}
|
|
|
|
|
@@ -202,11 +198,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue.put("orderId", orderId);
|
|
|
}
|
|
|
//不分页筛选数据
|
|
|
- List<Map<String, Object>> allCapacity = universalMapper.getMaterialMesByOrderId(mapValue);
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
|
//分页数据
|
|
|
List<Map<String, Object>> capacity = universalMapper.getMaterialMesByOrderId(mapValue);
|
|
|
- PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allCapacity,capacity);
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId, capacity);
|
|
|
return success(pageList);
|
|
|
}
|
|
|
|
|
@@ -240,7 +235,7 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
@ApiImplicitParam(name = "apiId", value = "244", required = false, dataType = "BigDecimal")
|
|
|
})
|
|
|
@PostMapping("/queryAPOMaterialByLike")
|
|
|
- public RESTfulResult queryMaterialByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
+ public RESTfulResult queryAPOMaterialByLike(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
@@ -249,14 +244,13 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
if(mapValue == null) {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
- if(index != null){
|
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
+ if(index != null && !"".equals(index) &&!"null".equals(index)){
|
|
|
+ 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);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -282,13 +276,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue.put("type", type);
|
|
|
}
|
|
|
if(index != null){
|
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
+ 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);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -303,23 +296,18 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
|
- String index,
|
|
|
- String startNum) {
|
|
|
+ String index) {
|
|
|
|
|
|
if(mapValue == null) {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
- if(startNum != null){
|
|
|
- mapValue.put("startNum", startNum + "%");
|
|
|
- }
|
|
|
if(index != null){
|
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
+ 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);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -340,13 +328,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
if(index != null){
|
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
+ mapValue.put("index", index);
|
|
|
}
|
|
|
- List<Map<String, Object>> list = universalMapper.getBatchAndOrderMes(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.getBatchAndOrderMes(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -373,13 +360,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
if(index != null){
|
|
|
- mapValue.put("index","%" + index + "%");
|
|
|
+ mapValue.put("index", index);
|
|
|
}
|
|
|
- List<Map<String, Object>> list = universalMapper.queryConsigneeByLike(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.queryConsigneeByLike(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -399,13 +385,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
if(index != null){
|
|
|
- mapValue.put("index","%" + index + "%");
|
|
|
+ mapValue.put("index", index);
|
|
|
}
|
|
|
- List<Map<String, Object>> list = universalMapper.selectAllMaterialName(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.selectAllMaterialName(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -444,11 +429,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
mapValue.put("index",index);
|
|
|
- List<Map<String, Object>> list = universalMapper.getCarrierListByLike(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.getCarrierListByLike(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -498,11 +482,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
mapValue.put("index",index);
|
|
|
- List<Map<String, Object>> list = universalMapper.getConsigneeListByLike(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = universalMapper.getConsigneeListByLike(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|