| | |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="guideFlag" column="guide_flag" /> |
| | | <result property="guideTime" column="guide_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdAlarmRadarFireVo"> |
| | | select id, name, target_id, alarm_type, alarm_time, longitude, latitude, record_url1, view_time, create_by, create_time, user_id, dept_id, guide_flag from ard_alarm_radar_fire |
| | | select id, name, target_id, alarm_type, alarm_time, longitude, latitude, record_url1, view_time, create_by, create_time, user_id, dept_id, guide_time from ard_alarm_radar_fire |
| | | </sql> |
| | | |
| | | <select id="selectArdAlarmRadarFireList" parameterType="ArdAlarmRadarFire" resultMap="ArdAlarmRadarFireResult"> |
| | |
| | | <if test="viewTime != null "> and view_time = #{viewTime}</if> |
| | | <if test="userId != null and userId != ''"> and user_id = #{userId}</if> |
| | | <if test="deptId != null "> and dept_id = #{deptId}</if> |
| | | <if test="guideFlag != null "> and guide_flag = #{guideFlag}</if> |
| | | <if test="guideTime != null "> and guide_time = #{guideTime}</if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND alarm_time >= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss') |
| | | </if> |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="deptId != null">dept_id,</if> |
| | | <if test="guideFlag != null">guide_flag,</if> |
| | | <if test="guideTime != null">guide_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="deptId != null">#{deptId},</if> |
| | | <if test="guideFlag != null">#{guideFlag},</if> |
| | | <if test="guideTime != null">#{guideTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="deptId != null">dept_id = #{deptId},</if> |
| | | <if test="guideFlag != null">guide_flag = #{guideFlag},</if> |
| | | <if test="guideTime != null">guide_time = #{guideTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |