|
|
|
@ -203,6 +203,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
sf1.factory_name carName,
|
|
|
|
|
sf.equipment_code machineCode,
|
|
|
|
|
sf.equipment_name machineName,
|
|
|
|
|
mrw.workorder_code workorderCode,
|
|
|
|
|
mrw.batch batch,
|
|
|
|
|
mrw.product_code productCode,
|
|
|
|
|
mrw.product_name productName,
|
|
|
|
|
mrw.quantity,
|
|
|
|
@ -214,8 +216,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
left join sys_factory sf1 on sf.workshop_code = sf1.factory_code <!--车间-->
|
|
|
|
|
left join sys_factory sf2 on sf1.parent_id = sf2.factory_id <!--工厂-->
|
|
|
|
|
where mrw.parent_order = '0' and mrw.del_flag = '0'
|
|
|
|
|
<if test="machineName != null and machineName != ''">and sf.factory_name like concat('%', #{machineName}, '%')</if>
|
|
|
|
|
<if test="machineName != null and machineName != ''">and sf.equipment_name like concat('%', #{machineName}, '%')</if>
|
|
|
|
|
<if test="carName != null and carName != ''">and sf1.factory_name like concat('%', #{carName}, '%')</if>
|
|
|
|
|
<if test="workorderCode != null and workorderCode != ''">and mrw.workorder_code like concat('%', #{workorderCode}, '%')</if>
|
|
|
|
|
<if test="batch != null and batch != ''">and mrw.batch like concat('%', #{batch}, '%')</if>
|
|
|
|
|
<if test="factoryName != null and factoryName != ''">and sf2.factory_name like concat('%', #{factoryName}, '%')</if>
|
|
|
|
|
|
|
|
|
|
<if test="productCode != null and productCode != ''">and pow.product_code like concat('%', #{productCode}, '%')</if>
|
|
|
|
@ -224,6 +228,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<if test="productDateStart != null "> and CONVERT(varchar(10),mrw.feedback_time, 120) >= #{productDateStart}</if>
|
|
|
|
|
<if test="productDateEnd != null "> and #{productDateEnd} >= CONVERT(varchar(10),mrw.feedback_time, 120)</if>
|
|
|
|
|
ORDER BY sf.equipment_name
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getReportWork" resultType="com.op.mes.domain.MesReportWork">
|
|
|
|
|
select
|
|
|
|
|