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

[车流][修改][修改会员车流列表缴费时间过滤]

release_toaliyun_real
luozukai 6 лет назад
Родитель
Сommit
3920d70e3c
3 измененных файлов: 53 добавлений и 6 удалений
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCarPayRecord.java
  2. +33
    -0
      mallinkService/src/main/java/com/iformall/enums/EnumCarPayType.java
  3. +19
    -6
      mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml

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

@@ -39,6 +39,7 @@ public class WxCarPayRecord extends BaseEntity {
private String userType;

private String feeTimeStr;
@Excel(name="缴费时间",width = 20,orderNum = "7",format="yyyy-MM-dd HH:mm")
private Date feeTime;
private String coupon;
private String couponCode;


+ 33
- 0
mallinkService/src/main/java/com/iformall/enums/EnumCarPayType.java Просмотреть файл

@@ -0,0 +1,33 @@
package com.iformall.enums;

public enum EnumCarPayType {

NO_PAY(0, "进出场车辆"),
PAY(1, "进出场车辆缴费")
;

public static EnumCarPayType getEnum(Integer code) {
for (EnumCarPayType value : values()) {
if (value.getCode().equals(code)) {
return value;
}
}
return null;
}

private Integer code;
private String message;

EnumCarPayType(Integer code, String message) {
this.code = code;
this.message = message;
}

public Integer getCode() {
return code;
}

public String getMessage() {
return message;
}
}

+ 19
- 6
mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml Просмотреть файл

@@ -58,12 +58,25 @@
and `vendor_type` = #{vendorType}
</if>

<if test=" null != startDate">
and fee_time >= #{startDate}
</if>
<if test=" null != endDate">
and fee_time &lt;= #{endDate}
</if>
<choose>
<when test="1==isPay">
<if test=" null != startDate">
and fee_time >= #{startDate}
</if>
<if test=" null != endDate">
and fee_time &lt;= #{endDate}
</if>
</when>
<otherwise>
<if test=" null != startDate">
and create_date >= #{startDate}
</if>
<if test=" null != endDate">
and create_date &lt;= #{endDate}
</if>
</otherwise>
</choose>

<if test=" 1 == isPay">
and fee is not null
and fee != ''


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