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
b3a8282d
Commit
b3a8282d
authored
Apr 08, 2020
by
季圣华
Browse files
解决bug:删除商品后重新创建同个商品提示“商品信息已存在”
parent
a3382bd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/material/MaterialService.java
View file @
b3a8282d
...
...
@@ -267,7 +267,8 @@ public class MaterialService {
MaterialExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andNameEqualTo
(
name
).
andModelEqualTo
(
model
).
andColorEqualTo
(
color
)
.
andStandardEqualTo
(
standard
).
andMfrsEqualTo
(
mfrs
)
.
andOtherfield1EqualTo
(
otherField1
).
andOtherfield2EqualTo
(
otherField2
).
andOtherfield2EqualTo
(
otherField3
);
.
andOtherfield1EqualTo
(
otherField1
).
andOtherfield2EqualTo
(
otherField2
).
andOtherfield2EqualTo
(
otherField3
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
if
(
id
>
0
)
{
criteria
.
andIdNotEqualTo
(
id
);
}
...
...
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