diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighGoodsPriceReferController.java b/hai-bweb/src/main/java/com/bweb/controller/HighGoodsPriceReferController.java index 3447bd4e..352a6994 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighGoodsPriceReferController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighGoodsPriceReferController.java @@ -170,8 +170,8 @@ public class HighGoodsPriceReferController { @RequestMapping(value="/getPriceReferList",method = RequestMethod.GET) @ResponseBody @ApiOperation(value = "查询价格列表") - public ResponseData getPriceReferList(@RequestParam(name = "objectType", required = true) Integer objectType, - @RequestParam(name = "objectId", required = true) Long objectId, + public ResponseData getPriceReferList(@RequestParam(name = "objectType", required = false) Integer objectType, + @RequestParam(name = "objectId", required = false) Long objectId, @RequestParam(name = "priceType", required = false) Integer priceType, @RequestParam(name = "status", required = false) Integer status, @RequestParam(name = "pageNum", required = true) Integer pageNum, diff --git a/hai-service/src/main/java/com/hai/service/impl/HighApproveServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighApproveServiceImpl.java index 70183e1a..2c2a8386 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighApproveServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighApproveServiceImpl.java @@ -96,6 +96,7 @@ public class HighApproveServiceImpl implements HighApproveService { criteria.andObjectNameLike("%" + MapUtils.getString(map, "objectName") + "%"); } + example.setOrderByClause("create_time desc"); return highApproveMapper.selectByExample(example); } }