|
@@ -1,75 +1,119 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<!DOCTYPE mapper
|
|
<!DOCTYPE mapper
|
|
|
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.zd.laboratory.mapper.LabNoticeconfigMapper">
|
|
<mapper namespace="com.zd.laboratory.mapper.LabNoticeconfigMapper">
|
|
|
|
|
|
|
|
<resultMap type="com.zd.laboratory.domain.LabNoticeconfig" id="LabNoticeconfigResult">
|
|
<resultMap type="com.zd.laboratory.domain.LabNoticeconfig" id="LabNoticeconfigResult">
|
|
|
- <result property="id" column="id" />
|
|
|
|
|
- <result property="riskVoice" column="risk_voice" />
|
|
|
|
|
- <result property="riskPhone" column="risk_phone" />
|
|
|
|
|
- <result property="riskMessage" column="risk_message" />
|
|
|
|
|
- <result property="riskRadio" column="risk_radio" />
|
|
|
|
|
- <result property="exitRadio" column="exit_radio" />
|
|
|
|
|
- <result property="exitVoice" column="exit_voice" />
|
|
|
|
|
- <result property="exitPhone" column="exit_phone" />
|
|
|
|
|
- <result property="exitMessage" column="exit_message" />
|
|
|
|
|
|
|
+ <result property="id" column="id"/>
|
|
|
|
|
+ <result property="riskVoice" column="risk_voice"/>
|
|
|
|
|
+ <result property="riskPhone" column="risk_phone"/>
|
|
|
|
|
+ <result property="riskMessage" column="risk_message"/>
|
|
|
|
|
+ <result property="riskRadio" column="risk_radio"/>
|
|
|
|
|
+ <result property="exitRadio" column="exit_radio"/>
|
|
|
|
|
+ <result property="exitVoice" column="exit_voice"/>
|
|
|
|
|
+ <result property="exitPhone" column="exit_phone"/>
|
|
|
|
|
+ <result property="exitMessage" column="exit_message"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectLabNoticeconfigVo">
|
|
<sql id="selectLabNoticeconfigVo">
|
|
|
- select id, risk_voice, risk_phone, risk_message,risk_radio, exit_radio, exit_voice, exit_phone, exit_message from lab_noticeconfig
|
|
|
|
|
|
|
+ select id,
|
|
|
|
|
+ risk_voice,
|
|
|
|
|
+ risk_phone,
|
|
|
|
|
+ risk_message,
|
|
|
|
|
+ risk_radio,
|
|
|
|
|
+ exit_radio,
|
|
|
|
|
+ exit_voice,
|
|
|
|
|
+ exit_phone,
|
|
|
|
|
+ exit_message
|
|
|
|
|
+ from lab_noticeconfig
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="selectLabNoticeconfigListVo">
|
|
<sql id="selectLabNoticeconfigListVo">
|
|
|
- select t.id, t.risk_voice, t.risk_phone, t.risk_message,t.risk_radio, t.exit_radio, t.exit_voice, t.exit_phone, t.exit_message from lab_noticeconfig as t
|
|
|
|
|
|
|
+ select t.id,
|
|
|
|
|
+ t.risk_voice,
|
|
|
|
|
+ t.risk_phone,
|
|
|
|
|
+ t.risk_message,
|
|
|
|
|
+ t.risk_radio,
|
|
|
|
|
+ t.exit_radio,
|
|
|
|
|
+ t.exit_voice,
|
|
|
|
|
+ t.exit_phone,
|
|
|
|
|
+ t.exit_message
|
|
|
|
|
+ from lab_noticeconfig as t
|
|
|
</sql>
|
|
</sql>
|
|
|
- <select id="selectLabNoticeconfigList" parameterType="com.zd.laboratory.domain.LabNoticeconfig" resultMap="LabNoticeconfigResult">
|
|
|
|
|
- <include refid="selectLabNoticeconfigVo"/>
|
|
|
|
|
|
|
+ <select id="selectLabNoticeconfigList" parameterType="com.zd.laboratory.domain.LabNoticeconfig"
|
|
|
|
|
+ resultMap="LabNoticeconfigResult">
|
|
|
|
|
+ <include refid="selectLabNoticeconfigListVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="riskVoice != null and riskVoice != ''"> and risk_voice = #{riskVoice}</if>
|
|
|
|
|
- <if test="riskPhone != null and riskPhone != ''"> and risk_phone = #{riskPhone}</if>
|
|
|
|
|
- <if test="riskMessage != null and riskMessage != ''"> and risk_message = #{riskMessage}</if>
|
|
|
|
|
- <if test="exitRadio != null and exitRadio != ''"> and exit_radio = #{exitRadio}</if>
|
|
|
|
|
- <if test="exitVoice != null and exitVoice != ''"> and exit_voice = #{exitVoice}</if>
|
|
|
|
|
- <if test="exitPhone != null and exitPhone != ''"> and exit_phone = #{exitPhone}</if>
|
|
|
|
|
- <if test="exitMessage != null and exitMessage != ''"> and exit_message = #{exitMessage}</if>
|
|
|
|
|
|
|
+ <if test="riskVoice != null and riskVoice != ''">and risk_voice = #{riskVoice}</if>
|
|
|
|
|
+ <if test="riskPhone != null and riskPhone != ''">and risk_phone = #{riskPhone}</if>
|
|
|
|
|
+ <if test="riskMessage != null and riskMessage != ''">and risk_message = #{riskMessage}</if>
|
|
|
|
|
+ <if test="exitRadio != null and exitRadio != ''">and exit_radio = #{exitRadio}</if>
|
|
|
|
|
+ <if test="exitVoice != null and exitVoice != ''">and exit_voice = #{exitVoice}</if>
|
|
|
|
|
+ <if test="exitPhone != null and exitPhone != ''">and exit_phone = #{exitPhone}</if>
|
|
|
|
|
+ <if test="exitMessage != null and exitMessage != ''">and exit_message = #{exitMessage}</if>
|
|
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
|
|
+ ${params.dataScope}
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <select id="selectLabNoticeconfigById" resultMap="LabNoticeconfigResult">
|
|
|
|
|
|
|
+ <select id="selectLabNoticeconfigById" resultMap="LabNoticeconfigResult">
|
|
|
<include refid="selectLabNoticeconfigVo"/>
|
|
<include refid="selectLabNoticeconfigVo"/>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <insert id="insertLabNoticeconfig" parameterType="com.zd.laboratory.domain.LabNoticeconfig" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
|
|
+ <insert id="insertLabNoticeconfig" parameterType="com.zd.laboratory.domain.LabNoticeconfig" useGeneratedKeys="true"
|
|
|
|
|
+ keyProperty="id">
|
|
|
insert into lab_noticeconfig
|
|
insert into lab_noticeconfig
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="riskVoice != null">risk_voice,</if>
|
|
|
|
|
|
|
+ <if test="riskVoice != null">risk_voice,</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="riskPhone != null">risk_phone,</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="riskMessage != null">risk_message,</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="riskRadio != null">risk_radio,</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="exitRadio != null">exit_radio,</if>
|
|
|
|
|
|
|
|
- <if test="riskPhone != null">risk_phone,</if>
|
|
|
|
|
|
|
+ <if test="exitVoice != null">exit_voice,</if>
|
|
|
|
|
|
|
|
- <if test="riskMessage != null">risk_message,</if>
|
|
|
|
|
|
|
+ <if test="exitPhone != null">exit_phone,</if>
|
|
|
|
|
|
|
|
- <if test="riskRadio != null">risk_radio,</if>
|
|
|
|
|
|
|
+ <if test="exitMessage != null">exit_message,</if>
|
|
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
|
|
|
|
|
|
- <if test="exitRadio != null">exit_radio,</if>
|
|
|
|
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
|
|
|
|
|
- <if test="exitVoice != null">exit_voice,</if>
|
|
|
|
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
|
|
|
|
|
- <if test="exitPhone != null">exit_phone,</if>
|
|
|
|
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
|
|
|
|
|
|
- <if test="exitMessage != null">exit_message,</if>
|
|
|
|
|
|
|
+ <if test="deptName != null">dept_name,</if>
|
|
|
|
|
|
|
|
- </trim>
|
|
|
|
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="riskVoice != null">#{riskVoice},</if>
|
|
|
|
|
- <if test="riskPhone != null">#{riskPhone},</if>
|
|
|
|
|
- <if test="riskMessage != null">#{riskMessage},</if>
|
|
|
|
|
- <if test="riskRadio != null">#{riskRadio},</if>
|
|
|
|
|
- <if test="exitRadio != null">#{exitRadio},</if>
|
|
|
|
|
- <if test="exitVoice != null">#{exitVoice},</if>
|
|
|
|
|
- <if test="exitPhone != null">#{exitPhone},</if>
|
|
|
|
|
- <if test="exitMessage != null">#{exitMessage},</if>
|
|
|
|
|
- </trim>
|
|
|
|
|
|
|
+ <if test="riskVoice != null">#{riskVoice},</if>
|
|
|
|
|
+ <if test="riskPhone != null">#{riskPhone},</if>
|
|
|
|
|
+ <if test="riskMessage != null">#{riskMessage},</if>
|
|
|
|
|
+ <if test="riskRadio != null">#{riskRadio},</if>
|
|
|
|
|
+ <if test="exitRadio != null">#{exitRadio},</if>
|
|
|
|
|
+ <if test="exitVoice != null">#{exitVoice},</if>
|
|
|
|
|
+ <if test="exitPhone != null">#{exitPhone},</if>
|
|
|
|
|
+ <if test="exitMessage != null">#{exitMessage},</if>
|
|
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
|
|
|
+ <if test="deptName != null">#{deptName},</if>
|
|
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
|
|
+ </trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
<update id="updateLabNoticeconfig" parameterType="com.zd.laboratory.domain.LabNoticeconfig">
|
|
<update id="updateLabNoticeconfig" parameterType="com.zd.laboratory.domain.LabNoticeconfig">
|
|
@@ -83,12 +127,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="exitVoice != null">exit_voice = #{exitVoice},</if>
|
|
<if test="exitVoice != null">exit_voice = #{exitVoice},</if>
|
|
|
<if test="exitPhone != null">exit_phone = #{exitPhone},</if>
|
|
<if test="exitPhone != null">exit_phone = #{exitPhone},</if>
|
|
|
<if test="exitMessage != null">exit_message = #{exitMessage},</if>
|
|
<if test="exitMessage != null">exit_message = #{exitMessage},</if>
|
|
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
|
+ <if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
- <delete id="deleteLabNoticeconfigById" >
|
|
|
|
|
- delete from lab_noticeconfig where id = #{id}
|
|
|
|
|
|
|
+ <delete id="deleteLabNoticeconfigById">
|
|
|
|
|
+ delete
|
|
|
|
|
+ from lab_noticeconfig
|
|
|
|
|
+ where id = #{id}
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
<delete id="deleteLabNoticeconfigByIds">
|
|
<delete id="deleteLabNoticeconfigByIds">
|