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
35458a49
Commit
35458a49
authored
Jun 16, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
a84a7e52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
TzsUserInfoVo.java
...om/yeejoin/amos/boot/module/tzs/api/vo/TzsUserInfoVo.java
+3
-1
TzsUserInfoMapper.xml
...e-tzs-api/src/main/resources/mapper/TzsUserInfoMapper.xml
+2
-0
TzsUserInfoServiceImpl.java
...t/module/tzs/biz/service/impl/TzsUserInfoServiceImpl.java
+23
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/vo/TzsUserInfoVo.java
View file @
35458a49
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
vo
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
lombok.Data
;
...
...
@@ -38,7 +40,7 @@ public class TzsUserInfoVo {
* 岗位
*/
@TableField
(
"post"
)
private
String
post
;
private
JSONArray
post
;
/**
* 联系电话
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/TzsUserInfoMapper.xml
View file @
35458a49
...
...
@@ -45,5 +45,6 @@
and post like concat('%',#{dto.post},'%')
</if>
</where>
order by rec_date
</select>
</mapper>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TzsUserInfoServiceImpl.java
View file @
35458a49
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
...
...
@@ -44,6 +46,9 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
private
RedisUtils
redisUtils
;
@Autowired
private
DataDictionaryMapper
dataDictionaryMapper
;
@Autowired
private
TzsUserQualificationsServiceImpl
tzsUserQualificationsService
;
@Override
public
Page
<
TzsUserInfoDto
>
page
(
TzsUserInfoDto
dto
,
Page
<
TzsUserInfoDto
>
page
)
{
...
...
@@ -57,6 +62,20 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
int
age
=
getAge
(
item
.
getBirthday
());
item
.
setAge
(
Math
.
max
(
age
,
0
));
}
if
(!
ObjectUtils
.
isEmpty
(
item
.
getPost
())){
JSONArray
objects
=
JSON
.
parseArray
(
item
.
getPost
());
item
.
setPost
(
null
);
LambdaQueryWrapper
<
DataDictionary
>
lambda
=
new
QueryWrapper
<
DataDictionary
>().
lambda
();
lambda
.
in
(
DataDictionary:
:
getSequenceNbr
,
objects
);
List
<
DataDictionary
>
dataDictionaries
=
dataDictionaryMapper
.
selectList
(
lambda
);
dataDictionaries
.
forEach
(
post
->{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getPost
())){
item
.
setPost
(
item
.
getPost
()
+
","
+
post
.
getName
());
}
else
{
item
.
setPost
(
post
.
getName
());
}
});
}
});
return
tzsUserInfoDtoPage
;
}
...
...
@@ -125,7 +144,10 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
Map
<
String
,
Object
>
maps
=
new
HashMap
<>();
TzsUserInfo
tzsUserInfo
=
tzsUserInfoMapper
.
selectById
(
id
);
TzsUserInfoVo
tzsUserInfoVo
=
new
TzsUserInfoVo
();
BeanUtils
.
copyProperties
(
tzsUserInfo
,
tzsUserInfoVo
,
"identification"
,
"profile"
);
BeanUtils
.
copyProperties
(
tzsUserInfo
,
tzsUserInfoVo
,
"identification"
,
"profile"
,
"post"
);
if
(!
ObjectUtils
.
isEmpty
(
tzsUserInfo
.
getPost
())){
tzsUserInfoVo
.
setPost
(
JSON
.
parseArray
(
tzsUserInfo
.
getPost
()));
}
tzsUserInfoVo
.
setIdentification
(
ObjectUtils
.
isEmpty
(
tzsUserInfo
.
getIdentification
())
?
new
ArrayList
()
:
JSON
.
parseArray
(
tzsUserInfo
.
getIdentification
()));
tzsUserInfoVo
.
setProfile
(
ObjectUtils
.
isEmpty
(
tzsUserInfo
.
getProfile
())
?
new
ArrayList
()
:
JSON
.
parseArray
(
tzsUserInfo
.
getProfile
()));
maps
.
put
(
"userInfo"
,
tzsUserInfoVo
);
...
...
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