2
0

feat: add real name column while kyc

This commit is contained in:
zhangsz
2025-01-16 11:53:44 +08:00
parent d5e3533d2d
commit 807fc6cbda
5 changed files with 8 additions and 9 deletions

View File

@@ -27,6 +27,9 @@ public class UKyc extends BaseData {
@Schema(description = "User ID") @Schema(description = "User ID")
private Long userId; private Long userId;
@Schema(description = "Real Name")
private Long realName;
@Schema(description = "Birth Date") @Schema(description = "Birth Date")
private String birthDate; private String birthDate;

View File

@@ -9,7 +9,7 @@ import lombok.Data;
@Data @Data
public class UKycUserBo { public class UKycUserBo {
private Long userId; private Long userId;
private String userName; private String realName;
private Integer status; private Integer status;
private String createTimeStart; private String createTimeStart;
private String createTimeEnd; private String createTimeEnd;

View File

@@ -9,7 +9,7 @@ import org.wfc.system.domain.constant.KycStatusEnum;
public class UKycUserVo { public class UKycUserVo {
private Long kycId; private Long kycId;
private Long userId; private Long userId;
private String userName; private String realName;
private String birthDate; private String birthDate;
private IdTypeEnum idType; private IdTypeEnum idType;
private String idFile; private String idFile;

View File

@@ -14,7 +14,6 @@ import org.wfc.system.domain.bo.UKycUserBo;
* 用户平台-KYC表 Mapper 接口 * 用户平台-KYC表 Mapper 接口
* </p> * </p>
* *
* @author sys
* @since 2025-01-08 * @since 2025-01-08
*/ */
@DS("user") @DS("user")

View File

@@ -6,7 +6,7 @@
SELECT SELECT
k.kyc_id, k.kyc_id,
k.user_id, k.user_id,
u.user_name, u.full_name,
k.birth_date, k.birth_date,
k.id_type, k.id_type,
k.id_file, k.id_file,
@@ -24,11 +24,8 @@
<if test="item.userId != null and item.userId != ''"> <if test="item.userId != null and item.userId != ''">
AND k.user_id = #{item.userId} AND k.user_id = #{item.userId}
</if> </if>
<if test="item.userName != null and item.userName != ''"> <if test="item.fullName != null and item.fullName != ''">
AND u.user_name like concat('%', #{item.userName}, '%') AND u.full_name like concat('%', #{item.fullName}, '%')
</if>
<if test="item.userName != null and item.userName != ''">
AND u.user_name like concat('%', #{item.userName}, '%')
</if> </if>
<if test="item.status != null and item.status != ''"> <if test="item.status != null and item.status != ''">
AND k.`status` = #{item.status} AND k.`status` = #{item.status}