he2802 1 year ago
parent
commit
4174dc6438

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/UserProfileServiceImpl.java

@@ -149,7 +149,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
 
     @Override
     public String querCommitment(UserProfileQueryBo bo) {
-        if(Validator.isNotEmpty(bo.getUserId())||Validator.isNotEmpty(bo.getGoodsId())){
+        if(Validator.isEmpty(bo.getUserId())||Validator.isEmpty(bo.getGoodsId())){
             throw new CustomException("参数缺失");
         }
         UserProfile profile = getOne(new LambdaQueryWrapper<UserProfile>()