|
|
@ -5,7 +5,7 @@
|
|
|
|
"groupId" : "06bb1cef20924ed8887b1c3ae8a91d3a",
|
|
|
|
"groupId" : "06bb1cef20924ed8887b1c3ae8a91d3a",
|
|
|
|
"name" : "列表",
|
|
|
|
"name" : "列表",
|
|
|
|
"createTime" : null,
|
|
|
|
"createTime" : null,
|
|
|
|
"updateTime" : 1729824397433,
|
|
|
|
"updateTime" : 1730109402968,
|
|
|
|
"lock" : null,
|
|
|
|
"lock" : null,
|
|
|
|
"createBy" : null,
|
|
|
|
"createBy" : null,
|
|
|
|
"updateBy" : null,
|
|
|
|
"updateBy" : null,
|
|
|
@ -59,34 +59,41 @@ String scheduleNumber = body.scheduleNumber;
|
|
|
|
String reportNumber = body.reportNumber;
|
|
|
|
String reportNumber = body.reportNumber;
|
|
|
|
String currentProcess = body.currentProcess;
|
|
|
|
String currentProcess = body.currentProcess;
|
|
|
|
String reportDate = body.reportDate;
|
|
|
|
String reportDate = body.reportDate;
|
|
|
|
|
|
|
|
String profileModel = body.profileModel;
|
|
|
|
|
|
|
|
|
|
|
|
var sql = """
|
|
|
|
var sql = """
|
|
|
|
select
|
|
|
|
select
|
|
|
|
id,
|
|
|
|
mpr.id,
|
|
|
|
report_number,
|
|
|
|
mpr.report_number,
|
|
|
|
machine,
|
|
|
|
mpr.machine,
|
|
|
|
operator,
|
|
|
|
mpr.operator,
|
|
|
|
workshop,
|
|
|
|
mpr.workshop,
|
|
|
|
date_format(report_date, '%Y-%m-%d') as report_date,
|
|
|
|
date_format(mpr.report_date, '%Y-%m-%d') as report_date,
|
|
|
|
current_process,
|
|
|
|
mpr.current_process,
|
|
|
|
next_process,
|
|
|
|
mpr.next_process,
|
|
|
|
production_number,
|
|
|
|
mpr.production_number,
|
|
|
|
production_weight,
|
|
|
|
mpr.production_weight,
|
|
|
|
scrap_number,
|
|
|
|
mpr.scrap_number,
|
|
|
|
scrap_reason,
|
|
|
|
mpr.scrap_reason,
|
|
|
|
frame_number,
|
|
|
|
mpr.frame_number,
|
|
|
|
is_completed,
|
|
|
|
mpr.is_completed,
|
|
|
|
sales_order_code,
|
|
|
|
mpr.sales_order_code,
|
|
|
|
schedule_number
|
|
|
|
mpr.schedule_number,
|
|
|
|
from mini_process_report
|
|
|
|
msm.profile_model
|
|
|
|
|
|
|
|
from mini_process_report mpr
|
|
|
|
|
|
|
|
left join mini_sales_order_materials msm
|
|
|
|
|
|
|
|
on mpr.sales_order_code = msm.sales_order_code and mpr.material_code = msm.material_code
|
|
|
|
where 1 = 1
|
|
|
|
where 1 = 1
|
|
|
|
-- and next_process is null
|
|
|
|
-- and next_process is null
|
|
|
|
?{salesOrderCode != null and salesOrderCode != '', and sales_order_code like concat('%', #{salesOrderCode}, '%')}
|
|
|
|
?{salesOrderCode != null and salesOrderCode != '', and mpr.sales_order_code like concat('%', #{salesOrderCode}, '%')}
|
|
|
|
?{scheduleNumber != null and scheduleNumber != '', and schedule_number like concat('%', #{scheduleNumber}, '%')}
|
|
|
|
?{scheduleNumber != null and scheduleNumber != '', and mpr.schedule_number like concat('%', #{scheduleNumber}, '%')}
|
|
|
|
?{reportNumber != null and reportNumber != '', and report_number like concat('%', #{reportNumber}, '%')}
|
|
|
|
?{reportNumber != null and reportNumber != '', and mpr.report_number like concat('%', #{reportNumber}, '%')}
|
|
|
|
?{currentProcess != null and currentProcess != '', and current_process = #{currentProcess}}
|
|
|
|
?{currentProcess != null and currentProcess != '', and mpr.current_process = #{currentProcess}}
|
|
|
|
?{reportDate != null and reportDate != '', and date_format(report_date, '%Y-%m-%d') = #{reportDate}}
|
|
|
|
?{reportDate != null and reportDate != '', and date_format(mpr.report_date, '%Y-%m-%d') = #{reportDate}}
|
|
|
|
|
|
|
|
?{profileModel != null and profileModel != '', and msm.profile_model like concat('%', #{profileModel}, '%')}
|
|
|
|
-- group by report_number
|
|
|
|
-- group by report_number
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
return db.page(sql);
|
|
|
|
return db.page(sql);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// profileModel
|