|
@@ -10,8 +10,10 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
|
|
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
|
|
import com.openhtmltopdf.swing.Java2DRenderer;
|
|
import com.openhtmltopdf.swing.Java2DRenderer;
|
|
import com.openhtmltopdf.util.FSImageWriter;
|
|
import com.openhtmltopdf.util.FSImageWriter;
|
|
|
|
+import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
import com.zhongzheng.common.utils.SecurityUtils;
|
|
import com.zhongzheng.common.utils.SecurityUtils;
|
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
import com.zhongzheng.modules.alioss.bo.OssRequest;
|
|
import com.zhongzheng.modules.alioss.bo.OssRequest;
|
|
import com.zhongzheng.modules.alioss.service.impl.OssServiceImpl;
|
|
import com.zhongzheng.modules.alioss.service.impl.OssServiceImpl;
|
|
import com.zhongzheng.modules.alisms.service.IAliSmsService;
|
|
import com.zhongzheng.modules.alisms.service.IAliSmsService;
|
|
@@ -262,8 +264,13 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public boolean updateAuditByEditBo(UserProfileEditBo bo) {
|
|
|
|
|
|
+ public boolean updateAuditByEditBo(UserProfileEditBo bo,LoginUser loginUser) {
|
|
UserProfile update = BeanUtil.toBean(bo,UserProfile.class);
|
|
UserProfile update = BeanUtil.toBean(bo,UserProfile.class);
|
|
|
|
+ UserProfileVo userProfileVo1 = this.queryById(bo.getId());
|
|
|
|
+
|
|
|
|
+ if (baseMapper.selectCountProfile(loginUser.getUser().getUserId(),userProfileVo1.getGoodsId()) > 0){
|
|
|
|
+ throw new IllegalArgumentException("您没有审核权限");
|
|
|
|
+ }
|
|
update.setId(bo.getId());
|
|
update.setId(bo.getId());
|
|
update.setCreateByName("SAAS-"+ SecurityUtils.getUsername());
|
|
update.setCreateByName("SAAS-"+ SecurityUtils.getUsername());
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
update.setUpdateTime(DateUtils.getNowTime());
|