|
|
@@ -2,6 +2,7 @@ package com.gree.mall.manager.logic.admin;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.excel.util.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
|
|
import com.gree.mall.manager.bean.ExcelData;
|
|
|
@@ -12,6 +13,7 @@ import com.gree.mall.manager.bean.admin.reqDto.AdminUserAddReqBean;
|
|
|
import com.gree.mall.manager.bean.workorder.AdminWebsitList;
|
|
|
import com.gree.mall.manager.constant.Constant;
|
|
|
import com.gree.mall.manager.enums.ExamineStatusEnum;
|
|
|
+import com.gree.mall.manager.enums.IsYesNoEnum;
|
|
|
import com.gree.mall.manager.enums.WebsitAttrEnum;
|
|
|
import com.gree.mall.manager.enums.admin.AdminWebsitTypeEnum;
|
|
|
import com.gree.mall.manager.enums.base.BaseEnum;
|
|
|
@@ -459,6 +461,8 @@ public class AdminWebsitLogic {
|
|
|
// if (count > 0) {
|
|
|
// throw new RemoteServiceException("名称已存在");
|
|
|
// }
|
|
|
+ AdminWebsit oldWebsit = adminWebsitService.getById(adminWebsit.getWebsitId());
|
|
|
+
|
|
|
if (adminWebsit.getParentId().equals("0")) {
|
|
|
throw new RemoteServiceException("请选择上级");
|
|
|
}
|
|
|
@@ -485,6 +489,24 @@ public class AdminWebsitLogic {
|
|
|
|
|
|
this.checkWebsitIdAndName(adminWebsit, adminUser, false);
|
|
|
|
|
|
+ if (!StrUtil.equals(oldWebsit.getLegalMobile(), adminWebsit.getLegalMobile())
|
|
|
+ || !StrUtil.equals(oldWebsit.getLegalName(), adminWebsit.getLegalName())) {
|
|
|
+ adminWebsitService.lambdaUpdate()
|
|
|
+ .set(AdminWebsit::getFadadaCustomerId, null)
|
|
|
+ .set(AdminWebsit::getFadadaCustomerNo, null)
|
|
|
+ .set(AdminWebsit::getFadadaCustomerRealStatus, IsYesNoEnum.NO.getKey())
|
|
|
+ .set(AdminWebsit::getFadadaCustomerAuthUrl, null)
|
|
|
+ .set(AdminWebsit::getFadadaWebsitId, null)
|
|
|
+ .set(AdminWebsit::getFadadaWebsitNo, null)
|
|
|
+ .set(AdminWebsit::getFadadaWebsitRealStatus, IsYesNoEnum.NO.getKey())
|
|
|
+ .set(AdminWebsit::getFadadaWebsitAuthUrl, null)
|
|
|
+ .set(AdminWebsit::getFadadaCustomerPhotoUuid, null)
|
|
|
+ .set(AdminWebsit::getFadadaCustomerHeadPhotoPath, null)
|
|
|
+ .set(AdminWebsit::getFadadaCustomerAuditorTime, null)
|
|
|
+ .eq(AdminWebsit::getWebsitId, oldWebsit.getWebsitId())
|
|
|
+ .update();
|
|
|
+ }
|
|
|
+
|
|
|
if (adminUser.getType().equals(0)) {
|
|
|
// 网点仅可改联系人、联系电话、地址信息,其他字段都不允许修改,只能由商户账号才有权限修改
|
|
|
AdminWebsit websit = new AdminWebsit();
|