diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/dto/CustInfoParam.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/dto/CustInfoParam.java index c6072fa7..864b7e71 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/dto/CustInfoParam.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/dto/CustInfoParam.java @@ -4,6 +4,7 @@ import com.bonus.canteen.core.common.encrypt.LeNiuDecryptDataProcess; import com.bonus.canteen.core.common.encrypt.LeNiuDecryptField; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDate; import java.time.LocalDateTime; @@ -36,6 +37,8 @@ public class CustInfoParam { private String chronicIds; private LocalDate birthdayStartTime; private LocalDate birthdayEndTime; + @DateTimeFormat(pattern = "yyyy-MM-dd") + private LocalDate upTime; private String keyword; private List placeIdList; private List healthStateList; @@ -134,6 +137,14 @@ public class CustInfoParam { return this.birthdayEndTime; } + public LocalDate getUpTime() { + return upTime; + } + + public void setUpTime(LocalDate upTime) { + this.upTime = upTime; + } + public String getKeyword() { return this.keyword; } diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/customer/CustInfoMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/customer/CustInfoMapper.xml index 708a7f99..fd495a6e 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/customer/CustInfoMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/customer/CustInfoMapper.xml @@ -400,6 +400,11 @@ #{item} + + = #{infoParam.upTime} + ]]> + order by ci.id desc