From 214b86fd3e3fc23f41c2e33f789f6c53ce524885 Mon Sep 17 00:00:00 2001 From: masterspirit Date: Sun, 26 Aug 2018 17:57:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8F=91=E5=88=B8log][=E4=BF=AE=E6=94=B9]=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4=EF=BC=8C?= =?UTF-8?q?=E5=81=8F=E4=BA=8E=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simple/domain/po/WxCouponActionLog.java | 22 +++++++++++++++++++ .../mapper/WxCouponActionLogMapper.xml | 12 +++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/simple/domain/po/WxCouponActionLog.java b/mallinkService/src/main/java/com/simple/domain/po/WxCouponActionLog.java index 19cb885a0..837a757ad 100644 --- a/mallinkService/src/main/java/com/simple/domain/po/WxCouponActionLog.java +++ b/mallinkService/src/main/java/com/simple/domain/po/WxCouponActionLog.java @@ -19,6 +19,12 @@ public class WxCouponActionLog implements Serializable { protected List ids; @Transient protected String sortColumns; + @Transient + protected Date startTime; + + + @Transient + protected Date endTime; public Long getId() { return id; @@ -40,6 +46,22 @@ public class WxCouponActionLog implements Serializable { this.ids = ids; } + public Date getStartTime() { + return startTime; + } + + public void setStartTime(Date startTime) { + this.startTime = startTime; + } + + public Date getEndTime() { + return endTime; + } + + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + /*租户ID**/ diff --git a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml index 19f6d2946..2ce37552e 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml @@ -49,9 +49,15 @@ - and `createtime` = #{createtime} - - + and `createtime` = #{createtime} + + + and `createtime` >= #{startTime} + + + and `createtime` <= #{endTime} + + and id in