Commit bd8d0268 by 徐高华

品牌过期校验

parent 6497cdc3
...@@ -751,7 +751,7 @@ public class WxStaffController extends WebBaseController { ...@@ -751,7 +751,7 @@ public class WxStaffController extends WebBaseController {
} }
List<EnterpriseDetailDTO> list = wxEnterpriseRelatedApiService.listEnterpriseByWxEnterpriseId(wxEnterpriseId); List<EnterpriseDetailDTO> list = wxEnterpriseRelatedApiService.listEnterpriseByWxEnterpriseId(wxEnterpriseId);
if (list == null || list.isEmpty()) { if (list == null || list.isEmpty()) {
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_0, "未关联gic商户");
} }
List<String> enterpriseIdList = list.stream().filter(s -> { List<String> enterpriseIdList = list.stream().filter(s -> {
boolean over = wxEnterpriseApiService.haobanIsStop(s.getEnterpriseId()); boolean over = wxEnterpriseApiService.haobanIsStop(s.getEnterpriseId());
...@@ -762,6 +762,9 @@ public class WxStaffController extends WebBaseController { ...@@ -762,6 +762,9 @@ public class WxStaffController extends WebBaseController {
return resultResponse(HaoBanErrCode.ERR_1, new ArrayList<>()); return resultResponse(HaoBanErrCode.ERR_1, new ArrayList<>());
} }
logger.info("查询到企微门店数={},{}", storeIds.size(), storeIds); logger.info("查询到企微门店数={},{}", storeIds.size(), storeIds);
if(CollectionUtils.isEmpty(enterpriseIdList)) {
return resultResponse(HaoBanErrCode.ERR_0, "关联gic商户已过期");
}
List<ClerkDTO> clerkList = new ArrayList<>(); List<ClerkDTO> clerkList = new ArrayList<>();
if (manageFlag == -1) { if (manageFlag == -1) {
clerkList.addAll(clerkService.listClerkEnableHaoban(enterpriseIdList, keyword)); clerkList.addAll(clerkService.listClerkEnableHaoban(enterpriseIdList, keyword));
...@@ -1603,7 +1606,7 @@ public class WxStaffController extends WebBaseController { ...@@ -1603,7 +1606,7 @@ public class WxStaffController extends WebBaseController {
logger.info("没有关联任何商户或商户都已停用:{}", wxEnterpriseId); logger.info("没有关联任何商户或商户都已停用:{}", wxEnterpriseId);
return RestResponse.successResult(); return RestResponse.successResult();
} }
logger.info("关联的商户={}",enterpriseIdList);
Map<String, EnterpriseDetailDTO> enterpriseTypeMap = enterpriseList.stream() Map<String, EnterpriseDetailDTO> enterpriseTypeMap = enterpriseList.stream()
.collect(Collectors.toMap(dto -> dto.getEnterpriseId(), dto -> dto)); .collect(Collectors.toMap(dto -> dto.getEnterpriseId(), dto -> dto));
bindRelationList = staffClerkRelationApiService.listBindCodeByStaffId(enterpriseIdList, staffId); bindRelationList = staffClerkRelationApiService.listBindCodeByStaffId(enterpriseIdList, staffId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment