'提交代码'

dev-discount
199901012 4 years ago
parent e1881d4ab4
commit 20e5c2ce5b
  1. 4
      hai-bweb/src/main/java/com/bweb/controller/HighGoodsPriceReferController.java
  2. 1
      hai-service/src/main/java/com/hai/service/impl/HighApproveServiceImpl.java

@ -170,8 +170,8 @@ public class HighGoodsPriceReferController {
@RequestMapping(value="/getPriceReferList",method = RequestMethod.GET) @RequestMapping(value="/getPriceReferList",method = RequestMethod.GET)
@ResponseBody @ResponseBody
@ApiOperation(value = "查询价格列表") @ApiOperation(value = "查询价格列表")
public ResponseData getPriceReferList(@RequestParam(name = "objectType", required = true) Integer objectType, public ResponseData getPriceReferList(@RequestParam(name = "objectType", required = false) Integer objectType,
@RequestParam(name = "objectId", required = true) Long objectId, @RequestParam(name = "objectId", required = false) Long objectId,
@RequestParam(name = "priceType", required = false) Integer priceType, @RequestParam(name = "priceType", required = false) Integer priceType,
@RequestParam(name = "status", required = false) Integer status, @RequestParam(name = "status", required = false) Integer status,
@RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageNum", required = true) Integer pageNum,

@ -96,6 +96,7 @@ public class HighApproveServiceImpl implements HighApproveService {
criteria.andObjectNameLike("%" + MapUtils.getString(map, "objectName") + "%"); criteria.andObjectNameLike("%" + MapUtils.getString(map, "objectName") + "%");
} }
example.setOrderByClause("create_time desc");
return highApproveMapper.selectByExample(example); return highApproveMapper.selectByExample(example);
} }
} }

Loading…
Cancel
Save