|
@@ -73,11 +73,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
if(index != null){
|
|
if(index != null){
|
|
mapValue.put("index","%" + index + "%");
|
|
mapValue.put("index","%" + index + "%");
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.querySupplierByLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.querySupplierByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.querySupplierByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId,columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -99,11 +98,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
if(index != null){
|
|
if(index != null){
|
|
mapValue.put("index","%" + index + "%");
|
|
mapValue.put("index","%" + index + "%");
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.queryAllSupplierByLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.queryAllSupplierByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.queryAllSupplierByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -130,11 +128,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
if(index != null){
|
|
if(index != null){
|
|
mapValue.put("index","%" + index + "%");
|
|
mapValue.put("index","%" + index + "%");
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.getSupplierMesByMaterialId(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.getSupplierMesByMaterialId(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.getSupplierMesByMaterialId(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -152,7 +149,8 @@ public class UniversalController extends BaseRESTfulController {
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
String carrierSsoId,
|
|
String carrierSsoId,
|
|
- String index
|
|
|
|
|
|
+ String index,
|
|
|
|
+ String con
|
|
){
|
|
){
|
|
if(mapValue == null){
|
|
if(mapValue == null){
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
@@ -160,6 +158,9 @@ public class UniversalController extends BaseRESTfulController {
|
|
if(index != null){
|
|
if(index != null){
|
|
mapValue.put("index", index);
|
|
mapValue.put("index", index);
|
|
}
|
|
}
|
|
|
|
+ if (con != null&&con.equals("undefined")){
|
|
|
|
+ mapValue.put("con","%"+con+"%");
|
|
|
|
+ }
|
|
if (carrierSsoId != null && carrierSsoId.equals("undefined")) {
|
|
if (carrierSsoId != null && carrierSsoId.equals("undefined")) {
|
|
carrierSsoId = null;
|
|
carrierSsoId = null;
|
|
}
|
|
}
|
|
@@ -168,11 +169,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue.put("carrierId",carrierId);
|
|
mapValue.put("carrierId",carrierId);
|
|
}
|
|
}
|
|
//不分页筛选数据
|
|
//不分页筛选数据
|
|
- List<Map<String, Object>> allCapacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
List<Map<String, Object>> capacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
List<Map<String, Object>> capacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
- PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allCapacity,capacity);
|
|
|
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId, capacity);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -198,11 +198,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue.put("orderId", orderId);
|
|
mapValue.put("orderId", orderId);
|
|
}
|
|
}
|
|
//不分页筛选数据
|
|
//不分页筛选数据
|
|
- List<Map<String, Object>> allCapacity = universalMapper.getMaterialMesByOrderId(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
List<Map<String, Object>> capacity = universalMapper.getMaterialMesByOrderId(mapValue);
|
|
List<Map<String, Object>> capacity = universalMapper.getMaterialMesByOrderId(mapValue);
|
|
- PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allCapacity,capacity);
|
|
|
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId, capacity);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -236,7 +235,7 @@ public class UniversalController extends BaseRESTfulController {
|
|
@ApiImplicitParam(name = "apiId", value = "244", required = false, dataType = "BigDecimal")
|
|
@ApiImplicitParam(name = "apiId", value = "244", required = false, dataType = "BigDecimal")
|
|
})
|
|
})
|
|
@PostMapping("/queryAPOMaterialByLike")
|
|
@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 pageNum,
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
@@ -245,14 +244,13 @@ public class UniversalController extends BaseRESTfulController {
|
|
if(mapValue == null) {
|
|
if(mapValue == null) {
|
|
mapValue = new HashMap<>();
|
|
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);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.queryAPOMaterialByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.queryAPOMaterialByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -278,13 +276,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue.put("type", type);
|
|
mapValue.put("type", type);
|
|
}
|
|
}
|
|
if(index != null){
|
|
if(index != null){
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
|
|
|
+ mapValue.put("index", index);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.getUnloadingMesByLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.getUnloadingMesByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.getUnloadingMesByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -299,23 +296,18 @@ public class UniversalController extends BaseRESTfulController {
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
- String index,
|
|
|
|
- String startNum) {
|
|
|
|
|
|
+ String index) {
|
|
|
|
|
|
if(mapValue == null) {
|
|
if(mapValue == null) {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
- if(startNum != null){
|
|
|
|
- mapValue.put("startNum", startNum + "%");
|
|
|
|
- }
|
|
|
|
if(index != null){
|
|
if(index != null){
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
|
|
|
+ mapValue.put("index", index);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.queryMaterialByLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.queryMaterialByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.queryMaterialByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -336,13 +328,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
if(index != null){
|
|
if(index != null){
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
|
|
|
+ mapValue.put("index", index);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.getBatchAndOrderMes(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.getBatchAndOrderMes(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.getBatchAndOrderMes(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -369,13 +360,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
if(index != null){
|
|
if(index != null){
|
|
- mapValue.put("index","%" + index + "%");
|
|
|
|
|
|
+ mapValue.put("index", index);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.queryConsigneeByLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.queryConsigneeByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.queryConsigneeByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -395,13 +385,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
if(index != null){
|
|
if(index != null){
|
|
- mapValue.put("index","%" + index + "%");
|
|
|
|
|
|
+ mapValue.put("index", index);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> list = universalMapper.selectAllMaterialName(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.selectAllMaterialName(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.selectAllMaterialName(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -440,11 +429,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
mapValue.put("index",index);
|
|
mapValue.put("index",index);
|
|
- List<Map<String, Object>> list = universalMapper.getCarrierListByLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.getCarrierListByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.getCarrierListByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -494,11 +482,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
mapValue.put("index",index);
|
|
mapValue.put("index",index);
|
|
- List<Map<String, Object>> list = universalMapper.getConsigneeListByLike(mapValue);
|
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.getConsigneeListByLike(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.getConsigneeListByLike(mapValue);
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, columnList);
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|