Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
3cf35184
提交
3cf35184
authored
8月 04, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
实名认证修改
上级
e9c40eb6
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
40 行增加
和
6 行删除
+40
-6
UserAccountQO.java
...c/main/java/com/mmc/iuav/user/model/qo/UserAccountQO.java
+1
-1
RealNameAuthController.java
.../com/mmc/iuav/user/controller/RealNameAuthController.java
+7
-0
RealNameAuthDao.java
.../src/main/java/com/mmc/iuav/user/dao/RealNameAuthDao.java
+2
-0
RealNameAuthService.java
...n/java/com/mmc/iuav/user/service/RealNameAuthService.java
+3
-1
RealNameAuthServiceImpl.java
...m/mmc/iuav/user/service/impl/RealNameAuthServiceImpl.java
+7
-1
RealNameAuthDao.xml
...ervice-user/src/main/resources/mapper/RealNameAuthDao.xml
+7
-3
UserServiceDao.xml
...service-user/src/main/resources/mapper/UserServiceDao.xml
+13
-0
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/qo/UserAccountQO.java
浏览文件 @
3cf35184
...
@@ -44,7 +44,7 @@ public class UserAccountQO implements Serializable {
...
@@ -44,7 +44,7 @@ public class UserAccountQO implements Serializable {
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2023-10-18 23:59:59"
)
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2023-10-18 23:59:59"
)
private
String
endTime
;
private
String
endTime
;
@ApiModelProperty
(
value
=
"实名认证状态(0未通过,1通过)"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"实名认证状态(0未通过,1通过)"
)
private
Integer
realAuthStatus
;
private
Integer
realAuthStatus
;
@ApiModelProperty
(
value
=
"企业认证状态(0未通过,1通过)"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"企业认证状态(0未通过,1通过)"
,
example
=
"1"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/RealNameAuthController.java
浏览文件 @
3cf35184
...
@@ -55,4 +55,11 @@ public class RealNameAuthController extends BaseController {
...
@@ -55,4 +55,11 @@ public class RealNameAuthController extends BaseController {
public
ResultBody
listPage
(
@RequestBody
RealNameAuthQO
realNameAuthQO
)
{
public
ResultBody
listPage
(
@RequestBody
RealNameAuthQO
realNameAuthQO
)
{
return
realNameAuthService
.
listPage
(
realNameAuthQO
);
return
realNameAuthService
.
listPage
(
realNameAuthQO
);
}
}
@ApiOperation
(
value
=
"备注修改"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"updateRemark"
)
public
ResultBody
updateRemark
(
@RequestParam
Integer
id
,
@RequestParam
(
required
=
false
)
String
remark
)
{
return
realNameAuthService
.
updateRealNameAuthRemark
(
id
,
remark
);
}
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/RealNameAuthDao.java
浏览文件 @
3cf35184
...
@@ -31,4 +31,6 @@ public interface RealNameAuthDao {
...
@@ -31,4 +31,6 @@ public interface RealNameAuthDao {
List
<
RealNameAuthDO
>
listRealNameAuth
(
RealNameAuthQO
realNameAuthQO
);
List
<
RealNameAuthDO
>
listRealNameAuth
(
RealNameAuthQO
realNameAuthQO
);
RealNameAuthDO
userDetail
(
Integer
userAccountId
);
RealNameAuthDO
userDetail
(
Integer
userAccountId
);
void
updateRealNameAuthRemark
(
Integer
id
,
String
remark
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/RealNameAuthService.java
浏览文件 @
3cf35184
...
@@ -15,7 +15,9 @@ public interface RealNameAuthService {
...
@@ -15,7 +15,9 @@ public interface RealNameAuthService {
ResultBody
<
RealNameAuthDetailDTO
>
detail
(
Integer
id
);
ResultBody
<
RealNameAuthDetailDTO
>
detail
(
Integer
id
);
ResultBody
listPage
(
RealNameAuthQO
realNameAuthQO
);
ResultBody
<
RealNameAuthDTO
>
listPage
(
RealNameAuthQO
realNameAuthQO
);
ResultBody
<
RealNameAuthDTO
>
userDetail
(
Integer
userAccountId
);
ResultBody
<
RealNameAuthDTO
>
userDetail
(
Integer
userAccountId
);
ResultBody
updateRealNameAuthRemark
(
Integer
id
,
String
remark
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/RealNameAuthServiceImpl.java
浏览文件 @
3cf35184
...
@@ -124,7 +124,7 @@ public class RealNameAuthServiceImpl implements RealNameAuthService {
...
@@ -124,7 +124,7 @@ public class RealNameAuthServiceImpl implements RealNameAuthService {
}
}
@Override
@Override
public
ResultBody
listPage
(
RealNameAuthQO
realNameAuthQO
)
{
public
ResultBody
<
RealNameAuthDTO
>
listPage
(
RealNameAuthQO
realNameAuthQO
)
{
int
count
=
realNameAuthDao
.
countListRealNameAuth
(
realNameAuthQO
);
int
count
=
realNameAuthDao
.
countListRealNameAuth
(
realNameAuthQO
);
if
(
count
==
0
)
{
if
(
count
==
0
)
{
return
ResultBody
.
success
(
PageResult
.
buildPage
(
realNameAuthQO
.
getPageNo
(),
realNameAuthQO
.
getPageSize
(),
count
));
return
ResultBody
.
success
(
PageResult
.
buildPage
(
realNameAuthQO
.
getPageNo
(),
realNameAuthQO
.
getPageSize
(),
count
));
...
@@ -147,6 +147,12 @@ public class RealNameAuthServiceImpl implements RealNameAuthService {
...
@@ -147,6 +147,12 @@ public class RealNameAuthServiceImpl implements RealNameAuthService {
return
ResultBody
.
success
();
return
ResultBody
.
success
();
}
}
@Override
public
ResultBody
updateRealNameAuthRemark
(
Integer
id
,
String
remark
)
{
realNameAuthDao
.
updateRealNameAuthRemark
(
id
,
remark
);
return
ResultBody
.
success
();
}
public
Date
getDate
(
String
str
,
String
format
)
{
public
Date
getDate
(
String
str
,
String
format
)
{
Date
date
=
null
;
Date
date
=
null
;
try
{
try
{
...
...
csm-service/cms-service-user/src/main/resources/mapper/RealNameAuthDao.xml
浏览文件 @
3cf35184
...
@@ -69,6 +69,10 @@
...
@@ -69,6 +69,10 @@
where id = #{id}
where id = #{id}
</update>
</update>
<update
id=
"updateRealNameAuthRemark"
>
update real_name_auth set remark = #{remark} where id = #{id}
</update>
<select
id=
"existHasBeenAuth"
resultType=
"java.lang.Integer"
>
<select
id=
"existHasBeenAuth"
resultType=
"java.lang.Integer"
>
select count(*) from real_name_auth where union_id
<![CDATA[<>]]>
#{unionId} and id_number = #{idNumber} and check_status = 1
select count(*) from real_name_auth where union_id
<![CDATA[<>]]>
#{unionId} and id_number = #{idNumber} and check_status = 1
</select>
</select>
...
@@ -110,7 +114,7 @@
...
@@ -110,7 +114,7 @@
<if
test=
"keyword != null and keyword != '' "
>
<if
test=
"keyword != null and keyword != '' "
>
and ( ua.id like concat('%',#{keyword},'%')
and ( ua.id like concat('%',#{keyword},'%')
or
or
u
a.user_name like concat('%',#{keyword},'%')
rn
a.user_name like concat('%',#{keyword},'%')
or ua.phone_num like
or ua.phone_num like
concat('%',#{keyword},'%')
concat('%',#{keyword},'%')
)
)
...
@@ -123,14 +127,14 @@
...
@@ -123,14 +127,14 @@
<select
id=
"listRealNameAuth"
resultType=
"com.mmc.iuav.user.entity.RealNameAuthDO"
<select
id=
"listRealNameAuth"
resultType=
"com.mmc.iuav.user.entity.RealNameAuthDO"
parameterType=
"com.mmc.iuav.user.model.qo.RealNameAuthQO"
>
parameterType=
"com.mmc.iuav.user.model.qo.RealNameAuthQO"
>
select
select
rna.id,rna.user_account_id,ua.nick_name,rna.user_name,ua.phone_num,rna.check_status,rna.create_time,
u
a.remark
rna.id,rna.user_account_id,ua.nick_name,rna.user_name,ua.phone_num,rna.check_status,rna.create_time,
rn
a.remark
from user_account ua inner join real_name_auth rna on
from user_account ua inner join real_name_auth rna on
ua.id=rna.user_account_id
ua.id=rna.user_account_id
where ua.`disable` = 0
where ua.`disable` = 0
<if
test=
"keyword != null and keyword != '' "
>
<if
test=
"keyword != null and keyword != '' "
>
and ( ua.id like concat('%',#{keyword},'%')
and ( ua.id like concat('%',#{keyword},'%')
or
or
u
a.user_name like concat('%',#{keyword},'%')
rn
a.user_name like concat('%',#{keyword},'%')
or ua.phone_num like
or ua.phone_num like
concat('%',#{keyword},'%')
concat('%',#{keyword},'%')
)
)
...
...
csm-service/cms-service-user/src/main/resources/mapper/UserServiceDao.xml
浏览文件 @
3cf35184
...
@@ -257,6 +257,7 @@
...
@@ -257,6 +257,7 @@
user_account ua
user_account ua
LEFT JOIN company_member cm ON cm.user_account_id = ua.id
LEFT JOIN company_member cm ON cm.user_account_id = ua.id
LEFT JOIN company_info ci ON ci.id = cm.company_info_id
LEFT JOIN company_info ci ON ci.id = cm.company_info_id
LEFT JOIN real_name_auth rna ON rna.user_account_id = ua.id
WHERE
WHERE
ua.disable = 0 and ua.port_type = 100
ua.disable = 0 and ua.port_type = 100
<if
test=
"companyInfoId != null"
>
<if
test=
"companyInfoId != null"
>
...
@@ -271,6 +272,12 @@
...
@@ -271,6 +272,12 @@
<if
test=
"companyAuthStatus == 1"
>
<if
test=
"companyAuthStatus == 1"
>
AND ci.company_name is not null
AND ci.company_name is not null
</if>
</if>
<if
test=
"realAuthStatus == 1"
>
AND rna.check_status = #{realAuthStatus}
</if>
<if
test=
"companyAuthStatus == 1"
>
AND ( rna.check_status is not null or rna.check_status = 0 )
</if>
<if
test=
"startTime != null "
>
<if
test=
"startTime != null "
>
AND ua.create_time >= #{startTime}
AND ua.create_time >= #{startTime}
</if>
</if>
...
@@ -336,6 +343,12 @@
...
@@ -336,6 +343,12 @@
<if
test=
"companyAuthStatus == 1"
>
<if
test=
"companyAuthStatus == 1"
>
AND ci.company_name is not null
AND ci.company_name is not null
</if>
</if>
<if
test=
"realAuthStatus == 1"
>
AND rna.check_status = #{realAuthStatus}
</if>
<if
test=
"companyAuthStatus == 1"
>
AND ( rna.check_status is not null or rna.check_status = 0 )
</if>
<if
test=
"startTime != null "
>
<if
test=
"startTime != null "
>
AND ua.create_time >= #{startTime}
AND ua.create_time >= #{startTime}
</if>
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论