浏览代码

更多服务续费判断

wangyu 6 年之前
父节点
当前提交
6349361eca
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      diagbotman-service/src/main/java/com/diagbot/facade/UserRenewalsFacade.java

+ 3 - 1
diagbotman-service/src/main/java/com/diagbot/facade/UserRenewalsFacade.java

@@ -90,7 +90,9 @@ public class UserRenewalsFacade extends UserRenewalsServiceImpl {
         if(this.selectProductIdByUserId(map).contains(addRenewalsInfoVO.getProductId())){
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "请勿重复提交申请");
         }
-        if(this.selectProductIdByUserId(map).contains(StatusEnum.Disable.getKey())){
+        OpenedProducts openedProducts =new OpenedProducts();
+        openedProducts.setServiceStatus(StatusEnum.Disable.getKey());
+        if(openedProductsList.contains(openedProducts.getServiceStatus())){
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "您的产品已停用,请刷新页面");
         }
         userRenewals.setProductId(addRenewalsInfoVO.getProductId());