Procházet zdrojové kódy

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

release_toaliyun_real
Stormeye Wu před 7 roky
rodič
revize
2727a24958
4 změnil soubory, kde provedl 24 přidání a 2 odebrání
  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 Zobrazit soubor

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


@Transient
private Date startdate;


@Transient
private Date enddate;


public static enum Field public static enum Field
{ {


+ 6
- 0
mallinkService/src/main/java/com/iformall/domain/vo/WxCardVo.java Zobrazit soubor

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


@Transient @Transient
protected String statusStr; protected String statusStr;

@Transient
private Date startdate;

@Transient
private Date enddate;
} }

+ 7
- 1
mallinkService/src/main/resources/mapper/WxCardInfoMapper.xml Zobrazit soubor

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


+ 7
- 1
mallinkService/src/main/resources/mapper/WxCardSpendMapper.xml Zobrazit soubor

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


Načítá se…
Zrušit
Uložit