Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
项目统一框架
amos-boot-biz
Commits
aed280e3
Commit
aed280e3
authored
Nov 24, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、新引入hutool依赖。
2、基础管理-获取人员新增接口增加type参数用于区分是查看还是编辑页面调用。 3、人员身份证信息、密码、二次密码根据实际情况返回。
parent
00840374
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
pom.xml
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/pom.xml
+5
-0
PersonBasicController.java
...ot/module/jxiop/biz/controller/PersonBasicController.java
+2
-2
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+8
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/pom.xml
View file @
aed280e3
...
...
@@ -47,6 +47,11 @@
<version>
2.4
</version>
<classifier>
jdk15
</classifier>
</dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
<version>
5.7.22
</version>
</dependency>
</dependencies>
<build>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/PersonBasicController.java
View file @
aed280e3
...
...
@@ -140,8 +140,8 @@ public class PersonBasicController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个人员基本信息"
,
notes
=
"根据sequenceNbr查询单个人员基本信息"
)
public
ResponseModel
<
PersonDto
>
selectOne
(
@
PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
personBasicServiceImpl
.
getPerson
(
sequenceNbr
));
public
ResponseModel
<
PersonDto
>
selectOne
(
@
RequestParam
Long
sequenceNbr
,
@RequestParam
String
type
)
{
return
ResponseHelper
.
buildResponse
(
personBasicServiceImpl
.
getPerson
(
sequenceNbr
,
type
));
}
/**
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
aed280e3
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
cn.hutool.core.util.DesensitizedUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
...
@@ -545,7 +546,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
}
@Transactional
public
PersonDto
getPerson
(
Long
sequenceNbr
)
{
public
PersonDto
getPerson
(
Long
sequenceNbr
,
String
type
)
{
PersonDto
personDto
=
new
PersonDto
();
PersonUser
personUser
=
new
PersonUser
();
QueryWrapper
<
PersonBasic
>
wrapper1
=
new
QueryWrapper
();
...
...
@@ -574,8 +575,12 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
PersonAccount
personAccount
=
personAccountService
.
getOne
(
wrapper4
);
personAccount
.
setPhoneNum
(
personBasic
.
getPhone
());
//对于密码进行解密
personAccount
.
setPassword
(
DesUtil
.
decode
(
personAccount
.
getPassword
(),
secretKey
));
personAccount
.
setSecondaryPassword
(
DesUtil
.
decode
(
personAccount
.
getSecondaryPassword
(),
secretKey
));
if
(
"look"
.
equals
(
type
)){
personAccount
.
setIdNumber
(
DesensitizedUtil
.
idCardNum
(
personAccount
.
getIdNumber
(),
0
,
4
));
}
else
{
personAccount
.
setPassword
(
DesUtil
.
decode
(
personAccount
.
getPassword
(),
secretKey
));
personAccount
.
setSecondaryPassword
(
DesUtil
.
decode
(
personAccount
.
getSecondaryPassword
(),
secretKey
));
}
if
(
personBasic
.
getNativePlace
()
!=
null
)
{
personUser
.
setNativePlace
(
JSON
.
parseArray
(
personBasic
.
getNativePlace
(),
Integer
.
class
));
}
...
...
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