Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
Project
Project
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
ximai
mes
Commits
8a37f12c
Commit
8a37f12c
authored
Nov 22, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
d1c1fcd2
1de8103f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ProFeedback.java
mes/src/main/java/com/ximai/mes/pro/domain/ProFeedback.java
+3
-2
ProTaskAssistProcessServiceImpl.java
...ro/service/impl/task/ProTaskAssistProcessServiceImpl.java
+1
-1
No files found.
mes/src/main/java/com/ximai/mes/pro/domain/ProFeedback.java
View file @
8a37f12c
...
...
@@ -7,6 +7,7 @@ import com.ximai.common.core.domain.BaseEntity;
import
com.ximai.mes.md.domain.MdItem
;
import
com.ximai.mes.md.domain.MdWorkstation
;
import
com.ximai.mes.pro.domain.proWorkOrder.ProWorkorder
;
import
com.ximai.mes.pro.domain.task.ProTaskWorkunit
;
import
com.ximai.mes.pro.domain.vo.proWorkOrder.ProWorkOrderSoDirectiveReport
;
import
com.ximai.mes.pro.domain.vo.proWorkOrder.ProWorkOrderSoSizeItemReport
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
...
...
@@ -326,12 +327,12 @@ public class ProFeedback extends BaseEntity {
private
Boolean
lastFeedback
;
public
void
initValue
(
ProWorkorder
workorder
)
{
public
void
initValue
(
ProWorkorder
workorder
,
ProTaskWorkunit
proTaskWorkunit
)
{
this
.
setWorkorderCode
(
workorder
.
getWorkorderCode
());
this
.
setWorkorderName
(
workorder
.
getWorkorderName
());
this
.
setUnitOfMeasure
(
workorder
.
getUnitOfMeasure
());
this
.
setItemId
(
workorder
.
getProductId
());
this
.
setQuantity
(
workorder
.
getQuantity
());
this
.
setQuantity
(
proTaskWorkunit
.
getQuantity
());
this
.
setItemCode
(
workorder
.
getProductCode
());
this
.
setItemName
(
workorder
.
getProductName
());
}
...
...
mes/src/main/java/com/ximai/mes/pro/service/impl/task/ProTaskAssistProcessServiceImpl.java
View file @
8a37f12c
...
...
@@ -282,7 +282,7 @@ public class ProTaskAssistProcessServiceImpl implements IProTaskAssistProcessSer
ProWorkorder
workorder
=
proWorkorderMapper
.
selectWorkorderById
(
feedback
.
getWorkorderId
());
ExceptionUtil
.
checkTrueThrowException
(
taskWorkunit
==
null
,
MessageUtils
.
message
(
"pro.schedule.data.not.exists"
));
ExceptionUtil
.
checkTrueThrowException
(!
taskWorkunit
.
getStatus
().
equals
(
TaskStatusEnum
.
BEGINNING
.
getStatus
()),
MessageUtils
.
message
(
"pro.feedback.error.before.start"
));
feedback
.
initValue
(
workorder
);
feedback
.
initValue
(
workorder
,
taskWorkunit
);
Double
feedbackSum
=
proFeedbackService
.
selectQuantityQualifySum
(
new
ProFeedback
(
null
,
null
,
null
,
taskWorkunitId
));
double
taskQuantityDouble
=
taskWorkunit
.
getQuantity
().
doubleValue
();
double
canBeWaitQuantity
=
taskQuantityDouble
-
feedbackSum
;
...
...
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