提交代码

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

@ -188,6 +188,10 @@ public class BsMerchantServiceImpl implements BsMerchantService {
criteria.andAreaCodeEqualTo(MapUtils.getLong(param, "areaCode")); 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"))) { if (StringUtils.isNotBlank(MapUtils.getString(param, "merNo"))) {
criteria.andMerNoLike("%"+MapUtils.getString(param, "merNo")+"%"); criteria.andMerNoLike("%"+MapUtils.getString(param, "merNo")+"%");
} }

Loading…
Cancel
Save