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
be95e666
Commit
be95e666
authored
Apr 11, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-11 生成订单未派工的订单有派工时间修复
parent
cdd3b364
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
ServiceHPSC003.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
+1
-1
HPSC005.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
+1
-0
HPSCTools.java
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
+6
-2
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
View file @
be95e666
...
...
@@ -245,7 +245,7 @@ public class ServiceHPSC003 extends ServiceBase {
newSc005
.
setPartThick
(
dbSc004
.
getThick
());
newSc005
.
setPartSpec
(
dbSc004
.
getSpec
());
newSc005
.
setRemark1
(
dbSc004
.
getRemark
());
newSc005
.
setWorkDate
(
DateUtils
.
shortDate
());
//
newSc005.setWorkDate(DateUtils.shortDate());
newSc005
.
setPlanCompletionDate
(
dbSc004
.
getPlanCompletionDate
());
newSc005
.
setNum
(
dbSc004
.
getNum
());
newSc005
.
setUnassignedNum
(
dbSc004
.
getNum
());
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
View file @
be95e666
...
...
@@ -304,6 +304,7 @@
STATUS = #status#,
<!-- 状态 0-未派工,1-部分派工,2-全部派工 -->
ASSIGNED_NUM = #assignedNum#,
<!-- 已派工数量 -->
UNASSIGNED_NUM = #unassignedNum#,
<!-- 待派工数量 -->
WORK_DATE = #workDate#,
<!-- 派工时间 -->
DOCUMENT_TYPE = 1,
<include
refid=
"updateRevise"
/>
WHERE ID = #id#
...
...
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
View file @
be95e666
...
...
@@ -61,10 +61,13 @@ public class HPSCTools {
updateMap
.
put
(
"unassignedNum"
,
jhNum
.
subtract
(
totalNum
));
// 0.未派工,1.部分派工,2.全部派工
if
(
jhNum
.
subtract
(
totalNum
).
compareTo
(
BigDecimal
.
ZERO
)==
0
)
{
updateMap
.
put
(
"workDate"
,
DateUtils
.
shortDate
());
updateMap
.
put
(
"status"
,
2
);
}
else
if
(
totalNum
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
)
{
updateMap
.
put
(
"workDate"
,
DateUtils
.
shortDate
());
updateMap
.
put
(
"status"
,
1
);
}
else
{
updateMap
.
put
(
"workDate"
,
""
);
updateMap
.
put
(
"status"
,
0
);
}
DaoUtils
.
update
(
HPSqlConstant
.
HPSC005
.
UPDATE_ASSIGN_NUM
,
updateMap
);
...
...
@@ -96,6 +99,7 @@ public class HPSCTools {
updateMap
.
put
(
"id"
,
dbSc005
.
getId
());
updateMap
.
put
(
"assignedNum"
,
jhNum
);
updateMap
.
put
(
"unassignedNum"
,
0
);
//分派剩余数量变为0
updateMap
.
put
(
"workDate"
,
DateUtils
.
shortDate
());
// 部分派工变为全部派工
updateMap
.
put
(
"status"
,
2
);
DaoUtils
.
update
(
HPSqlConstant
.
HPSC005
.
UPDATE_ASSIGN_NUM
,
updateMap
);
...
...
@@ -433,7 +437,7 @@ public class HPSCTools {
/**
* 查询
*
* @param
id
* @param
planInfoNo
* @return
*/
public
static
HPSC003
getEntityByPlanInfoNo
(
String
planInfoNo
)
{
...
...
@@ -953,7 +957,7 @@ public class HPSCTools {
/**
* 查询
*
* @param prodOrderNo
* @param prod
uction
OrderNo
* @return
*/
public
static
List
<
HPSC006
>
get
(
String
productionOrderNo
)
{
...
...
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