Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lei
fzm-joying
Commits
fbcc355c
Commit
fbcc355c
authored
May 24, 2022
by
33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户展示的顺序为倒序
parent
cc610555
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
25 deletions
+2
-25
UserServiceImpl.java
...ain/java/com/fzm/common/service/impl/UserServiceImpl.java
+0
-24
UserMapper.xml
joying-common/src/main/resources/mapper/UserMapper.xml
+2
-1
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/UserServiceImpl.java
View file @
fbcc355c
...
...
@@ -309,28 +309,4 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
return
userMapper
.
list
(
telephone
,
nickname
,
authType
,
startDate
,
endDate
);
}
public
static
void
main
(
String
[]
args
)
{
try
{
// 实例化一个认证对象,入参需要传入腾讯云账户secretId,secretKey,此处还需注意密钥对的保密
// 密钥可前往https://console.cloud.tencent.com/cam/capi网站进行获取
Credential
cred
=
new
Credential
(
"SecretId"
,
"SecretKey"
);
// 实例化一个http选项,可选的,没有特殊需求可以跳过
HttpProfile
httpProfile
=
new
HttpProfile
();
httpProfile
.
setEndpoint
(
"faceid.tencentcloudapi.com"
);
// 实例化一个client选项,可选的,没有特殊需求可以跳过
ClientProfile
clientProfile
=
new
ClientProfile
();
clientProfile
.
setHttpProfile
(
httpProfile
);
// 实例化要请求产品的client对象,clientProfile是可选的
FaceidClient
client
=
new
FaceidClient
(
cred
,
""
,
clientProfile
);
// 实例化一个请求对象,每个接口都会对应一个request对象
IdCardOCRVerificationRequest
req
=
new
IdCardOCRVerificationRequest
();
// 返回的resp是一个IdCardOCRVerificationResponse的实例,与请求对象对应
IdCardOCRVerificationResponse
resp
=
client
.
IdCardOCRVerification
(
req
);
// 输出json格式的字符串回包
System
.
out
.
println
(
IdCardOCRVerificationResponse
.
toJsonString
(
resp
));
}
catch
(
TencentCloudSDKException
e
)
{
System
.
out
.
println
(
e
);
}
}
}
joying-common/src/main/resources/mapper/UserMapper.xml
View file @
fbcc355c
...
...
@@ -12,7 +12,6 @@
(select count(0) from tb_nft n where u.wallet = n.publish_address and n.nft_hash != '') as publishCount
FROM tb_user u
<where>
1=1
<if
test=
"telephone != null and telephone != ''"
>
and u.telephone = #{telephone}
</if>
...
...
@@ -29,5 +28,6 @@
and u.create_date
<
= #{endDate}
</if>
</where>
order by u.id desc
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment