Merge remote-tracking branch 'origin/dev_New' into dev_New
| | |
| | | <if test="deviceMaintenanceDto.maintenanceActuallyName != null"> |
| | | and dm.maintenance_actually_name like concat('%',#{deviceMaintenanceDto.maintenanceActuallyName},'%') |
| | | </if> |
| | | <if test="deviceMaintenanceDto.maintenancePlanTimeReq != null"> |
| | | and dm.maintenance_plan_time like concat('%',#{deviceMaintenanceDto.maintenancePlanTimeReq},'%') |
| | | <if test="deviceMaintenanceDto.maintenancePlanTime != null"> |
| | | and dm.maintenance_plan_time like concat('%',#{deviceMaintenanceDto.maintenancePlanTime},'%') |
| | | </if> |
| | | <if test="deviceMaintenanceDto.maintenanceActuallyTimeReq != null"> |
| | | and dm.maintenance_actually_time like concat('%',#{deviceMaintenanceDto.maintenanceActuallyTimeReq},'%') |
| | | <if test="deviceMaintenanceDto.maintenanceActuallyTime != null"> |
| | | and dm.maintenance_actually_time like concat('%',#{deviceMaintenanceDto.maintenanceActuallyTime},'%') |
| | | </if> |
| | | <if test="deviceMaintenanceDto.maintenanceActuallyTime != null"> |
| | | and dm.maintenance_actually_time >= str_to_date(#{deviceMaintenanceDto.maintenanceActuallyTime}, '%Y-%m-%d') |
| | |
| | | next_date, |
| | | record_date, |
| | | CASE |
| | | WHEN next_date >= DATE_FORMAT(now(),'%Y-%m-%d') THEN 1 |
| | | WHEN most_date >= DATE_FORMAT(now(),'%Y-%m-%d') THEN 1 |
| | | ELSE 2 |
| | | END AS status, |
| | | create_user, |
| | |
| | | left join safe_training st on std.safe_training_id = st.id |
| | | where std.user_id = #{c.userId} |
| | | <if test="c.trainingDate != null"> |
| | | and st.training_date = #{c.trainingDate} |
| | | and st.training_date = date_format(#{c.trainingDate},'%Y%m%d') |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | <if test="c.placeTraining != null and c.placeTraining != ''"> |
| | | and st.place_training like concat('%', #{c.placeTraining}, '%') |
| | | </if> |
| | | <if test="c.trainingDate != null and c.trainingDate != ''"> |
| | | and st.training_date = #{c.trainingDate} |
| | | <if test="c.trainingDate != null "> |
| | | and st.training_date = date_format(#{c.trainingDate},'%Y%m%d') |
| | | </if> |
| | | </select> |
| | | <select id="getSafeTraining" resultType="com.ruoyi.safe.dto.SafeTrainingDto"> |