Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
3acb0131
Commit
3acb0131
authored
Nov 06, 2021
by
季圣华
Browse files
解决用户配置仓库和客户的bug
parent
0131346a
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java
View file @
3acb0131
...
...
@@ -79,6 +79,7 @@ public class UserBusinessService {
}
String
value
=
userBusiness
.
getValue
();
String
newValue
=
value
.
replaceAll
(
","
,
"\\]\\["
);
newValue
=
newValue
.
replaceAll
(
"[0]"
,
""
).
replaceAll
(
"\\[\\]"
,
""
);
userBusiness
.
setValue
(
newValue
);
result
=
userBusinessMapper
.
insertSelective
(
userBusiness
);
logService
.
insertLog
(
"关联关系"
,
BusinessConstants
.
LOG_OPERATION_TYPE_ADD
,
request
);
...
...
@@ -95,6 +96,7 @@ public class UserBusinessService {
try
{
String
value
=
userBusiness
.
getValue
();
String
newValue
=
value
.
replaceAll
(
","
,
"\\]\\["
);
newValue
=
newValue
.
replaceAll
(
"[0]"
,
""
).
replaceAll
(
"\\[\\]"
,
""
);
userBusiness
.
setValue
(
newValue
);
result
=
userBusinessMapper
.
updateByPrimaryKeySelective
(
userBusiness
);
logService
.
insertLog
(
"关联关系"
,
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
,
request
);
...
...
Write
Preview
Supports
Markdown
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