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
92d2b882
Commit
92d2b882
authored
May 13, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm):人员新增接口修改
parent
1402d73e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
TzsUserInfoController.java
...boot/module/tcm/biz/controller/TzsUserInfoController.java
+4
-0
TzsUserInfoServiceImpl.java
...t/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
+1
-7
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzsUserInfoController.java
View file @
92d2b882
...
...
@@ -92,6 +92,8 @@ public class TzsUserInfoController extends BaseController {
tzsUserInfo
.
setUnitCode
(
companyModel
.
getCompanyCode
());
tzsUserInfo
.
setAppointDoc
(
tzsUserInfo
.
getAppointDoc
());
tzsUserInfo
.
setRecDate
(
new
Date
());
// 兼容前端只传一个值,并且非json类型的情况
tzsUserInfo
.
setPost
(
tzsUserInfoServiceImpl
.
isJSONValid
(
tzsUserInfo
.
getPost
())
?
tzsUserInfo
.
getPost
()
:
"[\""
+
tzsUserInfo
.
getPost
()
+
"\"]"
);
tzsUserInfo
.
setPostName
(
tzsUserInfoServiceImpl
.
setPostName
(
tzsUserInfo
.
getPost
()));
tzsUserInfo
=
tzsUserInfoServiceImpl
.
createWithModel
(
tzsUserInfo
);
return
ResponseHelper
.
buildResponse
(
tzsUserInfo
);
...
...
@@ -146,6 +148,8 @@ public class TzsUserInfoController extends BaseController {
tzsUserInfo
.
setUnitCode
(
companyModel
.
getCompanyCode
());
tzsUserInfo
.
setSequenceNbr
(
rowId
);
tzsUserInfo
.
setRecDate
(
new
Date
());
// 兼容前端只传一个值,并且非json类型的情况
tzsUserInfo
.
setPost
(
tzsUserInfoServiceImpl
.
isJSONValid
(
tzsUserInfo
.
getPost
())
?
tzsUserInfo
.
getPost
()
:
"[\""
+
tzsUserInfo
.
getPost
()
+
"\"]"
);
String
postName
=
tzsUserInfoServiceImpl
.
setPostName
(
tzsUserInfo
.
getPost
());
tzsUserInfo
.
setPostName
(
postName
);
if
(!
ObjectUtils
.
isEmpty
(
selectOne
.
getAmosUserId
())){
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
View file @
92d2b882
...
...
@@ -110,13 +110,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
}
public
String
setPostName
(
String
postKey
)
{
// 兼容前端只传一个值,并且非json类型的情况
JSONArray
dictIds
=
new
JSONArray
();
if
(
this
.
isJSONValid
(
postKey
))
{
dictIds
=
JSON
.
parseArray
(
postKey
);
}
else
{
dictIds
.
add
(
postKey
);
}
JSONArray
dictIds
=
JSON
.
parseArray
(
postKey
);
if
(
dictIds
==
null
||
dictIds
.
isEmpty
())
{
return
""
;
}
...
...
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