| | |
| | | <resultMap id="gdDeviceCallResultMap" type="org.sxkj.gd.workorder.entity.GdDeviceCallEntity"> |
| | | <result column="id" property="id"/> |
| | | <result column="patrol_task_name" property="patrolTaskName"/> |
| | | <result column="task_department_id" property="taskDepartmentId"/> |
| | | <result column="task_department" property="taskDepartment"/> |
| | | <result column="task_initiator_id" property="taskInitiatorId"/> |
| | | <result column="task_initiator" property="taskInitiator"/> |
| | | <result column="flight_duration" property="flightDuration"/> |
| | | <result column="flight_distance" property="flightDistance"/> |
| | |
| | | <if test="param2.patrolTaskName != null and param2.patrolTaskName != ''"> |
| | | and patrol_task_name like concat('%',#{param2.patrolTaskName},'%') |
| | | </if> |
| | | <if test="param2.deviceId != null and param2.deviceId != ''"> |
| | | <if test="param2.deviceId != null"> |
| | | and device_id = #{param2.deviceId} |
| | | </if> |
| | | <if test="param2.taskInitiatorId != null and param2.taskInitiatorId != ''"> |
| | | and task_initiator_id = #{param2.taskInitiatorId} |
| | | </if> |
| | | order by create_time desc |
| | | </where> |
| | | </select> |
| | | |