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
d76503e1
Commit
d76503e1
authored
Sep 14, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.合并代码解决冲突
parent
3afa5872
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
ServiceHGSC006B.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC006B.java
+11
-8
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC006B.java
View file @
d76503e1
...
@@ -13,6 +13,7 @@ import com.baosight.hggp.hg.sc.constant.HgScSqlConstant;
...
@@ -13,6 +13,7 @@ import com.baosight.hggp.hg.sc.constant.HgScSqlConstant;
import
com.baosight.hggp.hg.sc.domain.HGSC006
;
import
com.baosight.hggp.hg.sc.domain.HGSC006
;
import
com.baosight.hggp.hg.sc.domain.HGSC006A
;
import
com.baosight.hggp.hg.sc.domain.HGSC006A
;
import
com.baosight.hggp.hg.sc.domain.HGSC007
;
import
com.baosight.hggp.hg.sc.domain.HGSC007
;
import
com.baosight.hggp.hg.sc.domain.HGSC008
;
import
com.baosight.hggp.hg.sc.domain.HGSC098
;
import
com.baosight.hggp.hg.sc.domain.HGSC098
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.sc.util.HgScUtils
;
import
com.baosight.hggp.hg.sc.util.HgScUtils
;
...
@@ -33,9 +34,11 @@ import org.springframework.beans.BeanUtils;
...
@@ -33,9 +34,11 @@ import org.springframework.beans.BeanUtils;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.Optional
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -348,11 +351,11 @@ public class ServiceHGSC006B extends ServiceBase {
...
@@ -348,11 +351,11 @@ public class ServiceHGSC006B extends ServiceBase {
// 0.未派工,1.部分派工,2.全部派工
// 0.未派工,1.部分派工,2.全部派工
AssignStatusEnum
orderDetailAssignStatus
;
AssignStatusEnum
orderDetailAssignStatus
;
if
(
jhNum
-
totalNum
==
0
)
{
if
(
jhNum
-
totalNum
==
0
)
{
orderDetailAssignStatus
=
ASSIGNED
;
orderDetailAssignStatus
=
A
ssignStatusEnum
.
A
SSIGNED
;
}
else
if
(
totalNum
>
0
)
{
}
else
if
(
totalNum
>
0
)
{
orderDetailAssignStatus
=
PARTIAL_ASSIGN
;
orderDetailAssignStatus
=
AssignStatusEnum
.
PARTIAL_ASSIGN
;
}
else
{
}
else
{
orderDetailAssignStatus
=
UNASSIGN
;
orderDetailAssignStatus
=
AssignStatusEnum
.
UNASSIGN
;
}
}
updateMap
.
put
(
HGSC006A
.
FIELD_assign_status
,
orderDetailAssignStatus
.
getCode
());
updateMap
.
put
(
HGSC006A
.
FIELD_assign_status
,
orderDetailAssignStatus
.
getCode
());
DaoUtils
.
update
(
HGSC006A
.
UPDATE_ASSIGN_NUM
,
updateMap
);
DaoUtils
.
update
(
HGSC006A
.
UPDATE_ASSIGN_NUM
,
updateMap
);
...
@@ -373,19 +376,19 @@ public class ServiceHGSC006B extends ServiceBase {
...
@@ -373,19 +376,19 @@ public class ServiceHGSC006B extends ServiceBase {
switch
(
orderDetailAssignStatus
){
switch
(
orderDetailAssignStatus
){
case
UNASSIGN:
case
UNASSIGN:
if
(
unassignQuantity
==
totalQuantity
){
if
(
unassignQuantity
==
totalQuantity
){
orderAssignStatus
=
UNASSIGN
;
orderAssignStatus
=
AssignStatusEnum
.
UNASSIGN
;
}
else
{
}
else
{
orderAssignStatus
=
PARTIAL_ASSIGN
;
orderAssignStatus
=
AssignStatusEnum
.
PARTIAL_ASSIGN
;
}
}
break
;
break
;
case
PARTIAL_ASSIGN:
case
PARTIAL_ASSIGN:
orderAssignStatus
=
PARTIAL_ASSIGN
;
orderAssignStatus
=
AssignStatusEnum
.
PARTIAL_ASSIGN
;
break
;
break
;
case
ASSIGNED:
case
ASSIGNED:
if
(
assignQuantity
==
totalQuantity
){
if
(
assignQuantity
==
totalQuantity
){
orderAssignStatus
=
ASSIGNED
;
orderAssignStatus
=
A
ssignStatusEnum
.
A
SSIGNED
;
}
else
{
}
else
{
orderAssignStatus
=
PARTIAL_ASSIGN
;
orderAssignStatus
=
AssignStatusEnum
.
PARTIAL_ASSIGN
;
}
}
break
;
break
;
default
:
default
:
...
...
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