| | |
| | | <mapper namespace="com.ltkj.hosp.mapper.TjProAdvicerulesMapper"> |
| | | |
| | | <resultMap type="TjProAdvicerules" id="TjProAdvicerulesResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="bm" column="bm"/> |
| | | <result property="ks" column="ks"/> |
| | | <result property="jcxm" column="jcxm"/> |
| | | <result property="zyzd" column="zyzd"/> |
| | | <result property="jymc" column="jymc"/> |
| | | <result property="jynr" column="jynr"/> |
| | | <result property="fwz" column="fwz"/> |
| | | <result property="fwzxz" column="fwzxz"/> |
| | | <result property="fwzdz" column="fwzdz"/> |
| | | <result property="ycbz" column="ycbz"/> |
| | | <result property="sfjb" column="sfjb"/> |
| | | <result property="sfcjb" column="sfcjb"/> |
| | | <result property="sfmxb" column="sfmxb"/> |
| | | <result property="sfzdjb" column="sfzdjb"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="id" column="id"/> |
| | | <result property="bm" column="bm"/> |
| | | <result property="ks" column="ks"/> |
| | | <result property="jcxm" column="jcxm"/> |
| | | <result property="zyzd" column="zyzd"/> |
| | | <result property="jymc" column="jymc"/> |
| | | <result property="jynr" column="jynr"/> |
| | | <result property="fwz" column="fwz"/> |
| | | <result property="fwzxz" column="fwzxz"/> |
| | | <result property="fwzdz" column="fwzdz"/> |
| | | <result property="ycbz" column="ycbz"/> |
| | | <result property="sfjb" column="sfjb"/> |
| | | <result property="sfcjb" column="sfcjb"/> |
| | | <result property="sfmxb" column="sfmxb"/> |
| | | <result property="sfzdjb" column="sfzdjb"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="xb" column="xb"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTjProAdvicerulesVo"> |
| | | select id, bm, ks, jcxm, zyzd, jymc, jynr, fwz, fwzxz, fwzdz, ycbz, sfjb, sfcjb, sfmxb, sfzdjb, create_time, update_time, create_by, update_by, deleted |
| | | select id, |
| | | bm, |
| | | ks, |
| | | jcxm, |
| | | zyzd, |
| | | jymc, |
| | | jynr, |
| | | fwz, |
| | | fwzxz, |
| | | fwzdz, |
| | | ycbz, |
| | | sfjb, |
| | | sfcjb, |
| | | sfmxb, |
| | | sfzdjb, |
| | | create_time, |
| | | update_time, |
| | | create_by, |
| | | update_by, |
| | | deleted, |
| | | xb |
| | | from tj_pro_advicerules |
| | | </sql> |
| | | |
| | | <select id="selectTjProAdvicerulesList" parameterType="TjProAdvicerules" resultMap="TjProAdvicerulesResult"> |
| | | <include refid="selectTjProAdvicerulesVo"/> |
| | | <where> |
| | | <if test="bm != null and bm != ''"> |
| | | and bm like concat('%', #{bm}, '%') |
| | | </if> |
| | | <if test="ks != null and ks != ''"> |
| | | and ks like concat('%', #{ks}, '%') |
| | | </if> |
| | | <if test="jcxm != null and jcxm != ''"> |
| | | and jcxm like concat('%', #{jcxm}, '%') |
| | | </if> |
| | | <if test="zyzd != null and zyzd != ''"> |
| | | and zyzd like concat('%', #{zyzd}, '%') |
| | | </if> |
| | | <if test="jymc != null and jymc != ''"> |
| | | and jymc like concat('%', #{jymc}, '%') |
| | | </if> |
| | | <if test="jynr != null and jynr != ''"> |
| | | and jynr like concat('%', #{jynr}, '%') |
| | | </if> |
| | | <if test="sfjb != null and sfjb != ''"> |
| | | and sfjb = #{sfjb} |
| | | </if> |
| | | <if test="sfcjb != null and sfcjb != ''"> |
| | | and sfcjb = #{sfcjb} |
| | | </if> |
| | | <if test="sfmxb != null and sfmxb != ''"> |
| | | and sfmxb = #{sfmxb} |
| | | </if> |
| | | <if test="sfzdjb != null and sfzdjb != ''"> |
| | | and sfzdjb = #{sfzdjb} |
| | | </if> |
| | | <if test="bm != null and bm != ''"> |
| | | and bm like concat('%', #{bm}, '%') |
| | | </if> |
| | | <if test="ks != null and ks != ''"> |
| | | and ks like concat('%', #{ks}, '%') |
| | | </if> |
| | | <if test="jcxm != null and jcxm != ''"> |
| | | and jcxm like concat('%', #{jcxm}, '%') |
| | | </if> |
| | | <if test="zyzd != null and zyzd != ''"> |
| | | and zyzd like concat('%', #{zyzd}, '%') |
| | | </if> |
| | | <if test="jymc != null and jymc != ''"> |
| | | and jymc like concat('%', #{jymc}, '%') |
| | | </if> |
| | | <if test="jynr != null and jynr != ''"> |
| | | and jynr like concat('%', #{jynr}, '%') |
| | | </if> |
| | | <if test="sfjb != null and sfjb != ''"> |
| | | and sfjb = #{sfjb} |
| | | </if> |
| | | <if test="sfcjb != null and sfcjb != ''"> |
| | | and sfcjb = #{sfcjb} |
| | | </if> |
| | | <if test="sfmxb != null and sfmxb != ''"> |
| | | and sfmxb = #{sfmxb} |
| | | </if> |
| | | <if test="sfzdjb != null and sfzdjb != ''"> |
| | | and sfzdjb = #{sfzdjb} |
| | | </if> |
| | | <if test="xb != null and xb != ''"> |
| | | and xb = #{xb} |
| | | </if> |
| | | </where> |
| | | ORDER BY ks |
| | | </select> |
| | | |
| | | <select id="selectTjProAdvicerulesById" parameterType="Long" |
| | | resultMap="TjProAdvicerulesResult"> |
| | | <include refid="selectTjProAdvicerulesVo"/> |
| | | where id = #{id} |
| | | <include refid="selectTjProAdvicerulesVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertTjProAdvicerules" parameterType="TjProAdvicerules"> |
| | | insert into tj_pro_advicerules |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id, |
| | | </if> |
| | | <if test="bm != null">bm, |
| | | </if> |
| | | <if test="ks != null">ks, |
| | | </if> |
| | | <if test="jcxm != null">jcxm, |
| | | </if> |
| | | <if test="zyzd != null">zyzd, |
| | | </if> |
| | | <if test="jymc != null">jymc, |
| | | </if> |
| | | <if test="jynr != null">jynr, |
| | | </if> |
| | | <if test="fwz != null">fwz, |
| | | </if> |
| | | <if test="fwzxz != null">fwzxz, |
| | | </if> |
| | | <if test="fwzdz != null">fwzdz, |
| | | </if> |
| | | <if test="ycbz != null">ycbz, |
| | | </if> |
| | | <if test="sfjb != null">sfjb, |
| | | </if> |
| | | <if test="sfcjb != null">sfcjb, |
| | | </if> |
| | | <if test="sfmxb != null">sfmxb, |
| | | </if> |
| | | <if test="sfzdjb != null">sfzdjb, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="deleted != null">deleted, |
| | | </if> |
| | | <if test="id != null">id, |
| | | </if> |
| | | <if test="bm != null">bm, |
| | | </if> |
| | | <if test="ks != null">ks, |
| | | </if> |
| | | <if test="jcxm != null">jcxm, |
| | | </if> |
| | | <if test="zyzd != null">zyzd, |
| | | </if> |
| | | <if test="jymc != null">jymc, |
| | | </if> |
| | | <if test="jynr != null">jynr, |
| | | </if> |
| | | <if test="fwz != null">fwz, |
| | | </if> |
| | | <if test="fwzxz != null">fwzxz, |
| | | </if> |
| | | <if test="fwzdz != null">fwzdz, |
| | | </if> |
| | | <if test="ycbz != null">ycbz, |
| | | </if> |
| | | <if test="sfjb != null">sfjb, |
| | | </if> |
| | | <if test="sfcjb != null">sfcjb, |
| | | </if> |
| | | <if test="sfmxb != null">sfmxb, |
| | | </if> |
| | | <if test="sfzdjb != null">sfzdjb, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="deleted != null">deleted, |
| | | </if> |
| | | |
| | | <if test="xb != null">xb, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | | </if> |
| | | <if test="bm != null">#{bm}, |
| | | </if> |
| | | <if test="ks != null">#{ks}, |
| | | </if> |
| | | <if test="jcxm != null">#{jcxm}, |
| | | </if> |
| | | <if test="zyzd != null">#{zyzd}, |
| | | </if> |
| | | <if test="jymc != null">#{jymc}, |
| | | </if> |
| | | <if test="jynr != null">#{jynr}, |
| | | </if> |
| | | <if test="fwz != null">#{fwz}, |
| | | </if> |
| | | <if test="fwzxz != null">#{fwzxz}, |
| | | </if> |
| | | <if test="fwzdz != null">#{fwzdz}, |
| | | </if> |
| | | <if test="ycbz != null">#{ycbz}, |
| | | </if> |
| | | <if test="sfjb != null">#{sfjb}, |
| | | </if> |
| | | <if test="sfcjb != null">#{sfcjb}, |
| | | </if> |
| | | <if test="sfmxb != null">#{sfmxb}, |
| | | </if> |
| | | <if test="sfzdjb != null">#{sfzdjb}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">#{deleted}, |
| | | </if> |
| | | <if test="id != null">#{id}, |
| | | </if> |
| | | <if test="bm != null">#{bm}, |
| | | </if> |
| | | <if test="ks != null">#{ks}, |
| | | </if> |
| | | <if test="jcxm != null">#{jcxm}, |
| | | </if> |
| | | <if test="zyzd != null">#{zyzd}, |
| | | </if> |
| | | <if test="jymc != null">#{jymc}, |
| | | </if> |
| | | <if test="jynr != null">#{jynr}, |
| | | </if> |
| | | <if test="fwz != null">#{fwz}, |
| | | </if> |
| | | <if test="fwzxz != null">#{fwzxz}, |
| | | </if> |
| | | <if test="fwzdz != null">#{fwzdz}, |
| | | </if> |
| | | <if test="ycbz != null">#{ycbz}, |
| | | </if> |
| | | <if test="sfjb != null">#{sfjb}, |
| | | </if> |
| | | <if test="sfcjb != null">#{sfcjb}, |
| | | </if> |
| | | <if test="sfmxb != null">#{sfmxb}, |
| | | </if> |
| | | <if test="sfzdjb != null">#{sfzdjb}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">#{deleted}, |
| | | </if> |
| | | <if test="xb != null">#{xb}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateTjProAdvicerules" parameterType="TjProAdvicerules"> |
| | | update tj_pro_advicerules |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="bm != null">bm = |
| | | #{bm}, |
| | | </if> |
| | | <if test="ks != null">ks = |
| | | #{ks}, |
| | | </if> |
| | | <if test="jcxm != null">jcxm = |
| | | #{jcxm}, |
| | | </if> |
| | | <if test="zyzd != null">zyzd = |
| | | #{zyzd}, |
| | | </if> |
| | | <if test="jymc != null">jymc = |
| | | #{jymc}, |
| | | </if> |
| | | <if test="jynr != null">jynr = |
| | | #{jynr}, |
| | | </if> |
| | | <if test="fwz != null">fwz = |
| | | #{fwz}, |
| | | </if> |
| | | <if test="fwzxz != null">fwzxz = |
| | | #{fwzxz}, |
| | | </if> |
| | | <if test="fwzdz != null">fwzdz = |
| | | #{fwzdz}, |
| | | </if> |
| | | <if test="ycbz != null">ycbz = |
| | | #{ycbz}, |
| | | </if> |
| | | <if test="sfjb != null">sfjb = |
| | | #{sfjb}, |
| | | </if> |
| | | <if test="sfcjb != null">sfcjb = |
| | | #{sfcjb}, |
| | | </if> |
| | | <if test="sfmxb != null">sfmxb = |
| | | #{sfmxb}, |
| | | </if> |
| | | <if test="sfzdjb != null">sfzdjb = |
| | | #{sfzdjb}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">deleted = |
| | | #{deleted}, |
| | | </if> |
| | | <if test="bm != null">bm = |
| | | #{bm}, |
| | | </if> |
| | | <if test="ks != null">ks = |
| | | #{ks}, |
| | | </if> |
| | | <if test="jcxm != null">jcxm = |
| | | #{jcxm}, |
| | | </if> |
| | | <if test="zyzd != null">zyzd = |
| | | #{zyzd}, |
| | | </if> |
| | | <if test="jymc != null">jymc = |
| | | #{jymc}, |
| | | </if> |
| | | <if test="jynr != null">jynr = |
| | | #{jynr}, |
| | | </if> |
| | | <if test="fwz != null">fwz = |
| | | #{fwz}, |
| | | </if> |
| | | <if test="fwzxz != null">fwzxz = |
| | | #{fwzxz}, |
| | | </if> |
| | | <if test="fwzdz != null">fwzdz = |
| | | #{fwzdz}, |
| | | </if> |
| | | <if test="ycbz != null">ycbz = |
| | | #{ycbz}, |
| | | </if> |
| | | <if test="sfjb != null">sfjb = |
| | | #{sfjb}, |
| | | </if> |
| | | <if test="sfcjb != null">sfcjb = |
| | | #{sfcjb}, |
| | | </if> |
| | | <if test="sfmxb != null">sfmxb = |
| | | #{sfmxb}, |
| | | </if> |
| | | <if test="sfzdjb != null">sfzdjb = |
| | | #{sfzdjb}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="deleted != null">deleted = |
| | | #{deleted}, |
| | | </if> |
| | | <if test="xb != null">xb = |
| | | #{xb}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteTjProAdvicerulesById" parameterType="Long"> |
| | | delete |
| | | from tj_pro_advicerules where id = #{id} |
| | | from tj_pro_advicerules |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteTjProAdvicerulesByIds" parameterType="String"> |