zoujiajian пре 1 година
родитељ
комит
1b16da9daa

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

@@ -96,9 +96,15 @@ public class RenewalView {
     @JsonIgnore
     private Long userId;
 
+    @DbField("gr.start_time")
+    private Date startTime;
+
     @DbField("gr.expiry_time")
     private Date expiryTime;
 
+    @DbIgnore
+    private Long total;
+
     @DbIgnore
     private String expiryTimeStr;
 

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

@@ -229,6 +229,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 					remainDays = days + 1 + "天";
 				}
 				ticket.setRemainDays(remainDays);
+				ticket.setTotal(DateUtil.betweenDay(ticket.getStartTime(), ticket.getExpiryTime(), false));
 			}
 			OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class)
 					.eq(OrderDon::getRelationId, ticket.getRelationId())