Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
d77329ef
Commit
d77329ef
authored
Apr 24, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX
parent
8ad8df19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
ServiceHPKC004.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
+8
-6
ServiceHPKC013.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC013.java
+1
-1
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
View file @
d77329ef
...
...
@@ -125,12 +125,14 @@ public class ServiceHPKC004 extends ServiceBase {
newKc004
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
YES_1
);
DaoUtils
.
insert
(
HPKC004
.
INSERT
,
newKc004
);
// 修改库存
if
(
hpkc010
!=
null
)
HPKCTools
.
updateStock
(
dbKc004
.
getWhCode
(),
hpkc010
.
getInventRecordId
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
().
multiply
(
new
BigDecimal
(
1000
)),
hpkc010
.
getFactoryCode
());
else
HPKCTools
.
updateProdStock
(
dbKc004
.
getWhCode
(),
dbKc004
.
getProdNo
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
(),
hpkc011
.
getFactoryCode
());
if
(
hpkc010
!=
null
)
{
HPKCTools
.
updateStock
(
dbKc004
.
getWhCode
(),
hpkc010
.
getInventRecordId
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
(),
hpkc010
.
getFactoryCode
());
}
else
{
HPKCTools
.
updateProdStock
(
dbKc004
.
getWhCode
(),
dbKc004
.
getProdNo
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
(),
hpkc011
.
getFactoryCode
());
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC013.java
View file @
d77329ef
...
...
@@ -93,7 +93,7 @@ public class ServiceHPKC013 extends ServiceBase {
HPKC013
fKc013
=
new
HPKC013
();
fKc013
.
fromMap
(
resultRows
.
get
(
i
));
HPKC013
dbKc013
=
mapKc013
.
get
(
fKc013
.
getReturnNo
());
if
(!
f
Kc013
.
getSubInventCode
().
equals
(
" "
))
{
if
(!
db
Kc013
.
getSubInventCode
().
equals
(
" "
))
{
hpkc011
=
HPKCTools
.
HpKc011
.
listById
(
dbKc013
.
getKcId
());
}
else
{
hpkc010
=
HPKCTools
.
HpKc010
.
listById
(
dbKc013
.
getKcId
());
...
...
Write
Preview
Markdown
is supported
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