Commit 3985f9fc by 墨竹

fix:增加提示

parent 95789ee7
......@@ -223,23 +223,23 @@ public class ClerkController extends WebBaseController {
ClerkMainStoreRelatedDTO mainStore = clerkMainStoreRelatedApiService.getWxEnterpriseIdAndStaffId(wxEnterpriseId, staffId);
if (mainStore == null) {
logger.info("该门店不存在");
return resultResponse(HaoBanErrCode.ERR_5);
return resultResponse(HaoBanErrCode.ERR_400023);
}
String mainStoreId = mainStore.getStoreId();
StoreDTO storeDTO = storeService.getStore(mainStoreId);
if (null == storeDTO) {
logger.info("该门店不存在");
return resultResponse(HaoBanErrCode.ERR_5);
return resultResponse(HaoBanErrCode.ERR_400023);
}
WxEnterpriseRelationDetailDTO enterpriseBindInfo = wxEnterpriseRelatedApiService.getEnterpriseBindInfo(wxEnterpriseId, storeDTO.getEnterpriseId());
if (null == enterpriseBindInfo) {
logger.info("该企业未关联");
return resultResponse(HaoBanErrCode.ERR_5);
return resultResponse(HaoBanErrCode.ERR_400022);
}
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseApiService.getOne(wxEnterpriseId);
if (null == wxEnterpriseDTO) {
logger.info("该企业未关联");
return resultResponse(HaoBanErrCode.ERR_8);
logger.info("该企业不存在");
return resultResponse(HaoBanErrCode.ERR_400002);
}
Integer agreeExternalUseridFlag = wxEnterpriseDTO.getAgreeExternalUseridFlag();
int memberOpenCardFlag = enterpriseBindInfo.getMemberOpenCardFlag();
......
......@@ -96,6 +96,7 @@ public enum HaoBanErrCode {
ERR_400020(400020, "门店图片不能为空"),
ERR_400021(400021, "您还未绑定主门店,请前往好办-我的-设置中操作设为主门店"),
ERR_400022(400022, " 抱歉,您的企业还未和GIC系统关联,无法查找到对应的导购账号"),
ERR_400023(400023, "员工门店不存在"),
/**
* 文件不存在
......
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