Ver código fonte

fix 是否禁止奈飞检测

zoujiajian 8 meses atrás
pai
commit
a3731fffda

+ 5 - 0
netflix-dao/src/main/java/com/cyksj/model/entity/GoodsDonSku.java

@@ -360,4 +360,9 @@ public class GoodsDonSku extends BaseEntity {
      * 默认false
      */
     private Boolean showPayDesc;
+
+    /**
+     * 是否禁止奈飞检测
+     */
+    private Boolean isBannedCheck;
 }

+ 5 - 0
netflix-dao/src/main/java/com/cyksj/model/manage/request/ReqGoodsSkuInsert.java

@@ -263,6 +263,11 @@ public class ReqGoodsSkuInsert {
          * 默认false
          */
         private Boolean showPayDesc;
+
+        /**
+         * 是否禁止奈飞检测
+         */
+        private Boolean isBannedCheck;
     }
 
 }

+ 5 - 0
netflix-dao/src/main/java/com/cyksj/model/views/GoodsDonSkuFrontView.java

@@ -302,4 +302,9 @@ public class GoodsDonSkuFrontView {
 	 * 每月预算上限
 	 */
 	private Integer openaiQuota;
+
+	/**
+	 * 是否禁止奈飞检测
+	 */
+	private Boolean isBannedCheck;
 }

+ 6 - 0
netflix-dao/src/main/java/com/cyksj/model/views/RenewalView.java

@@ -65,6 +65,12 @@ public class RenewalView {
     @DbField("sku.spec_val")
     private String specVal;
 
+    /**
+     * 是否禁止奈飞检测
+     */
+    @DbField("sku.is_banned_check")
+    private Boolean isBannedCheck;
+
     @DbField("gr.id")
     private Long relationId;
 

+ 6 - 0
netflix-dao/src/main/java/com/cyksj/model/views/UserTicketView.java

@@ -89,4 +89,10 @@ public class UserTicketView {
 	 */
 	@DbField("gdk.gpt_limit_time")
 	private Long gptUserLimitTime;
+
+	/**
+	 * 是否禁止奈飞检测
+	 */
+	@DbField("gdk.is_banned_check")
+	private Boolean isBannedCheck;
 }

+ 1 - 0
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -446,6 +446,7 @@
         gdk.gpt_limit_num as gptUserLimitNum,
         gdk.gpt_limit_time as gptUserLimitTime,
         gdk.num as skuNum,
+        gdk.is_banned_check,
         gr.is_frozen,
         gr.unfrozen_time,
         gr.reserved_days

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/gpt/impl/GptQuickLinkServiceImpl.java

@@ -56,7 +56,7 @@ public class GptQuickLinkServiceImpl implements GptQuickLinkService {
         // 检查用户是否有GPT镜像车票
         List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
         if (getValidGptTicket(userIdList).isEmpty()) {
-            throw new BusinessRuntimeException("您没有有效的GPT镜像车票");
+            throw new BusinessRuntimeException("您没有有效的GPT车票");
         }
         //生成标识
         String code = StringUtil.randomString(6);;

+ 3 - 0
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -1308,6 +1308,9 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 		if (renewalView.getGoodsId() != 1) {
 			throw BusinessRuntimeException.getInstance("只支持奈飞车票");
 		}
+		if (renewalView.getIsBannedCheck()) {
+			throw BusinessRuntimeException.getInstance("该规格不支持检测");
+		}
 		String account = renewalView.getAccount();
 		String password = renewalView.getPassword();