|
|
|
@ -298,6 +298,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
where
|
|
|
|
|
CONVERT(varchar(10),feedback_time, 120) >= #{productDateStart}
|
|
|
|
|
and #{productDateEnd} >= CONVERT(varchar(10),feedback_time, 120)
|
|
|
|
|
and parent_order = '0'
|
|
|
|
|
)mrw
|
|
|
|
|
group by mrw.nameDate,mrw.productCode,mrw.productName,mrw.feedbackTime
|
|
|
|
|
</select>
|
|
|
|
@ -308,6 +309,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
where
|
|
|
|
|
CONVERT(varchar(10),mrw.feedback_time, 120) >= #{productDateStart}
|
|
|
|
|
and #{productDateEnd} >= CONVERT(varchar(10),mrw.feedback_time, 120)
|
|
|
|
|
and parent_order = '0'
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getEquNames" resultType="com.op.mes.domain.MesHourReport">
|
|
|
|
|
select
|
|
|
|
@ -470,7 +472,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<select id="getReportWorkHzList" resultType="com.op.mes.domain.MesReportWork">
|
|
|
|
|
select mrw.workorderCode,mrw.productCode,mrw.productName,mrw.machineCode,mrw.machineName,
|
|
|
|
|
mrw.shiftCode,mrw.feedbackTime feedbackTimeStr,mrw.quantityFeedback,
|
|
|
|
|
mrw.workTime,mrw.useMan,mrw.uploadStatus,<!--mrw.uploadTime,mrw.unit,-->
|
|
|
|
|
mrw.workTime,mrw.useMan,mrw.uploadStatus,mrw.unit,<!--mrw.uploadTime,-->
|
|
|
|
|
pow.order_code orderCode,pow.quantity_split quantity
|
|
|
|
|
from (
|
|
|
|
|
select workorder_code workorderCode,
|
|
|
|
@ -483,10 +485,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
sum(quantity_feedback) quantityFeedback,
|
|
|
|
|
sum(work_time) workTime,
|
|
|
|
|
sum(use_man) useMan,
|
|
|
|
|
upload_status uploadStatus
|
|
|
|
|
<!--,upload_time uploadTime,
|
|
|
|
|
,
|
|
|
|
|
unit-->
|
|
|
|
|
upload_status uploadStatus,
|
|
|
|
|
<!--,upload_time uploadTime,-->
|
|
|
|
|
unit
|
|
|
|
|
from mes_report_work
|
|
|
|
|
where del_flag = '0' and parent_order = '0'
|
|
|
|
|
<if test="workorderCode != null and workorderCode != ''"> and workorder_code like concat('%', #{workorderCode}, '%')</if>
|
|
|
|
@ -498,8 +499,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="feedbackTimeEnd != null "> and #{feedbackTimeEnd} >= CONVERT(varchar(19),feedback_time, 120)</if>
|
|
|
|
|
<if test="uploadStatus != null and uploadStatus != ''"> and upload_status = #{uploadStatus}</if>
|
|
|
|
|
group by workorder_code, product_code,product_name,CONVERT(varchar(10),feedback_time, 120),machine_code,machine_name,shift_code
|
|
|
|
|
,upload_status
|
|
|
|
|
<!--,upload_time,unit-->
|
|
|
|
|
,upload_status,unit
|
|
|
|
|
<!--,upload_time-->
|
|
|
|
|
) mrw
|
|
|
|
|
left join pro_order_workorder pow on mrw.workorderCode = pow.workorder_code
|
|
|
|
|
<where>
|
|
|
|
|