This commit is contained in:
gaowdong 2025-04-29 10:22:35 +08:00
parent 466f2454e8
commit 9f12744678
3 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ public class AccountInfoQueryParam extends BaseEntity {
@ApiModelProperty("结束时间")
private LocalDateTime endDateTime;
private String searchValue;
private Integer userType;
// @ApiModelProperty("钱包最小金额")
// private BigDecimal walletMinAmount;
// @ApiModelProperty("钱包最大金额")

View File

@ -1,6 +1,7 @@
package com.bonus.canteen.core.account.domain.vo;
import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -35,6 +36,7 @@ public class AccInfoDetailsVO {
private Long deptId;
@ApiModelProperty("用户类别(展示)")
@Excel(name = "用户类别(展示)")
@JsonIgnore
private String userTypeName;
@ApiModelProperty("账户总余额")
@Excel(name = "账户总余额")

View File

@ -433,6 +433,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
<if test="accountInfoQueryParam.searchValue != null and accountInfoQueryParam.searchValue != ''">
and (t2.nick_name like CONCAT('%',#{accountInfoQueryParam.searchValue},'%')
or t2.user_id like CONCAT('%',#{accountInfoQueryParam.searchValue},'%')
or t2.phonenumber = #{encryptedSearchValue}
)
</if>
@ -448,6 +449,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="accountInfoQueryParam.endDateTime != null">
and t1.update_time <![CDATA[ <= ]]> #{accountInfoQueryParam.endDateTime}
</if>
<if test="accountInfoQueryParam.userType != null">
and t2.user_type = #{accountInfoQueryParam.userType}
</if>
<if test="accountInfoQueryParam.walletType != null">
AND EXISTS(
SELECT null FROM