|
|
@ -382,7 +382,7 @@
|
|
|
|
<if test="incomeTimeEnd != null ">and #{incomeTimeEnd} > CONVERT(varchar(30),qct.income_time, 120)</if>
|
|
|
|
<if test="incomeTimeEnd != null ">and #{incomeTimeEnd} > CONVERT(varchar(30),qct.income_time, 120)</if>
|
|
|
|
<if test="checkTimeStart != null ">and CONVERT(varchar(30),qct.create_time, 120) >= #{checkTimeStart}</if>
|
|
|
|
<if test="checkTimeStart != null ">and CONVERT(varchar(30),qct.create_time, 120) >= #{checkTimeStart}</if>
|
|
|
|
<if test="checkTimeEnd != null ">and #{checkTimeEnd} > CONVERT(varchar(30),qct.create_time, 120)</if>
|
|
|
|
<if test="checkTimeEnd != null ">and #{checkTimeEnd} > CONVERT(varchar(30),qct.create_time, 120)</if>
|
|
|
|
and qct.check_type = 'checkTypeSC'
|
|
|
|
and qct.check_type = 'checkTypeSC' and qct.del_flag = '0'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
union ALL
|
|
|
|
union ALL
|
|
|
|
select
|
|
|
|
select
|
|
|
@ -415,14 +415,14 @@
|
|
|
|
<if test="incomeTimeEnd != null ">and #{incomeTimeEnd} > CONVERT(varchar(30),qct.income_time, 120)</if>
|
|
|
|
<if test="incomeTimeEnd != null ">and #{incomeTimeEnd} > CONVERT(varchar(30),qct.income_time, 120)</if>
|
|
|
|
<if test="checkTimeStart != null ">and CONVERT(varchar(30),qct.create_time, 120) >= #{checkTimeStart}</if>
|
|
|
|
<if test="checkTimeStart != null ">and CONVERT(varchar(30),qct.create_time, 120) >= #{checkTimeStart}</if>
|
|
|
|
<if test="checkTimeEnd != null ">and #{checkTimeEnd} > CONVERT(varchar(30),qct.create_time, 120)</if>
|
|
|
|
<if test="checkTimeEnd != null ">and #{checkTimeEnd} > CONVERT(varchar(30),qct.create_time, 120)</if>
|
|
|
|
and qct.check_type = 'checkTypeSCXJ'
|
|
|
|
and qct.check_type = 'checkTypeSCXJ' and qct.del_flag = '0'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
GROUP BY qct.order_no, qct.material_code, qct.material_name, qct.quality, qct.unit,
|
|
|
|
GROUP BY qct.order_no, qct.material_code, qct.material_name, qct.quality, qct.unit,
|
|
|
|
qct.supplier_code, qct.supplier_name,CONVERT(varchar(10), qct.income_time, 120), qct.check_type,CONVERT(varchar(10),qct.create_time, 120),
|
|
|
|
qct.supplier_code, qct.supplier_name,CONVERT(varchar(10), qct.income_time, 120), qct.check_type,CONVERT(varchar(10),qct.create_time, 120),
|
|
|
|
qct.confirm,qct.confirm_man_name
|
|
|
|
qct.confirm,qct.confirm_man_name
|
|
|
|
) t
|
|
|
|
) t
|
|
|
|
left join pro_order_workorder pow on pow.workorder_code = t.order_no
|
|
|
|
left join pro_order_workorder pow on pow.workorder_code = t.order_no
|
|
|
|
where 1=1
|
|
|
|
where pow.del_flag = '0'
|
|
|
|
<if test="checkType != null ">
|
|
|
|
<if test="checkType != null ">
|
|
|
|
and t.check_type = #{checkType}
|
|
|
|
and t.check_type = #{checkType}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|