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
c7d343ea
Commit
c7d343ea
authored
Nov 04, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新打印
parent
dd1b6332
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
7 deletions
+30
-7
ProTask.java
mes/src/main/java/com/ximai/mes/pro/domain/task/ProTask.java
+5
-0
TaskProPrintData.java
.../java/com/ximai/mes/pro/domain/task/TaskProPrintData.java
+8
-0
ProTaskWorkunitServiceImpl.java
...mes/pro/service/impl/task/ProTaskWorkunitServiceImpl.java
+17
-7
No files found.
mes/src/main/java/com/ximai/mes/pro/domain/task/ProTask.java
View file @
c7d343ea
...
@@ -318,6 +318,11 @@ public class ProTask extends BaseEntity {
...
@@ -318,6 +318,11 @@ public class ProTask extends BaseEntity {
private
String
idx
;
private
String
idx
;
@ApiModelProperty
(
"超报标识"
)
@ApiModelProperty
(
"超报标识"
)
private
Boolean
surpassState
;
private
Boolean
surpassState
;
private
String
expectStartDateString
;
private
String
requestDateString
;
public
String
getStatusName
()
{
public
String
getStatusName
()
{
return
TaskStatusEnum
.
getStatusCn
(
this
.
getStatus
());
return
TaskStatusEnum
.
getStatusCn
(
this
.
getStatus
());
}
}
...
...
mes/src/main/java/com/ximai/mes/pro/domain/task/TaskProPrintData.java
0 → 100644
View file @
c7d343ea
package
com
.
ximai
.
mes
.
pro
.
domain
.
task
;
import
lombok.Data
;
@Data
public
class
TaskProPrintData
extends
ProTask
{
private
String
beginAndEndDate
;
}
mes/src/main/java/com/ximai/mes/pro/service/impl/task/ProTaskWorkunitServiceImpl.java
View file @
c7d343ea
...
@@ -574,8 +574,10 @@ public class ProTaskWorkunitServiceImpl implements IProTaskWorkunitService {
...
@@ -574,8 +574,10 @@ public class ProTaskWorkunitServiceImpl implements IProTaskWorkunitService {
List
<
String
>
taskBatchs
=
tasks
.
stream
().
map
(
proTask
->
proTask
.
getTaskBatch
()).
distinct
().
collect
(
Collectors
.
toList
());
List
<
String
>
taskBatchs
=
tasks
.
stream
().
map
(
proTask
->
proTask
.
getTaskBatch
()).
distinct
().
collect
(
Collectors
.
toList
());
int
i
=
1
;
int
i
=
1
;
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
simpleDateFormat1
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
for
(
String
taskBatch
:
taskBatchs
){
for
(
String
taskBatch
:
taskBatchs
){
List
<
ProTask
>
taskBatchTasks
=
proTaskMapper
.
selectByTaskBatch
(
taskBatch
);
List
<
ProTask
>
taskBatchTasks
=
proTaskMapper
.
selectByTaskBatch
(
taskBatch
);
if
(
taskBatchTasks
.
size
()
>
0
){
if
(
taskBatchTasks
.
size
()
>
0
){
Map
<
String
,
Object
>
value
=
new
HashMap
<>();
Map
<
String
,
Object
>
value
=
new
HashMap
<>();
valueList
.
add
(
value
);
valueList
.
add
(
value
);
...
@@ -584,16 +586,24 @@ public class ProTaskWorkunitServiceImpl implements IProTaskWorkunitService {
...
@@ -584,16 +586,24 @@ public class ProTaskWorkunitServiceImpl implements IProTaskWorkunitService {
BeanUtil
.
copyProperties
(
proWorkorder
,
taskProWorkorderPrintData
);
BeanUtil
.
copyProperties
(
proWorkorder
,
taskProWorkorderPrintData
);
value
.
put
(
"header"
,
taskProWorkorderPrintData
);
value
.
put
(
"header"
,
taskProWorkorderPrintData
);
value
.
put
(
"detail"
,
taskBatchTasks
);
value
.
put
(
"detail"
,
taskBatchTasks
);
if
(
taskProWorkorderPrintData
.
getExpectStartDate
()
!=
null
||
taskProWorkorderPrintData
.
getRequestDate
()
!=
null
){
for
(
ProTask
proTask
:
taskBatchTasks
){
String
begin
=
taskProWorkorderPrintData
.
getExpectStartDate
()
!=
null
?
simpleDateFormat1
.
format
(
taskProWorkorderPrintData
.
getExpectStartDate
())
:
"空"
;
String
end
=
taskProWorkorderPrintData
.
getRequestDate
()
!=
null
?
simpleDateFormat1
.
format
(
taskProWorkorderPrintData
.
getRequestDate
())
:
"空"
;
proTask
.
setExpectStartDateString
(
begin
);
proTask
.
setRequestDateString
(
end
);
}
}
taskProWorkorderPrintData
.
setSize
(
i
++);
taskProWorkorderPrintData
.
setSize
(
i
++);
taskProWorkorderPrintData
.
setDate
(
simpleDateFormat
.
format
(
new
Date
()));
taskProWorkorderPrintData
.
setDate
(
simpleDateFormat
.
format
(
new
Date
()));
taskProWorkorderPrintData
.
setQuantity
(
taskBatchTasks
.
get
(
0
).
getQuantity
());
taskProWorkorderPrintData
.
setQuantity
(
taskBatchTasks
.
get
(
0
).
getQuantity
());
if
(
proWorkorder
.
getOrderCode
()
!=
null
&&
proWorkorder
.
getProductId
()
!=
null
){
//
if(proWorkorder.getOrderCode() != null && proWorkorder.getProductId() != null){
OdSalesOrderDetail
odSalesOrderDetail
=
odSalesOrderDetailMapper
.
getByOrderCodeAndproductId
(
proWorkorder
.
getOrderCode
(),
proWorkorder
.
getProductId
());
//
OdSalesOrderDetail odSalesOrderDetail = odSalesOrderDetailMapper.getByOrderCodeAndproductId(proWorkorder.getOrderCode(),proWorkorder.getProductId());
if
(
odSalesOrderDetail
!=
null
){
//
if(odSalesOrderDetail != null){
taskProWorkorderPrintData
.
setClientItemNo
(
odSalesOrderDetail
.
getClientItemNo
());
//
taskProWorkorderPrintData.setClientItemNo(odSalesOrderDetail.getClientItemNo());
taskProWorkorderPrintData
.
setPoOrderNo
(
odSalesOrderDetail
.
getPoOrderNo
());
//
taskProWorkorderPrintData.setPoOrderNo(odSalesOrderDetail.getPoOrderNo());
}
//
}
}
//
}
}
}
}
}
return
printData
;
return
printData
;
...
...
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