|
@@ -268,7 +268,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
UserProfile update = BeanUtil.toBean(bo,UserProfile.class);
|
|
UserProfile update = BeanUtil.toBean(bo,UserProfile.class);
|
|
UserProfileVo userProfileVo1 = this.queryById(bo.getId());
|
|
UserProfileVo userProfileVo1 = this.queryById(bo.getId());
|
|
|
|
|
|
- if (baseMapper.selectCountProfile(loginUser.getUser().getUserId(),userProfileVo1.getGoodsId()) > 0){
|
|
|
|
|
|
+ if (baseMapper.selectCountProfile(loginUser.getUser().getUserId(),userProfileVo1.getGoodsId()) < 1){
|
|
throw new IllegalArgumentException("您没有审核权限");
|
|
throw new IllegalArgumentException("您没有审核权限");
|
|
}
|
|
}
|
|
update.setId(bo.getId());
|
|
update.setId(bo.getId());
|