|
@@ -28,7 +28,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectTPatrolAlertById" parameterType="String" resultMap="TPatrolAlertResult">
|
|
|
<include refid="selectTPatrolAlertVo"/>
|
|
|
where id = #{id}
|
|
|
- ${params.dataScope}
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertTPatrolAlert" parameterType="TPatrolAlert">
|
|
@@ -36,11 +35,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
|
<if test="title != null">title,</if>
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
|
<if test="content != null">content,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="title != null">#{title},</if>
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
|
<if test="content != null">#{content},</if>
|
|
|
</trim>
|
|
|
</insert>
|