| | |
| | | <result property="cameraId" column="camera_id"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="ArdAlarmpointsWell" id="wellResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="wellId" column="well_id"/> |
| | | <result property="type" column="type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdAlarmpointsWellVo"> |
| | | select c.id, |
| | | c.well_id, |
| | |
| | | WHERE well_id = #{wellId} |
| | | </select> |
| | | |
| | | <select id="wellByPlanId" parameterType="String" resultMap="ArdAlarmpointsWellResult"> |
| | | select * from ard_alarmpoints_well where id in (select alarmpoints_id from ard_app_patrolpoint where patrolplan_id = #{id}) |
| | | <select id="wellByPlanId" parameterType="String" resultMap="wellResult"> |
| | | select ard_app_patrolpoint.alarmpoints_id as id,ard_alarmpoints_well.well_id, ard_app_patrolpoint."type" from ard_alarmpoints_well LEFT JOIN ard_app_patrolpoint on ard_app_patrolpoint.alarmpoints_id = ard_alarmpoints_well.id where ard_alarmpoints_well.id in (select alarmpoints_id from ard_app_patrolpoint where patrolplan_id = #{id}) |
| | | </select> |
| | | </mapper> |