feat:点击饭卡搜索条件
This commit is contained in:
1 parent
1dce8f6147
commit
0031ab58f8
4 files changed
+29
-1
No files matched your search
@@ -126,3 +126,21 @@ CREATE TABLE wallet_transaction
|
||||
CREATE INDEX idx_dept_id ON wallet_transaction (wallet_id);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `sys_user_face`
|
||||
(
|
||||
id bigint AUTO_INCREMENT NOT NULL COMMENT '编号',
|
||||
user_id bigint NOT NULL COMMENT '用户ID',
|
||||
face_img varchar(256) NOT NULL COMMENT '人脸图片',
|
||||
create_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
|
||||
create_time datetime DEFAULT NULL COMMENT '创建时间',
|
||||
update_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人',
|
||||
update_time datetime DEFAULT NULL COMMENT '修改时间',
|
||||
del_flag char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标记',
|
||||
tenant_id bigint DEFAULT NULL COMMENT '租户ID',
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='人脸样本表';
|
||||
CREATE INDEX idx_dept_id ON sys_user_face (user_id);
|
||||
|
||||
@@ -169,6 +169,10 @@
|
||||
<bind name="usernameLike" value="'%'+query.username+'%'"/>
|
||||
AND u.username LIKE #{usernameLike}
|
||||
</if>
|
||||
<if test="query.name != null and query.name != ''">
|
||||
<bind name="nameLike" value="'%'+query.name+'%'"/>
|
||||
AND u.name LIKE #{nameLike}
|
||||
</if>
|
||||
<if test="query.deptId != null and query.deptId != ''">
|
||||
AND u.dept_id = #{query.deptId}
|
||||
</if>
|
||||
|
||||
+4
@@ -3,7 +3,11 @@ package com.bsd.pjcloud.wallet.api.dto;
|
||||
import com.bsd.pjcloud.wallet.api.entity.WalletManageEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class WalletManageDto extends WalletManageEntity {
|
||||
|
||||
private List<Long> userIds;
|
||||
|
||||
}
|
||||
+3
-1
@@ -1,5 +1,6 @@
|
||||
package com.bsd.pjcloud.wallet.mapper;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.bsd.pjcloud.common.data.datascope.PjcloudBaseMapper;
|
||||
@@ -37,7 +38,8 @@ public interface WalletManageMapper extends PjcloudBaseMapper<WalletManageEntity
|
||||
.eqIfExists(WalletManageEntity::getUserId, dto.getUserId())
|
||||
.eqIfExists(WalletManageEntity::getWalletTypeId, dto.getWalletTypeId())
|
||||
.eqIfExists(WalletManageEntity::getIsFreeze, dto.getIsFreeze())
|
||||
.likeIfExists(WalletManageEntity::getCardNumber, dto.getCardNumber());
|
||||
.likeIfExists(WalletManageEntity::getCardNumber, dto.getCardNumber())
|
||||
.in(ObjectUtil.isNotEmpty(dto.getUserIds()), WalletManageEntity::getUserId, dto.getUserIds());
|
||||
return selectJoinPage(page, WalletManageVo.class, wrapper);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user