wangqifan 3 lat temu
rodzic
commit
7d719983af

+ 3 - 3
src/main/java/com/izouma/nineth/service/AssetService.java

@@ -184,9 +184,9 @@ public class AssetService {
             throw new BusinessException("需持有满" + holdDays + "天才能寄售上架");
             throw new BusinessException("需持有满" + holdDays + "天才能寄售上架");
         }
         }
         User owner = userRepo.findById(asset.getUserId()).orElseThrow(new BusinessException("用户不存在"));
         User owner = userRepo.findById(asset.getUserId()).orElseThrow(new BusinessException("用户不存在"));
-//        if (StringUtils.isBlank(owner.getSettleAccountId())) {
-//            throw new BusinessException("请先绑定银行卡");
-//        }
+        if (StringUtils.isBlank(owner.getSettleAccountId())) {
+            throw new BusinessException("请先绑定银行卡");
+        }
         if (asset.isConsignment()) {
         if (asset.isConsignment()) {
             throw new BusinessException("已寄售,请勿重新操作");
             throw new BusinessException("已寄售,请勿重新操作");
         }
         }