From 20e5c2ce5b08d03b4a60c0932af7a5cb94140daa Mon Sep 17 00:00:00 2001 From: 199901012 Date: Wed, 24 Mar 2021 17:18:51 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bweb/controller/HighGoodsPriceReferController.java | 4 ++-- .../java/com/hai/service/impl/HighApproveServiceImpl.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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); } }