|
|
|
@ -1196,8 +1196,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
select device_code,devcode1,CONVERT(varchar(10),create_time, 120) ymd
|
|
|
|
|
from mes_dryinghouse_result
|
|
|
|
|
where type = '1'
|
|
|
|
|
<if test="ymArrayStart != null ">and CONVERT(varchar(10),create_time, 120) >= #{ymArrayStart}</if>
|
|
|
|
|
<if test="ymArrayEnd != null ">and #{ymArrayEnd} >=CONVERT(varchar(10),create_time,120) </if>
|
|
|
|
|
<if test="ymArrayStart != null ">and CONVERT(varchar(19),create_time, 120) >= #{ymArrayStart}</if>
|
|
|
|
|
<if test="ymArrayEnd != null ">and #{ymArrayEnd} >=CONVERT(varchar(19),create_time,120) </if>
|
|
|
|
|
) mdr
|
|
|
|
|
left join base_equipment be on be.equipment_code = mdr.device_code
|
|
|
|
|
where 1=1
|
|
|
|
|