|
|
|
|
@ -206,7 +206,7 @@ |
|
|
|
|
LEFT JOIN BS_TEAM_SET g on c.MAKE_TEAM = g.ID |
|
|
|
|
LEFT JOIN MES_WORK_PLAN h on h.wo_id = a.id |
|
|
|
|
<where> |
|
|
|
|
a.is_deleted = 0 |
|
|
|
|
a.is_deleted = 0 and h.is_deleted = 0 |
|
|
|
|
<if test="startTime !=null and startTime != ''"> |
|
|
|
|
and (to_char(h.start_time,'YYYY-MM-DD') = #{startTime} or (h.start_time <![CDATA[ < ]]> to_date(CONCAT(#{startTime},' 00:00:00'),'YYYY-MM-DD HH24:MI:SS') and h.end_time <![CDATA[ > ]]> to_date(CONCAT(#{startTime},' 23:59:59'),'YYYY-MM-DD HH24:MI:SS'))) |
|
|
|
|
</if> |
|
|
|
|
|