订单优化
This commit is contained in:
@@ -118,6 +118,21 @@ public class PlayClerkUserInfoServiceImpl extends ServiceImpl<PlayClerkUserInfoM
|
||||
if (map.containsKey("3")) {
|
||||
result.setAudioAllowEdit(false);
|
||||
}
|
||||
//是店员之后,判断是否可以登录
|
||||
if (result.getClerkState().equals("1")) {
|
||||
//设置店员是否运行登录
|
||||
if ("0".equals(userInfo.getOnboardingState())) {
|
||||
result.setAllowLogin("1");
|
||||
result.setDisableLoginReason("你已离职,需要复职请联系店铺管理员");
|
||||
}
|
||||
if ("0".equals(userInfo.getListingState())) {
|
||||
result.setAllowLogin("1");
|
||||
result.setDisableLoginReason("你已被下架,没有权限访问");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//如果存在未审批的申请,或者当前已经是店员-可以申请陪聊
|
||||
PlayClerkUserReviewInfoEntity entity = playClerkUserReviewInfoService.queryByClerkId(userInfo.getId(), "0");
|
||||
if (entity != null || "1".equals(result.getClerkState())) {
|
||||
@@ -132,16 +147,6 @@ public class PlayClerkUserInfoServiceImpl extends ServiceImpl<PlayClerkUserInfoM
|
||||
}
|
||||
result.setCommodity(playClerkCommodityQueryVos);
|
||||
result.setArea(userInfo.getProvince() + "-" + userInfo.getCity());
|
||||
//设置店员是否运行登录
|
||||
if ("0".equals(userInfo.getOnboardingState())) {
|
||||
result.setAllowLogin("1");
|
||||
result.setDisableLoginReason("你已离职,需要复职请联系店铺管理员");
|
||||
}
|
||||
if ("0".equals(userInfo.getListingState())) {
|
||||
result.setAllowLogin("1");
|
||||
result.setDisableLoginReason("你已被下架,没有权限访问");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user