Przeglądaj źródła

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

release_toaliyun_real
Stormeye Wu 7 lat temu
rodzic
commit
8488496e50
2 zmienionych plików z 11 dodań i 1 usunięć
  1. +4
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxMerchantSubsidy.java
  2. +7
    -1
      mallinkService/src/main/resources/mapper/WxMerchantSubsidyMapper.xml

+ 4
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxMerchantSubsidy.java Wyświetl plik

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

@Transient
private Date startdate;

@Transient
private Date enddate;

public static enum Field
{


+ 7
- 1
mallinkService/src/main/resources/mapper/WxMerchantSubsidyMapper.xml Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz