Commit 6264b141 by 徐高华

Merge branch 'feature/xgh/20241月迭代' into 'developer'

品牌过期校验

See merge request !1648
parents 1879766c bd8d0268
......@@ -717,7 +717,7 @@ public class WxStaffController extends WebBaseController {
}
List<EnterpriseDetailDTO> list = wxEnterpriseRelatedApiService.listEnterpriseByWxEnterpriseId(wxEnterpriseId);
if (list == null || list.isEmpty()) {
return resultResponse(HaoBanErrCode.ERR_1);
return resultResponse(HaoBanErrCode.ERR_0, "未关联gic商户");
}
List<String> enterpriseIdList = list.stream().filter(s -> {
boolean over = wxEnterpriseApiService.haobanIsStop(s.getEnterpriseId());
......@@ -728,6 +728,9 @@ public class WxStaffController extends WebBaseController {
return resultResponse(HaoBanErrCode.ERR_1, new ArrayList<>());
}
logger.info("查询到企微门店数={},{}", storeIds.size(), storeIds);
if(CollectionUtils.isEmpty(enterpriseIdList)) {
return resultResponse(HaoBanErrCode.ERR_0, "关联gic商户已过期");
}
List<ClerkDTO> clerkList = new ArrayList<>();
if (manageFlag == -1) {
clerkList.addAll(clerkService.listClerkEnableHaoban(enterpriseIdList, keyword));
......@@ -1569,7 +1572,7 @@ public class WxStaffController extends WebBaseController {
logger.info("没有关联任何商户或商户都已停用:{}", wxEnterpriseId);
return RestResponse.successResult();
}
logger.info("关联的商户={}",enterpriseIdList);
Map<String, EnterpriseDetailDTO> enterpriseTypeMap = enterpriseList.stream()
.collect(Collectors.toMap(dto -> dto.getEnterpriseId(), dto -> dto));
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