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
5b44b942
Commit
5b44b942
authored
Sep 22, 2022
by
季圣华
Browse files
解决BUG:商品的sku无法修改的问题
parent
d08f0a15
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/materialExtend/MaterialExtendService.java
View file @
5b44b942
...
@@ -96,7 +96,6 @@ public class MaterialExtendService {
...
@@ -96,7 +96,6 @@ public class MaterialExtendService {
}
else
if
(
"update"
.
equals
(
type
)){
}
else
if
(
"update"
.
equals
(
type
)){
for
(
int
i
=
0
;
i
<
meArr
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
meArr
.
size
();
i
++)
{
JSONObject
tempJson
=
meArr
.
getJSONObject
(
i
);
JSONObject
tempJson
=
meArr
.
getJSONObject
(
i
);
String
barCode
=
tempJson
.
getString
(
"barCode"
);
String
tempId
=
tempJson
.
getString
(
"id"
);
String
tempId
=
tempJson
.
getString
(
"id"
);
if
(
tempId
.
length
()>
19
){
if
(
tempId
.
length
()>
19
){
insertedJson
.
add
(
tempJson
);
insertedJson
.
add
(
tempJson
);
...
@@ -168,6 +167,9 @@ public class MaterialExtendService {
...
@@ -168,6 +167,9 @@ public class MaterialExtendService {
if
(
StringUtils
.
isNotEmpty
(
tempUpdatedJson
.
getString
(
"commodityUnit"
)))
{
if
(
StringUtils
.
isNotEmpty
(
tempUpdatedJson
.
getString
(
"commodityUnit"
)))
{
materialExtend
.
setCommodityUnit
(
tempUpdatedJson
.
getString
(
"commodityUnit"
));
materialExtend
.
setCommodityUnit
(
tempUpdatedJson
.
getString
(
"commodityUnit"
));
}
}
if
(
tempUpdatedJson
.
get
(
"sku"
)!=
null
)
{
materialExtend
.
setSku
(
tempUpdatedJson
.
getString
(
"sku"
));
}
if
(
StringUtils
.
isNotEmpty
(
tempUpdatedJson
.
getString
(
"purchaseDecimal"
)))
{
if
(
StringUtils
.
isNotEmpty
(
tempUpdatedJson
.
getString
(
"purchaseDecimal"
)))
{
materialExtend
.
setPurchaseDecimal
(
tempUpdatedJson
.
getBigDecimal
(
"purchaseDecimal"
));
materialExtend
.
setPurchaseDecimal
(
tempUpdatedJson
.
getBigDecimal
(
"purchaseDecimal"
));
}
}
...
...
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