|
@@ -80,6 +80,34 @@ public class UniversalController extends BaseRESTfulController {
|
|
return success(data);
|
|
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 = "247", required = false, dataType = "BigDecimal")
|
|
|
|
+ })
|
|
|
|
+ @PostMapping("/queryAllSupplierByLike")
|
|
|
|
+ public RESTfulResult queryAllSupplierByLike(@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.queryAllSupplierByLike(mapValue);
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ //分页查询数据
|
|
|
|
+ List<Map<String, Object>> columnList = universalMapper.queryAllSupplierByLike(mapValue);
|
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, list, columnList);
|
|
|
|
+ return success(data);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
@ApiModelProperty(value = "通过物资ID查询该物资的发货单位信息")
|
|
@ApiModelProperty(value = "通过物资ID查询该物资的发货单位信息")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
@@ -178,6 +206,22 @@ public class UniversalController extends BaseRESTfulController {
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "边输边查发货单位")
|
|
|
|
+ @PostMapping("/getSupplierMesByLike")
|
|
|
|
+ public RESTfulResult getSupplierMesByLike(@RequestParam("index") String index) {
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.getSupplierMesByLike(index == null ? "" : index);
|
|
|
|
+ return success(list);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "边输边查收货单位")
|
|
|
|
+ @PostMapping("/getConsigneeByLike")
|
|
|
|
+ public RESTfulResult getConsigneeByLike(@RequestParam("index") String index) {
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.getConsigneeByLike(index == null ? "" : index);
|
|
|
|
+ return success(list);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiModelProperty(value = "通过订单ID查询订单下物资信息")
|
|
@ApiModelProperty(value = "通过订单ID查询订单下物资信息")
|
|
@PostMapping("/getOrderMaterialMesByOrderId/{orderId}")
|
|
@PostMapping("/getOrderMaterialMesByOrderId/{orderId}")
|
|
public RESTfulResult getMaterialMesByOrderId(@PathVariable("orderId") Integer orderId){
|
|
public RESTfulResult getMaterialMesByOrderId(@PathVariable("orderId") Integer orderId){
|
|
@@ -305,15 +349,7 @@ public class UniversalController extends BaseRESTfulController {
|
|
@ApiModelProperty(value = "边输边查承运商")
|
|
@ApiModelProperty(value = "边输边查承运商")
|
|
@PostMapping("/getCarrierMesByLike")
|
|
@PostMapping("/getCarrierMesByLike")
|
|
public RESTfulResult getCarrierMesByLike(@RequestParam("index") String index) {
|
|
public RESTfulResult getCarrierMesByLike(@RequestParam("index") String index) {
|
|
- if(index != null){
|
|
|
|
- if(index.length() == 0){
|
|
|
|
- index = null;
|
|
|
|
- }else {
|
|
|
|
-// index += "%";
|
|
|
|
- index = "%"+index+"%";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<Map<String, Object>> list = universalMapper.getCarrierMesByLike(index);
|
|
|
|
|
|
+ List<Map<String, Object>> list = universalMapper.getCarrierMesByLike(index == null ? "" : index);
|
|
return success(list);
|
|
return success(list);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -375,18 +411,10 @@ public class UniversalController extends BaseRESTfulController {
|
|
return universalService.sha1DigestUtils(text);
|
|
return universalService.sha1DigestUtils(text);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiModelProperty(value = "边输边查装货卸货点")
|
|
|
|
|
|
+ @ApiModelProperty(value = "查装货卸货点")
|
|
@PostMapping("/selectUnloadingPoint")
|
|
@PostMapping("/selectUnloadingPoint")
|
|
- public RESTfulResult selectUnloadingPoint(@RequestParam("index") String index) {
|
|
|
|
- if(index != null){
|
|
|
|
- if(index.length() == 0){
|
|
|
|
- index = null;
|
|
|
|
- }else {
|
|
|
|
- index += "%";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<Map<String, Object>> list = universalMapper.selectUnloadingPoint(index);
|
|
|
|
- return success(list);
|
|
|
|
|
|
+ public List<Map<String, Object>> selectUnloadingPoint() {
|
|
|
|
+ return universalMapper.selectUnloadingPoint();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiModelProperty(value = "模糊查询承运商")
|
|
@ApiModelProperty(value = "模糊查询承运商")
|
|
@@ -420,6 +448,12 @@ public class UniversalController extends BaseRESTfulController {
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "所有门岗下拉框")
|
|
|
|
+ @GetMapping("/getAllGatepost")
|
|
|
|
+ public List<Map<String,Object>> getAllGatepost(){
|
|
|
|
+ return universalMapper.getAllGatepost();
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiModelProperty(value = "模糊查询收货单位")
|
|
@ApiModelProperty(value = "模糊查询收货单位")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
@@ -451,5 +485,4 @@ public class UniversalController extends BaseRESTfulController {
|
|
return success(data);
|
|
return success(data);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
}
|
|
}
|