| | |
| | | <include refid="selectDictSfxmVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | <select id="selectDictSfxmListLimit" resultType="com.ltkj.hosp.domain.DictSfxm"> |
| | | <include refid="selectDictSfxmVo"/> |
| | | <where> |
| | | <if test="dictSfxm.yqid != null and dictSfxm.yqid != ''"> |
| | | and yqid = #{dictSfxm.yqid} |
| | | </if> |
| | | <if test="dictSfxm.xmid != null and dictSfxm.xmid != ''"> |
| | | and xmid = #{dictSfxm.xmid} |
| | | </if> |
| | | <if test="dictSfxm.xmbm != null and dictSfxm.xmbm != ''"> |
| | | and xmbm = #{dictSfxm.xmbm} |
| | | </if> |
| | | <if test="dictSfxm.xmmc != null and dictSfxm.xmmc != ''"> |
| | | and xmmc like CONCAT("%",#{dictSfxm.xmmc},"%") |
| | | </if> |
| | | <if test="dictSfxm.pym != null and dictSfxm.pym != ''"> |
| | | and pym like CONCAT("%",#{dictSfxm.pym},"%") |
| | | </if> |
| | | <if test="dictSfxm.wbm != null and dictSfxm.wbm != ''"> |
| | | and wbm like CONCAT("%",#{dictSfxm.wbm},"%") |
| | | </if> |
| | | <if test="dictSfxm.zjm != null and dictSfxm.zjm != ''"> |
| | | and zjm = #{zjm} |
| | | </if> |
| | | <if test="dictSfxm.dw != null and dictSfxm.dw != ''"> |
| | | and dw = #{dictSfxm.dw} |
| | | </if> |
| | | <if test="dictSfxm.ksxmfl != null and dictSfxm.ksxmfl != ''"> |
| | | and Ksxmfl = #{dictSfxm.ksxmfl} |
| | | </if> |
| | | <if test="dictSfxm.xxxmfl != null and dictSfxm.xxxmfl != ''"> |
| | | and xxxmfl = #{dictSfxm.xxxmfl} |
| | | </if> |
| | | <if test="dictSfxm.cwxmfl != null and dictSfxm.cwxmfl != ''"> |
| | | and cwxmfl = #{dictSfxm.cwxmfl} |
| | | </if> |
| | | <if test="dictSfxm.yjxmfl != null and dictSfxm.yjxmfl != ''"> |
| | | and yjxmfl = #{dictSfxm.yjxmfl} |
| | | </if> |
| | | <if test="dictSfxm.gkfl != null and dictSfxm.gkfl != ''"> |
| | | and gkfl = #{dictSfxm.gkfl} |
| | | </if> |
| | | <if test="dictSfxm.yzfl != null and dictSfxm.yzfl != ''"> |
| | | and yzfl = #{dictSfxm.yzfl} |
| | | </if> |
| | | <if test="dictSfxm.fpfl != null and dictSfxm.fpfl != ''"> |
| | | and fpfl = #{dictSfxm.fpfl} |
| | | </if> |
| | | <if test="dictSfxm.ckdj != null "> |
| | | and ckdj = #{dictSfxm.ckdj} |
| | | </if> |
| | | <if test="dictSfxm.sxh != null "> |
| | | and sxh = #{dictSfxm.sxh} |
| | | </if> |
| | | <if test="dictSfxm.sfsf != null "> |
| | | and sfsf = #{dictSfxm.sfsf} |
| | | </if> |
| | | <if test="dictSfxm.ybxmdj != null and dictSfxm.ybxmdj != ''"> |
| | | and ybxmdj = #{dictSfxm.ybxmdj} |
| | | </if> |
| | | <if test="dictSfxm.gjxmdm != null and dictSfxm.gjxmdm != ''"> |
| | | and gjxmdm = #{dictSfxm.gjxmdm} |
| | | </if> |
| | | <if test="dictSfxm.gjxmmc != null and dictSfxm.gjxmmc != ''"> |
| | | and gjxmmc = #{dictSfxm.gjxmmc} |
| | | </if> |
| | | <if test="dictSfxm.sjxmdm != null and dictSfxm.sjxmdm != ''"> |
| | | and sjxmdm = #{dictSfxm.sjxmdm} |
| | | </if> |
| | | <if test="dictSfxm.sjxmmc != null and dictSfxm.sjxmmc != ''"> |
| | | and sjxmmc = #{dictSfxm.sjxmmc} |
| | | </if> |
| | | <if test="dictSfxm.xmnr != null and dictSfxm.xmnr != ''"> |
| | | and xmnr = #{dictSfxm.xmnr} |
| | | </if> |
| | | <if test="dictSfxm.xmsm != null and dictSfxm.xmsm != ''"> |
| | | and xmsm = #{dictSfxm.xmsm} |
| | | </if> |
| | | <if test="dictSfxm.deleted != null "> |
| | | and deleted = #{dictSfxm.deleted} |
| | | </if> |
| | | <if test="dictSfxm.yjzgxj != null "> |
| | | and yjzgxj = #{dictSfxm.yjzgxj} |
| | | </if> |
| | | <if test="dictSfxm.ejzgxj != null "> |
| | | and ejzgxj = #{dictSfxm.ejzgxj} |
| | | </if> |
| | | <if test="dictSfxm.sjzgxj != null "> |
| | | and sjzgxj = #{dictSfxm.sjzgxj} |
| | | </if> |
| | | <if test="dictSfxm.xmnh != null and dictSfxm.xmnh != ''"> |
| | | and xmnh = #{dictSfxm.xmnh} |
| | | </if> |
| | | <if test="dictSfxm.xmfl != null and dictSfxm.xmfl != ''"> |
| | | and xmfl = #{dictSfxm.xmfl} |
| | | </if> |
| | | <if test="dictSfxm.tdzgxj != null "> |
| | | and tdzgxj = #{dictSfxm.tdzgxj} |
| | | </if> |
| | | </where> |
| | | LIMIT #{page},#{size} |
| | | </select> |
| | | <select id="selectDictSfxmListCount" resultType="java.lang.Integer"> |
| | | select count(1) |
| | | from dict_sfxm |
| | | <where> |
| | | <if test="dictSfxm.yqid != null and dictSfxm.yqid != ''"> |
| | | and yqid = #{dictSfxm.yqid} |
| | | </if> |
| | | <if test="dictSfxm.xmid != null and dictSfxm.xmid != ''"> |
| | | and xmid = #{dictSfxm.xmid} |
| | | </if> |
| | | <if test="dictSfxm.xmbm != null and dictSfxm.xmbm != ''"> |
| | | and xmbm = #{dictSfxm.xmbm} |
| | | </if> |
| | | <if test="dictSfxm.xmmc != null and dictSfxm.xmmc != ''"> |
| | | and xmmc like CONCAT("%",#{dictSfxm.xmmc},"%") |
| | | </if> |
| | | <if test="dictSfxm.pym != null and dictSfxm.pym != ''"> |
| | | and pym like CONCAT("%",#{dictSfxm.pym},"%") |
| | | </if> |
| | | <if test="dictSfxm.wbm != null and dictSfxm.wbm != ''"> |
| | | and wbm like CONCAT("%",#{dictSfxm.wbm},"%") |
| | | </if> |
| | | <if test="dictSfxm.zjm != null and dictSfxm.zjm != ''"> |
| | | and zjm = #{zjm} |
| | | </if> |
| | | <if test="dictSfxm.dw != null and dictSfxm.dw != ''"> |
| | | and dw = #{dictSfxm.dw} |
| | | </if> |
| | | <if test="dictSfxm.ksxmfl != null and dictSfxm.ksxmfl != ''"> |
| | | and Ksxmfl = #{dictSfxm.ksxmfl} |
| | | </if> |
| | | <if test="dictSfxm.xxxmfl != null and dictSfxm.xxxmfl != ''"> |
| | | and xxxmfl = #{dictSfxm.xxxmfl} |
| | | </if> |
| | | <if test="dictSfxm.cwxmfl != null and dictSfxm.cwxmfl != ''"> |
| | | and cwxmfl = #{dictSfxm.cwxmfl} |
| | | </if> |
| | | <if test="dictSfxm.yjxmfl != null and dictSfxm.yjxmfl != ''"> |
| | | and yjxmfl = #{dictSfxm.yjxmfl} |
| | | </if> |
| | | <if test="dictSfxm.gkfl != null and dictSfxm.gkfl != ''"> |
| | | and gkfl = #{dictSfxm.gkfl} |
| | | </if> |
| | | <if test="dictSfxm.yzfl != null and dictSfxm.yzfl != ''"> |
| | | and yzfl = #{dictSfxm.yzfl} |
| | | </if> |
| | | <if test="dictSfxm.fpfl != null and dictSfxm.fpfl != ''"> |
| | | and fpfl = #{dictSfxm.fpfl} |
| | | </if> |
| | | <if test="dictSfxm.ckdj != null "> |
| | | and ckdj = #{dictSfxm.ckdj} |
| | | </if> |
| | | <if test="dictSfxm.sxh != null "> |
| | | and sxh = #{dictSfxm.sxh} |
| | | </if> |
| | | <if test="dictSfxm.sfsf != null "> |
| | | and sfsf = #{dictSfxm.sfsf} |
| | | </if> |
| | | <if test="dictSfxm.ybxmdj != null and dictSfxm.ybxmdj != ''"> |
| | | and ybxmdj = #{dictSfxm.ybxmdj} |
| | | </if> |
| | | <if test="dictSfxm.gjxmdm != null and dictSfxm.gjxmdm != ''"> |
| | | and gjxmdm = #{dictSfxm.gjxmdm} |
| | | </if> |
| | | <if test="dictSfxm.gjxmmc != null and dictSfxm.gjxmmc != ''"> |
| | | and gjxmmc = #{dictSfxm.gjxmmc} |
| | | </if> |
| | | <if test="dictSfxm.sjxmdm != null and dictSfxm.sjxmdm != ''"> |
| | | and sjxmdm = #{dictSfxm.sjxmdm} |
| | | </if> |
| | | <if test="dictSfxm.sjxmmc != null and dictSfxm.sjxmmc != ''"> |
| | | and sjxmmc = #{dictSfxm.sjxmmc} |
| | | </if> |
| | | <if test="dictSfxm.xmnr != null and dictSfxm.xmnr != ''"> |
| | | and xmnr = #{dictSfxm.xmnr} |
| | | </if> |
| | | <if test="dictSfxm.xmsm != null and dictSfxm.xmsm != ''"> |
| | | and xmsm = #{dictSfxm.xmsm} |
| | | </if> |
| | | <if test="dictSfxm.deleted != null "> |
| | | and deleted = #{dictSfxm.deleted} |
| | | </if> |
| | | <if test="dictSfxm.yjzgxj != null "> |
| | | and yjzgxj = #{dictSfxm.yjzgxj} |
| | | </if> |
| | | <if test="dictSfxm.ejzgxj != null "> |
| | | and ejzgxj = #{dictSfxm.ejzgxj} |
| | | </if> |
| | | <if test="dictSfxm.sjzgxj != null "> |
| | | and sjzgxj = #{dictSfxm.sjzgxj} |
| | | </if> |
| | | <if test="dictSfxm.xmnh != null and dictSfxm.xmnh != ''"> |
| | | and xmnh = #{dictSfxm.xmnh} |
| | | </if> |
| | | <if test="dictSfxm.xmfl != null and dictSfxm.xmfl != ''"> |
| | | and xmfl = #{dictSfxm.xmfl} |
| | | </if> |
| | | <if test="dictSfxm.tdzgxj != null "> |
| | | and tdzgxj = #{dictSfxm.tdzgxj} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <insert id="insertDictSfxm" parameterType="DictSfxm" useGeneratedKeys="true" |
| | | keyProperty="id"> |