Bläddra i källkod

加入isStart 字段

wuxw 3 år sedan
förälder
incheckning
2796f5cdb5

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/couponPropertyUser/CouponPropertyUserDto.java

@@ -42,6 +42,8 @@ public class CouponPropertyUserDto extends PageDto implements Serializable {
 
     private String startTime;
 
+    private String isStart;
+
 
     public String getCouponName() {
         return couponName;
@@ -188,4 +190,12 @@ public class CouponPropertyUserDto extends PageDto implements Serializable {
     public void setStartTime(String startTime) {
         this.startTime = startTime;
     }
+
+    public String getIsStart() {
+        return isStart;
+    }
+
+    public void setIsStart(String isStart) {
+        this.isStart = isStart;
+    }
 }

+ 7 - 0
java110-db/src/main/resources/mapper/acct/CouponPropertyUserV1ServiceDaoImplMapper.xml

@@ -60,6 +60,9 @@
         <if test="startTime !=null and startTime != ''">
             and t.start_time= #{startTime}
         </if>
+        <if test="isStart !=null and isStart != ''">
+            and t.start_time &lt; now()
+        </if>
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
         </if>
@@ -171,6 +174,10 @@
         <if test="startTime !=null and startTime != ''">
             and t.start_time= #{startTime}
         </if>
+        <if test="isStart !=null and isStart != ''">
+            and t.start_time &lt; now()
+        </if>
+
 
 
     </select>