|
@@ -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"),
|