rgb пре 6 година
родитељ
комит
c7df214765

+ 5 - 0
diagbotman-service/src/main/java/com/diagbot/dto/GetConsoleOpenedDTO.java

@@ -95,4 +95,9 @@ public class GetConsoleOpenedDTO implements Serializable {
      */
     private Integer isCreateToken;
     
+    /**
+     * 是否可以开始使用
+     */
+    private Integer isBegin;
+    
 }

+ 2 - 1
diagbotman-service/src/main/resources/mapper/OpenedProductsMapper.xml

@@ -67,7 +67,8 @@
 			d.app_key_id as appKeyId,
 			d.app_key_secret as appKeySecret,
 			case when c.id is null then 0 else 1 end as renewalsStutas,
-			case when sysdate()>a.end_time then 0 else 1 end as isExpire
+			case when sysdate()>a.end_time then 0 else 1 end as isExpire,
+			case when a.start_time>sysdate() then 0 else 1 end as isBegin
 		from diag_opened_products a join diag_lantone_product b on a.product_id=b.id
 		left join diag_user_renewals c on a.user_id=c.user_id and a.product_id=c.product_id and c.renewals_status=0 and c.cancel_renewals=0 and c.is_deleted='N'
 		left join