Просмотр исходного кода

[发券log][修改] 添加时间范围,偏于查询

release_toaliyun_real
masterspirit 7 лет назад
Родитель
Сommit
214b86fd3e
2 измененных файлов: 31 добавлений и 3 удалений
  1. +22
    -0
      mallinkService/src/main/java/com/simple/domain/po/WxCouponActionLog.java
  2. +9
    -3
      mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml

+ 22
- 0
mallinkService/src/main/java/com/simple/domain/po/WxCouponActionLog.java Просмотреть файл

@@ -19,6 +19,12 @@ public class WxCouponActionLog implements Serializable {
protected List<Long> 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**/


+ 9
- 3
mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml Просмотреть файл

@@ -49,9 +49,15 @@
</if>
<if test=" null != createtime ">
and `createtime` = #{createtime}
</if>
and `createtime` = #{createtime}
</if>
<if test=" null != startTime ">
and `createtime` >= #{startTime}
</if>
<if test=" null != endTime ">
and `createtime` &lt;= #{endTime}
</if>

<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


Загрузка…
Отмена
Сохранить