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
a692f2bb
Commit
a692f2bb
authored
Nov 06, 2021
by
季圣华
Browse files
解决用户配置仓库和客户的bug
parent
3acb0131
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java
View file @
a692f2bb
...
@@ -79,7 +79,7 @@ public class UserBusinessService {
...
@@ -79,7 +79,7 @@ public class UserBusinessService {
}
}
String
value
=
userBusiness
.
getValue
();
String
value
=
userBusiness
.
getValue
();
String
newValue
=
value
.
replaceAll
(
","
,
"\\]\\["
);
String
newValue
=
value
.
replaceAll
(
","
,
"\\]\\["
);
newValue
=
newValue
.
replaceAll
(
"
[0
]"
,
""
).
replaceAll
(
"\\[\\]"
,
""
);
newValue
=
newValue
.
replaceAll
(
"
\\[0\\
]"
,
""
).
replaceAll
(
"\\[\\]"
,
""
);
userBusiness
.
setValue
(
newValue
);
userBusiness
.
setValue
(
newValue
);
result
=
userBusinessMapper
.
insertSelective
(
userBusiness
);
result
=
userBusinessMapper
.
insertSelective
(
userBusiness
);
logService
.
insertLog
(
"关联关系"
,
BusinessConstants
.
LOG_OPERATION_TYPE_ADD
,
request
);
logService
.
insertLog
(
"关联关系"
,
BusinessConstants
.
LOG_OPERATION_TYPE_ADD
,
request
);
...
@@ -96,7 +96,7 @@ public class UserBusinessService {
...
@@ -96,7 +96,7 @@ public class UserBusinessService {
try
{
try
{
String
value
=
userBusiness
.
getValue
();
String
value
=
userBusiness
.
getValue
();
String
newValue
=
value
.
replaceAll
(
","
,
"\\]\\["
);
String
newValue
=
value
.
replaceAll
(
","
,
"\\]\\["
);
newValue
=
newValue
.
replaceAll
(
"
[0
]"
,
""
).
replaceAll
(
"\\[\\]"
,
""
);
newValue
=
newValue
.
replaceAll
(
"
\\[0\\
]"
,
""
).
replaceAll
(
"\\[\\]"
,
""
);
userBusiness
.
setValue
(
newValue
);
userBusiness
.
setValue
(
newValue
);
result
=
userBusinessMapper
.
updateByPrimaryKeySelective
(
userBusiness
);
result
=
userBusinessMapper
.
updateByPrimaryKeySelective
(
userBusiness
);
logService
.
insertLog
(
"关联关系"
,
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
,
request
);
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