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
5c029641
Commit
5c029641
authored
Sep 29, 2022
by
季圣华
Browse files
优化序列号新增的时候的判断,过滤序列号外的空格
parent
c503b9c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/serialNumber/SerialNumberService.java
View file @
5c029641
...
...
@@ -406,7 +406,7 @@ public class SerialNumberService {
for
(
String
sn
:
snArr
)
{
List
<
SerialNumber
>
list
=
new
ArrayList
<>();
SerialNumberExample
example
=
new
SerialNumberExample
();
example
.
createCriteria
().
andMaterialIdEqualTo
(
materialId
).
andSerialNumberEqualTo
(
sn
).
andIsSellEqualTo
(
"0"
)
example
.
createCriteria
().
andMaterialIdEqualTo
(
materialId
).
andSerialNumberEqualTo
(
sn
.
trim
()
).
andIsSellEqualTo
(
"0"
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
list
=
serialNumberMapper
.
selectByExample
(
example
);
//判断如果不存在重复序列号就新增
...
...
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