新增用户实名认证模块

This commit is contained in:
2025-05-30 18:49:38 +08:00
parent eeb15ced27
commit 555185a9b9
6 changed files with 53 additions and 22 deletions

View File

@@ -155,7 +155,7 @@ public class AliOssController extends BaseController {
result.setLength(upload.length());
result.setPath(bucketDomain + path);
result.setThumbnail(bucketDomain + path + "?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90");
result.setUrl(bucketDomain + path + "?x-oss-process=image/resize,w_1680/quality,Q_90");
result.setUrl(bucketDomain + path + "?x-oss-process=image/resize,w_750/quality,Q_90");
result.setDownloadUrl(bucketDomain + path);
String contentType = FileServerUtil.getContentType(upload);
result.setContentType(contentType);

View File

@@ -1,11 +1,6 @@
package com.gxwebsoft.common.system.controller;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.aliyun.oss.common.auth.CredentialsProvider;
import com.aliyun.oss.common.auth.DefaultCredentialProvider;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.core.config.ConfigProperties;
import com.gxwebsoft.common.core.utils.FileServerUtil;
@@ -13,7 +8,6 @@ import com.gxwebsoft.common.core.utils.RedisUtil;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.system.entity.Company;
import com.gxwebsoft.common.system.entity.FileRecord;
import com.gxwebsoft.common.system.param.FileRecordParam;
import com.gxwebsoft.common.system.service.CompanyService;
@@ -266,7 +260,8 @@ public class FileController extends BaseController {
if (FileServerUtil.isImage(record.getContentType())) {
record.setThumbnail(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90");
record.setPath(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90");
record.setUrl(record.getDownloadUrl() + "?x-oss-process=image/resize,m_fixed,w_1680/quality,Q_90");
record.setUrl(record.getDownloadUrl() + "?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90");
record.setBigImage(record.getDownloadUrl() + "?x-oss-process=image/resize,m_fixed,w_2000/quality,Q_90");
}
}
@@ -286,7 +281,8 @@ public class FileController extends BaseController {
if (FileServerUtil.isImage(record.getContentType())) {
record.setThumbnail(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90");
record.setPath(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90");
record.setUrl(record.getDownloadUrl() + "?x-oss-process=image/resize,m_fixed,w_1680/quality,Q_90");
record.setUrl(record.getDownloadUrl() + "?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90");
record.setBigImage(record.getDownloadUrl() + "?x-oss-process=image/resize,m_fixed,w_2000/quality,Q_90");
}
}
}

View File

@@ -83,6 +83,10 @@ public class FileRecord implements Serializable {
@TableField(exist = false)
private String thumbnail;
@ApiModelProperty("大图(用于PC端的banner等)")
@TableField(exist = false)
private String bigImage;
@ApiModelProperty("文件下载地址")
@TableField(exist = false)
private String downloadUrl;

View File

@@ -1,11 +1,9 @@
package com.gxwebsoft.common.system.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
@@ -37,6 +35,9 @@ public class UserVerify implements Serializable {
@ApiModelProperty(value = "认证类型, 0个人 1企业")
private Integer type;
@ApiModelProperty(value = "主体名称")
private String name;
@ApiModelProperty(value = "真实姓名")
private String realName;
@@ -52,8 +53,17 @@ public class UserVerify implements Serializable {
@ApiModelProperty(value = "反面")
private String sfz2;
@ApiModelProperty(value = "企业名称")
private String company;
@ApiModelProperty(value = "营业执照号码")
private String zzCode;
@ApiModelProperty(value = "营业执照照片")
private String zzImg;
@ApiModelProperty(value = "其他证件")
private String files;
@ApiModelProperty(value = "审核人")
private Integer adminId;
@ApiModelProperty(value = "备注")
private String comments;
@@ -74,4 +84,8 @@ public class UserVerify implements Serializable {
@ApiModelProperty(value = "修改时间")
private Date updateTime;
@ApiModelProperty(value = "手机号码")
@TableField(exist = false)
private String phone;
}

View File

@@ -4,8 +4,9 @@
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
SELECT a.*, b.phone
FROM sys_user_verify a
LEFT JOIN sys_user b ON a.user_id = b.user_id
<where>
<if test="param.id != null">
AND a.id = #{param.id}
@@ -16,6 +17,9 @@
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.realName != null">
AND a.real_name LIKE CONCAT('%', #{param.realName}, '%')
</if>
@@ -26,13 +30,13 @@
AND a.birthday LIKE CONCAT('%', #{param.birthday}, '%')
</if>
<if test="param.sfz1 != null">
AND a.sfz_1 LIKE CONCAT('%', #{param.sfz1}, '%')
AND a.sfz1 LIKE CONCAT('%', #{param.sfz1}, '%')
</if>
<if test="param.sfz2 != null">
AND a.sfz_2 LIKE CONCAT('%', #{param.sfz2}, '%')
AND a.sfz2 LIKE CONCAT('%', #{param.sfz2}, '%')
</if>
<if test="param.company != null">
AND a.company LIKE CONCAT('%', #{param.company}, '%')
<if test="param.zzCode != null">
AND a.zz_code = #{param.zzCode}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
@@ -52,6 +56,14 @@
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.real_name LIKE CONCAT('%', #{param.keywords}, '%')
OR b.phone = #{param.keywords}
OR a.id_card = #{param.keywords}
OR a.zz_code = #{param.keywords}
)
</if>
</where>
</sql>

View File

@@ -34,6 +34,10 @@ public class UserVerifyParam extends BaseParam {
@QueryField(type = QueryType.EQ)
private Integer type;
@ApiModelProperty(value = "主体名称")
@QueryField(type = QueryType.LIKE)
private String name;
@ApiModelProperty(value = "真实姓名")
private String realName;
@@ -49,8 +53,9 @@ public class UserVerifyParam extends BaseParam {
@ApiModelProperty(value = "反面")
private String sfz2;
@ApiModelProperty(value = "企业名称")
private String company;
@ApiModelProperty(value = "营业执照号码")
@QueryField(type = QueryType.EQ)
private String zzCode;
@ApiModelProperty(value = "备注")
private String comments;