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
1f33ff6d
Commit
1f33ff6d
authored
Jun 21, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产入库提交时计划校验修改,不需要校验完工数量加已完工数量是否大于任务数量,任务数量可以小于已完工数量
parent
98f1ce71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+2
-2
No files found.
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
1f33ff6d
...
...
@@ -148,7 +148,7 @@ public class HGSCTools {
HGSC007
hgsc007
=
THGSC007
.
getById
(
hgsc008
.
getTaskId
());
//更新生产任务完工数量
Integer
finishQuatity
=
hgsc007
.
getFinishQuantity
()+
completeNum
;
AssertUtils
.
isTrue
(
hgsc007
.
getQuantity
().
compareTo
(
finishQuatity
)<
0
,
"完工数量加已完工数量不能大于任务数量!"
);
//
AssertUtils.isTrue(hgsc007.getQuantity().compareTo(finishQuatity)<0,"完工数量加已完工数量不能大于任务数量!");
AssertUtils
.
isTrue
(
finishQuatity
<
0
,
"扣除完工数量不能大于已完工数量!"
);
hgsc007
.
setFinishQuantity
(
finishQuatity
);
hgsc007
.
setUnfinishQuantity
(
hgsc007
.
getQuantity
()
-
finishQuatity
);
...
...
@@ -161,7 +161,7 @@ public class HGSCTools {
HGSC006A
hgsc006A
=
THGSC006A
.
getById
(
hgsc007
.
getOrderDetailId
());
HGSC005A
hgsc005A
=
THGSC005A
.
getById
(
hgsc006A
.
getPlanDetailId
());
finishQuatity
=
hgsc005A
.
getFinishQuantity
()+
completeNum
;
AssertUtils
.
isTrue
(
hgsc005A
.
getQuantity
().
compareTo
(
finishQuatity
)<
0
,
"完工数量加已完工数量不能大于任务数量!"
);
//
AssertUtils.isTrue(hgsc005A.getQuantity().compareTo(finishQuatity)<0,"完工数量加已完工数量不能大于任务数量!");
AssertUtils
.
isTrue
(
finishQuatity
<
0
,
"扣除完工数量不能大于已完工数量!"
);
hgsc005A
.
setFinishQuantity
(
finishQuatity
);
hgsc005A
.
setUnfinishQuantity
(
hgsc005A
.
getQuantity
()
-
finishQuatity
);
...
...
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