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
c7d1ea4e
Commit
c7d1ea4e
authored
Jul 23, 2021
by
季圣华
Browse files
优化多属性模块
parent
8ca5c9bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/materialAttribute/MaterialAttributeService.java
View file @
c7d1ea4e
...
...
@@ -74,6 +74,7 @@ public class MaterialAttributeService {
materialAttribute
.
setAttributeName
(
map
.
get
(
field
));
for
(
MaterialAttribute
ma:
maList
)
{
if
(
field
.
equals
(
ma
.
getAttributeField
())){
materialAttribute
.
setId
(
ma
.
getId
());
materialAttribute
.
setAttributeName
(
ma
.
getAttributeName
());
materialAttribute
.
setAttributeValue
(
ma
.
getAttributeValue
());
}
...
...
jshERP-boot/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryService.java
View file @
c7d1ea4e
...
...
@@ -222,7 +222,15 @@ public class MaterialCategoryService {
}
public
int
checkIsNameExist
(
Long
id
,
String
name
)
throws
Exception
{
return
0
;
MaterialCategoryExample
example
=
new
MaterialCategoryExample
();
example
.
createCriteria
().
andIdNotEqualTo
(
id
).
andNameEqualTo
(
name
).
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
List
<
MaterialCategory
>
list
=
null
;
try
{
list
=
materialCategoryMapper
.
selectByExample
(
example
);
}
catch
(
Exception
e
){
JshException
.
readFail
(
logger
,
e
);
}
return
list
==
null
?
0
:
list
.
size
();
}
public
List
<
MaterialCategory
>
findById
(
Long
id
)
throws
Exception
{
...
...
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