| | |
| | | and job.job_info_id is not null |
| | | <if test="attach.startTime!=null and attach.startTime!='' and attach.endTime!=null and attach.endTime!=''"> |
| | | and (DATE_FORMAT(FROM_UNIXTIME(job.execute_time/1000,'%Y-%m-%d %H:%i:%s'),'%Y-%m-%d %H:%i:%s') between |
| | | #{attach.startTime} and #{attach.endTime} or rela.create_time between #{attach.startTime} and #{attach.endTime} ) |
| | | #{attach.startTime} and #{attach.endTime} or rela.create_time between #{attach.startTime}::timestamp and #{attach.endTime}::timestamp ) |
| | | </if> |
| | | <if test="attach.name!=null and attach.name!=''"> |
| | | and COALESCE(attach.nick_name, SUBSTRING_INDEX(SUBSTRING_INDEX(attach.NAME, '/', -1), '.', 1)) |
| | |
| | | and dfr.area_code = #{param2.areaCode} |
| | | </if> |
| | | <if test="param2.startTime != null and param2.startTime != '' and param2.endTime != null and param2.endTime != ''"> |
| | | and dfr.alarm_time BETWEEN #{param2.startTime} AND #{param2.endTime} |
| | | and dfr.alarm_time BETWEEN #{param2.startTime}::timestamp AND #{param2.endTime}::timestamp |
| | | </if> |
| | | <if test="param2.deviceType != null and param2.deviceType != ''"> |
| | | and dfr.device_type = #{param2.deviceType} |
| | |
| | | </foreach> |
| | | </if> |
| | | <if test="param2.startTime != null and param2.startTime != '' and param2.endTime != null and param2.endTime != '' "> |
| | | and pt.execute_time BETWEEN #{param2.startTime} AND #{param2.endTime} |
| | | and pt.execute_time BETWEEN #{param2.startTime}::timestamp AND #{param2.endTime}::timestamp |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | and wo.create_user::VARCHAR = #{param2.createUser}::VARCHAR |
| | | </if> |
| | | <if test="param2.startTime != null and param2.startTime != '' and param2.endTime != null and param2.endTime != ''"> |
| | | and wo.create_time BETWEEN #{param2.startTime} AND #{param2.endTime} |
| | | and wo.create_time BETWEEN #{param2.startTime}::timestamp AND #{param2.endTime}::timestamp |
| | | </if> |
| | | <if test="param2.deptList != null and param2.deptList.size > 0"> |
| | | /* 修改点3:IN 查询内部元素类型转换 */ |