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

[储值卡][新增]:添加开始时间/结束时间保证查询

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
2727a24958
4 измененных файлов: 24 добавлений и 2 удалений
  1. +4
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCardSpend.java
  2. +6
    -0
      mallinkService/src/main/java/com/iformall/domain/vo/WxCardVo.java
  3. +7
    -1
      mallinkService/src/main/resources/mapper/WxCardInfoMapper.xml
  4. +7
    -1
      mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml

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

@@ -67,7 +67,11 @@ public class WxCardSpend implements Serializable {
@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate")
private Date updateDate;

@Transient
private Date startdate;

@Transient
private Date enddate;

public static enum Field
{


+ 6
- 0
mallinkService/src/main/java/com/iformall/domain/vo/WxCardVo.java Просмотреть файл

@@ -74,4 +74,10 @@ public class WxCardVo extends WxCardInfo {

@Transient
protected String statusStr;

@Transient
private Date startdate;

@Transient
private Date enddate;
}

+ 7
- 1
mallinkService/src/main/resources/mapper/WxCardInfoMapper.xml Просмотреть файл

@@ -57,7 +57,10 @@
</if>
<if test=" null != updateDate ">
and `update_date` = #{updateDate}
</if>
</if>
<if test=" null != startdate and null!=enddate">
and `create_date` between #{startdate} and #{enddate}
</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
@@ -158,6 +161,9 @@
<if test=" null != oPhone ">
and o_phone = #{oPhone}
</if>
<if test=" null != startdate and null!=enddate">
and ci.`create_date` between #{startdate} and #{enddate}
</if>
<if test=" null != statusS ">
and status in
<foreach collection="statusS" index="index" item="sItem" open="(" separator="," close=")">


+ 7
- 1
mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml Просмотреть файл

@@ -70,7 +70,10 @@
</if>
<if test=" null != updateDate ">
and `update_date` = #{updateDate}
</if>
</if>
<if test=" null != startdate and null!=enddate">
and `create_date` between #{startdate} and #{enddate}
</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
@@ -166,6 +169,9 @@
<if test=" null != updateDate ">
and cs.`update_date` = #{updateDate}
</if>
<if test=" null != startdate and null!=enddate">
and cs.`create_date` between #{startdate} and #{enddate}
</if>
<if test=" null != ids ">
and cs.id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


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