|
@@ -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,16 +128,15 @@ 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);
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation(value="查询所有空闲的运力信息")
|
|
|
+ @ApiOperation(value="查询所有运力信息")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
@ApiImplicitParam(name = "apiId(248)", value = "动态表头", required = false, dataType = "Integer"),
|
|
@@ -152,28 +149,30 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
String carrierSsoId,
|
|
|
- String index
|
|
|
+ String index,
|
|
|
+ String con
|
|
|
){
|
|
|
if(mapValue == null){
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
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")) {
|
|
|
carrierSsoId = null;
|
|
|
}
|
|
|
- BigDecimal carrierId = null;
|
|
|
if (carrierSsoId != null) {
|
|
|
- carrierId = universalMapper.getCarrierIdBySSO(carrierSsoId);
|
|
|
+ BigDecimal carrierId = universalMapper.getCarrierIdBySSO(carrierSsoId);
|
|
|
+ mapValue.put("carrierId",carrierId);
|
|
|
}
|
|
|
- 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);
|
|
|
}
|
|
|
|
|
@@ -199,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);
|
|
|
}
|
|
|
|
|
@@ -237,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,
|
|
@@ -246,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);
|
|
|
}
|
|
|
|
|
@@ -279,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);
|
|
|
}
|
|
|
|
|
@@ -300,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);
|
|
|
}
|
|
|
|
|
@@ -337,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);
|
|
|
}
|
|
|
|
|
@@ -370,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);
|
|
|
}
|
|
|
|
|
@@ -396,20 +385,18 @@ 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);
|
|
|
}
|
|
|
|
|
|
@ApiModelProperty(value = "返回sha1加密字符串")
|
|
|
- @PostMapping("/sha1DigestUtils")
|
|
|
- public String sha1DigestUtils(String text)
|
|
|
- {
|
|
|
+ @RequestMapping(value = "/sha1DigestUtils", method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
+ public String sha1DigestUtils(String text){
|
|
|
return universalService.sha1DigestUtils(text);
|
|
|
}
|
|
|
|
|
@@ -442,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);
|
|
|
}
|
|
|
|
|
@@ -496,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);
|
|
|
}
|
|
|
|
|
@@ -511,5 +496,15 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
return saleStatus;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("查询所有的汽车衡")
|
|
|
+ @GetMapping("/getAllCalculateMes")
|
|
|
+ public List<Map<String, Object>> getAllCalculateMes() {
|
|
|
+ return universalMapper.getAllCalculateMes();
|
|
|
+ }
|
|
|
|
|
|
+ @ApiOperation("查询所有的焦炭子类")
|
|
|
+ @GetMapping("/getAllMaterialCoke")
|
|
|
+ public List<Map<String, Object>> getAllMaterialCoke() {
|
|
|
+ return universalMapper.getAllMaterialCoke();
|
|
|
+ }
|
|
|
}
|