提交代码

dev
胡锐 1 month ago
parent c7f3ac4b5a
commit f6ddb1410b
  1. 2
      bweb/src/main/java/com/bweb/controller/BsMerchantController.java
  2. 4
      service/src/main/java/com/hfkj/service/merchant/impl/BsMerchantServiceImpl.java

@ -280,6 +280,7 @@ public class BsMerchantController {
@RequestParam(value = "chainBrandId", required = false) Long chainBrandId,
@RequestParam(value = "cityCode", required = false) String cityCode,
@RequestParam(value = "areaCode", required = false) String areaCode,
@RequestParam(value = "status", required = false) Integer status,
@RequestParam(value = "pageNum", required = true) Integer pageNum,
@RequestParam(value = "pageSize", required = true) Integer pageSize) {
try {
@ -291,6 +292,7 @@ public class BsMerchantController {
map.put("chainBrandId", chainBrandId);
map.put("cityCode", cityCode);
map.put("areaCode", areaCode);
map.put("status", status);
PageHelper.startPage(pageNum,pageSize);
return ResponseMsgUtil.success(new PageInfo<>(merchantService.getMerchantList(map)));

@ -188,6 +188,10 @@ public class BsMerchantServiceImpl implements BsMerchantService {
criteria.andAreaCodeEqualTo(MapUtils.getLong(param, "areaCode"));
}
if (MapUtils.getLong(param, "status") != null) {
criteria.andAreaCodeEqualTo(MapUtils.getLong(param, "status"));
}
if (StringUtils.isNotBlank(MapUtils.getString(param, "merNo"))) {
criteria.andMerNoLike("%"+MapUtils.getString(param, "merNo")+"%");
}

Loading…
Cancel
Save