select jp.job_id, jp.uav_id, jp.payload_id, jp.width, jp.length, jp.theta, jp.reserved, jp.resolution, jp.direction, jp.auto_focus, jp.moto, jp.image_Light, jp.heading_diff, jp.image_bit, jp.status, jp.end_time, p.ip, p.type, p.name as payload_name from jm_job_payload jp left join se_payload p on p.id = jp.payload_id insert into jm_job_payload( job_id, uav_id, payload_id, status, width, length, theta, reserved, direction, resolution, auto_focus, image_light, heading_diff, image_bit, moto, end_time ) values ( #{item.jobId}, #{item.uavId}, #{item.payloadId}, #{item.status}, #{item.width}, #{item.length}, #{item.theta}, #{item.reserved}, #{item.direction}, #{item.resolution}, #{item.autoFocus}, #{item.imageLight}, #{item.headingDiff}, #{item.imageBit}, #{item.moto}, #{item.endTime} ) update jm_job_payload uav_id = #{uavId}, status = #{status}, width = #{width}, length = #{length}, theta = #{theta}, reserved = #{reserved}, direction = #{direction}, resolution = #{resolution}, auto_focus = #{autoFocus}, moto = #{moto}, end_time = #{endTime}, where job_id = #{jobId} and payload_id = #{payloadId} update jm_job_payload uav_id = #{uavId}, status = #{status}, width = #{width}, length = #{length}, theta = #{theta}, reserved = #{reserved}, direction = #{direction}, resolution = #{resolution}, auto_focus = #{autoFocus}, image_light = #{imageLight}, moto = #{moto}, end_time = #{endTime}, where jobId = #{jobId} and payload_id = #{payloadId} delete from jm_job_payload where job_id = #{jobId} and uav_id = #{uavId} and payload_id = #{payloadId} delete from jm_job_payload where job_id in #{item} delete from jm_job_payload where job_id = #{jobId} and uav_id in #{item}