| | |
| | | LEFT JOIN mdc_equipment t4 ON t1.equipment_id = t4.equipment_id |
| | | WHERE 1=1 |
| | | <if test="deviceCalendar.effectiveDate != null and deviceCalendar.effectiveDate != ''"> |
| | | AND t1.effective_date LIKE CONCAT('%',#{ deviceCalendar.effectiveDate },'%') |
| | | AND t1.effective_date LIKE '%' + #{ deviceCalendar.effectiveDate } + '%' |
| | | </if> |
| | | <if test="deviceCalendar.equipmentId != null and deviceCalendar.equipmentId != ''"> |
| | | AND t1.equipment_id = #{ deviceCalendar.equipmentId } |
| | |
| | | FROM |
| | | mdc_device_calendar |
| | | WHERE |
| | | effective_date LIKE CONCAT(#{ validDate }, '%') |
| | | effective_date LIKE #{ validDate } + '%' |
| | | AND equipment_id = #{ equipmentId } |
| | | </select> |
| | | |
| | |
| | | FROM |
| | | mdc_device_calendar t1 LEFT JOIN mdc_shift t2 ON t1.shift_id = t2.id |
| | | WHERE |
| | | t1.effective_date LIKE CONCAT(#{ validDate }, '%') |
| | | t1.effective_date LIKE #{ validDate } + '%') |
| | | AND t1.equipment_id = #{ equipmentId } |
| | | </select> |
| | | |
| | |
| | | FROM |
| | | mdc_device_calendar |
| | | WHERE |
| | | effective_date LIKE CONCAT(#{ validDate }, '%') |
| | | effective_date LIKE #{ validDate } + '%') |
| | | AND equipment_id = #{ equipmentId } |
| | | </select> |
| | | |