| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.app.patrolplan.mapper.ArdAppPatrolplanMapper"> |
| | | |
| | | |
| | | <resultMap type="ArdAppPatrolplan" id="ArdAppPatrolplanResult"> |
| | | <result property="patroEndTime" column="patro_end_time" /> |
| | | <result property="userId" column="user_id" /> |
| | |
| | | <if test="planName != null and planName != ''"> and plan_name like '%'||#{planName}||'%'</if> |
| | | <if test="patroBeginTime != null and patroBeginTime != ''"> and patro_begin_time >= #{patroBeginTime}</if> |
| | | <if test="patroEndTime != null and patroEndTime != ''"> and patro_end_time <= #{patroEndTime}</if> |
| | | <if test="createTimeBegin != null and createTimeBegin != ''"> and ard_app_patrolplan.create_time >= #{createTimeBegin} </if> |
| | | <if test="createTimeEnd != null and createTimeEnd != ''"> and ard_app_patrolplan.create_time <= #{createTimeEnd}</if> |
| | | <if test="wellId != null and wellId != ''"> |
| | | <!-- and well.alarmpoints_id in (select ard_alarmpoints_well.id from ard_alarmpoints_well where well_id = #{wellId})--> |
| | | and well.alarmpoints_id = #{wellId} |
| | |
| | | </where> |
| | | group by ard_app_patrolplan.id |
| | | </select> |
| | | |
| | | |
| | | <select id="selectArdAppPatrolplanByPatroEndTime" parameterType="String" resultMap="ArdAppPatrolplanResult"> |
| | | <include refid="selectArdAppPatrolplanVo"/> |
| | | where patro_end_time = #{patroEndTime} |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertArdAppPatrolplan" parameterType="ArdAppPatrolplan"> |
| | | insert into ard_app_patrolplan |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | and plan.create_time >= #{beforeTime} and plan.create_time <= #{time} |
| | | and del_name is null and del_time is null order by plan.create_time desc; |
| | | </select> |
| | | </mapper> |
| | | </mapper> |