Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
fc0f8d6b
Commit
fc0f8d6b
authored
Jun 18, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
盘点没有差异数量时不进行入库操作
parent
1a15e08b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ServiceHGKC005A.java
...java/com/baosight/hggp/hg/kc/service/ServiceHGKC005A.java
+2
-1
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+2
-1
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC005A.java
View file @
fc0f8d6b
...
@@ -13,6 +13,7 @@ import com.baosight.hggp.util.*;
...
@@ -13,6 +13,7 @@ import com.baosight.hggp.util.*;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
...
@@ -147,7 +148,7 @@ public class ServiceHGKC005A extends ServiceEPBase {
...
@@ -147,7 +148,7 @@ public class ServiceHGKC005A extends ServiceEPBase {
newKc005
.
setInventRecordId
(
dbKc010
.
getSpecId
());
newKc005
.
setInventRecordId
(
dbKc010
.
getSpecId
());
newKc005
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
newKc005
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
DaoUtils
.
insert
(
HGKC005
.
INSERT
,
newKc005
);
DaoUtils
.
insert
(
HGKC005
.
INSERT
,
newKc005
);
// 修改库存数量
HGKCTools
.
updateStock
(
newKc005
);
HGKCTools
.
updateStock
(
newKc005
);
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
fc0f8d6b
...
@@ -561,7 +561,8 @@ public class HGKCTools {
...
@@ -561,7 +561,8 @@ public class HGKCTools {
public
static
void
updateStock
(
HGKC005
hgKc005
)
{
public
static
void
updateStock
(
HGKC005
hgKc005
)
{
if
(
hgKc005
.
getDiffAmount
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
)
{
if
(
hgKc005
.
getDiffAmount
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
)
{
throw
new
PlatException
(
"入库数量不能为空"
);
// throw new PlatException("入库数量不能为空");
return
;
}
}
EiInfo
inInfo
=
new
EiInfo
();
EiInfo
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"companyCode"
,
hgKc005
.
getCompanyCode
());
inInfo
.
set
(
"companyCode"
,
hgKc005
.
getCompanyCode
());
...
...
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