生产日报表-优化

master
shaoyong 10 months ago
parent 0c0184020a
commit 0f107864a4

@ -693,10 +693,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="workCenter != null and workCenter != ''">and be.workshop_code = #{workCenter}</if>
<if test="equipmentTypeCode != null and equipmentTypeCode != ''">and be.equipment_type_code = #{equipmentTypeCode}</if>
<if test="productDateStart != null and productDateStart != ''">
and CONVERT(varchar(10),pow.product_date, 23) > CONVERT(varchar(10), #{productDateStart}, 23)
and CONVERT(varchar(10),pow.product_date, 23) >= CONVERT(varchar(10), #{productDateStart}, 23)
</if>
<if test="productDateEnd != null and productDateEnd != ''">
and CONVERT(varchar(10), #{productDateEnd}, 23) > CONVERT(varchar(10),pow.product_date, 23)
and CONVERT(varchar(10), #{productDateEnd}, 23) >= CONVERT(varchar(10),pow.product_date, 23)
</if>
order by be.equipment_code
</select>

Loading…
Cancel
Save