| | |
| | | record.id,record.patrol_type,record.device_ids,record.images,record.videos,record.content,record.status,record.item_id,record.task_id,record.patrol_route,record.create_time,record.update_time,record.solution, |
| | | task.route_coordinates taskRoute,task.title taskName, |
| | | item.items_name itemsName,item.description, |
| | | u.real_name |
| | | u.real_name,res."name" resName |
| | | FROM SM_PATROL_RECORD record |
| | | LEFT JOIN sm_patrol_type type ON type.id = record.patrol_type |
| | | LEFT JOIN sm_patrol_task task ON task.id = record.task_id |
| | | LEFT JOIN sjzt_md."att_res_base" res ON task.project_id = res."guid" |
| | | LEFT JOIN sm_patrol_group_item item ON item.id = record.item_id |
| | | LEFT JOIN BLADE_USER u ON u.id = record.create_user |
| | | WHERE record.is_deleted = 0 |
| | |
| | | <if test="patrolRecord.taskId !=null and patrolRecord.taskId !=''"> |
| | | AND record.task_id = #{patrolRecord.taskId} |
| | | </if> |
| | | <if test="patrolRecord.resName != null and patrolRecord.resName !=''"> |
| | | AND res."name" LIKE CONCAT('%',#{patrolRecord.resName},'%') |
| | | </if> |
| | | ORDER BY record.create_time DESC |
| | | </select> |
| | | <select id="getDetail" resultMap="selectPatrolRecordList"> |