| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="cn.com.goldenwater.dcproj.dao.TacExprRcmmDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacExprRcmm" id="tacExprRcmmResultMap">
- <result property="id" column="ID"/>
- <result property="depCode" column="DEP_CODE"/>
- <result property="depNm" column="DEP_NM"/>
- <result property="name" column="NAME"/>
- <result property="sex" column="SEX"/>
- <result property="idNo" column="ID_NO"/>
- <result property="education" column="EDUCATION"/>
- <result property="roleType" column="ROLE_TYPE"/>
- <result property="groupType" column="GROUP_TYPE"/>
- <result property="isOffice" column="IS_OFFICE"/>
- <result property="isTraining" column="IS_TRAINING"/>
- <result property="workAd" column="WORK_AD"/>
- <result property="workAdNm" column="WORK_AD_NM"/>
- <result property="workDpNm" column="WORK_DP_NM"/>
- <result property="unitRanks" column="UNIT_RANKS"/>
- <result property="titles" column="TITLES"/>
- <result property="duty" column="DUTY"/>
- <result property="professional" column="PROFESSIONAL"/>
- <result property="isCvl" column="IS_CVL"/>
- <result property="orgCode" column="ORG_CODE"/>
- <result property="orgNm" column="ORG_NM"/>
- <result property="telnumb" column="TELNUMB"/>
- <result property="mobilenumb" column="MOBILENUMB"/>
- <result property="email" column="EMAIL"/>
- <result property="emgcCntct" column="EMGC_CNTCT"/>
- <result property="emgcCntctPhone" column="EMGC_CNTCT_PHONE"/>
- <result property="bankAccount" column="BANK_ACCOUNT"/>
- <result property="bankName" column="BANK_NAME"/>
- <result property="oe" column="OE"/>
- <result property="state" column="STATE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- DEP_CODE,
- DEP_NM,
- NAME,
- SEX,
- ID_NO,
- EDUCATION,
- ROLE_TYPE,
- GROUP_TYPE,
- IS_OFFICE,
- IS_TRAINING,
- WORK_AD,
- WORK_AD_NM,
- WORK_DP_NM,
- UNIT_RANKS,
- TITLES,
- DUTY,
- PROFESSIONAL,
- IS_CVL,
- ORG_CODE,
- ORG_NM,
- TELNUMB,
- MOBILENUMB,
- EMAIL,
- EMGC_CNTCT,
- EMGC_CNTCT_PHONE,
- BANK_ACCOUNT,
- BANK_NAME,
- OE,
- STATE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{depCode},
- #{depNm},
- #{name},
- #{sex},
- #{idNo},
- #{education},
- #{roleType},
- #{groupType},
- #{isOffice},
- #{isTraining},
- #{workAd},
- #{workAdNm},
- #{workDpNm},
- #{unitRanks},
- #{titles},
- #{duty},
- #{professional},
- #{isCvl},
- #{orgCode},
- #{orgNm},
- #{telnumb},
- #{mobilenumb},
- #{email},
- #{emgcCntct},
- #{emgcCntctPhone},
- #{bankAccount},
- #{bankName},
- #{oe},
- #{state},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="depCode != null and depCode != ''">and DEP_CODE = #{depCode}</if>
- <if test="depNm != null and depNm != ''">and DEP_NM = #{depNm}</if>
- <if test="name != null and name != ''">and NAME like '%${name}%'</if>
- <if test="sex != null and sex != ''">and SEX = #{sex}</if>
- <if test="idNo != null and idNo != ''">and ID_NO = #{idNo}</if>
- <if test="education != null and education != ''">and EDUCATION = #{education}</if>
- <if test="roleType != null and roleType != ''">and ROLE_TYPE = #{roleType}</if>
- <if test="groupType != null and groupType != ''">and GROUP_TYPE = #{groupType}</if>
- <if test="isOffice != null and isOffice != ''">and IS_OFFICE = #{isOffice}</if>
- <if test="isTraining != null and isTraining != ''">and IS_TRAINING = #{isTraining}</if>
- <if test="workAd != null and workAd != ''">and WORK_AD = #{workAd}</if>
- <if test="workAdNm != null and workAdNm != ''">and WORK_AD_NM = #{workAdNm}</if>
- <if test="workDpNm != null and workDpNm != ''">and WORK_DP_NM = #{workDpNm}</if>
- <if test="unitRanks != null and unitRanks != ''">and UNIT_RANKS = #{unitRanks}</if>
- <if test="titles != null and titles != ''">and TITLES = #{titles}</if>
- <if test="duty != null and duty != ''">and DUTY = #{duty}</if>
- <if test="professional != null and professional != ''">and PROFESSIONAL = #{professional}</if>
- <if test="isCvl != null and isCvl != ''">and IS_CVL = #{isCvl}</if>
- <if test="orgCode != null and orgCode != ''">and ORG_CODE = #{orgCode}</if>
- <if test="orgNm != null and orgNm != ''">and ORG_NM = #{orgNm}</if>
- <if test="telnumb != null and telnumb != ''">and TELNUMB = #{telnumb}</if>
- <if test="mobilenumb != null and mobilenumb != ''">and MOBILENUMB = #{mobilenumb}</if>
- <if test="email != null and email != ''">and EMAIL = #{email}</if>
- <if test="emgcCntct != null and emgcCntct != ''">and EMGC_CNTCT = #{emgcCntct}</if>
- <if test="emgcCntctPhone != null and emgcCntctPhone != ''">and EMGC_CNTCT_PHONE = #{emgcCntctPhone}</if>
- <if test="bankAccount != null and bankAccount != ''">and BANK_ACCOUNT = #{bankAccount}</if>
- <if test="bankName != null and bankName != ''">and BANK_NAME = #{bankName}</if>
- <if test="oe != null and oe != ''">and OE = #{oe}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- </trim>
- </sql>
- <select id="get" resultMap="tacExprRcmmResultMap" parameterType="String" >
- select <include refid="table_columns" /> from TAC_EXPR_RCMM where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacExprRcmmResultMap">
- select <include refid="table_columns" /> from TAC_EXPR_RCMM <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="tacExprRcmmResultMap">
- select <include refid="table_columns" /> from TAC_EXPR_RCMM
- </select>
- <select id="findList" resultMap="tacExprRcmmResultMap">
- select <include refid="table_columns" /> from TAC_EXPR_RCMM <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from TAC_EXPR_RCMM <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacExprRcmm">
- insert into TAC_EXPR_RCMM( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from TAC_EXPR_RCMM where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacExprRcmm">
- delete from TAC_EXPR_RCMM <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_EXPR_RCMM set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacExprRcmm">
- update TAC_EXPR_RCMM
- <trim prefix="set" suffixOverrides=",">
- <if test="depCode != null and depCode != ''">DEP_CODE = #{depCode},</if>
- <if test="depNm != null and depNm != ''">DEP_NM = #{depNm},</if>
- <if test="name != null and name != ''">NAME = #{name},</if>
- <if test="sex != null and sex != ''">SEX = #{sex},</if>
- <if test="idNo != null and idNo != ''">ID_NO = #{idNo},</if>
- <if test="education != null and education != ''">EDUCATION = #{education},</if>
- <if test="roleType != null and roleType != ''">ROLE_TYPE = #{roleType},</if>
- <if test="groupType != null and groupType != ''">GROUP_TYPE = #{groupType},</if>
- <if test="isOffice != null and isOffice != ''">IS_OFFICE = #{isOffice},</if>
- <if test="isTraining != null and isTraining != ''">IS_TRAINING = #{isTraining},</if>
- <if test="workAd != null and workAd != ''">WORK_AD = #{workAd},</if>
- <if test="workAdNm != null and workAdNm != ''">WORK_AD_NM = #{workAdNm},</if>
- <if test="workDpNm != null and workDpNm != ''">WORK_DP_NM = #{workDpNm},</if>
- <if test="unitRanks != null and unitRanks != ''">UNIT_RANKS = #{unitRanks},</if>
- <if test="titles != null and titles != ''">TITLES = #{titles},</if>
- <if test="duty != null and duty != ''">DUTY = #{duty},</if>
- <if test="professional != null and professional != ''">PROFESSIONAL = #{professional},</if>
- <if test="isCvl != null and isCvl != ''">IS_CVL = #{isCvl},</if>
- <if test="orgCode != null and orgCode != ''">ORG_CODE = #{orgCode},</if>
- <if test="orgNm != null and orgNm != ''">ORG_NM = #{orgNm},</if>
- <if test="telnumb != null and telnumb != ''">TELNUMB = #{telnumb},</if>
- <if test="mobilenumb != null and mobilenumb != ''">MOBILENUMB = #{mobilenumb},</if>
- <if test="email != null and email != ''">EMAIL = #{email},</if>
- <if test="emgcCntct != null and emgcCntct != ''">EMGC_CNTCT = #{emgcCntct},</if>
- <if test="emgcCntctPhone != null and emgcCntctPhone != ''">EMGC_CNTCT_PHONE = #{emgcCntctPhone},</if>
- <if test="bankAccount != null and bankAccount != ''">BANK_ACCOUNT = #{bankAccount},</if>
- <if test="bankName != null and bankName != ''">BANK_NAME = #{bankName},</if>
- <if test="oe != null and oe != ''">OE = #{oe},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacExprRcmm">
- update TAC_EXPR_RCMM
- <trim prefix="set" suffixOverrides=",">
- <if test="depCode != null and depCode != ''">DEP_CODE = #{depCode},</if>
- <if test="depNm != null and depNm != ''">DEP_NM = #{depNm},</if>
- <if test="name != null and name != ''">NAME = #{name},</if>
- <if test="sex != null and sex != ''">SEX = #{sex},</if>
- <if test="idNo != null and idNo != ''">ID_NO = #{idNo},</if>
- <if test="education != null and education != ''">EDUCATION = #{education},</if>
- <if test="roleType != null and roleType != ''">ROLE_TYPE = #{roleType},</if>
- <if test="groupType != null and groupType != ''">GROUP_TYPE = #{groupType},</if>
- <if test="isOffice != null and isOffice != ''">IS_OFFICE = #{isOffice},</if>
- <if test="isTraining != null and isTraining != ''">IS_TRAINING = #{isTraining},</if>
- <if test="workAd != null and workAd != ''">WORK_AD = #{workAd},</if>
- <if test="workAdNm != null and workAdNm != ''">WORK_AD_NM = #{workAdNm},</if>
- <if test="workDpNm != null and workDpNm != ''">WORK_DP_NM = #{workDpNm},</if>
- <if test="unitRanks != null and unitRanks != ''">UNIT_RANKS = #{unitRanks},</if>
- <if test="titles != null and titles != ''">TITLES = #{titles},</if>
- <if test="duty != null and duty != ''">DUTY = #{duty},</if>
- <if test="professional != null and professional != ''">PROFESSIONAL = #{professional},</if>
- <if test="isCvl != null and isCvl != ''">IS_CVL = #{isCvl},</if>
- <if test="orgCode != null and orgCode != ''">ORG_CODE = #{orgCode},</if>
- <if test="orgNm != null and orgNm != ''">ORG_NM = #{orgNm},</if>
- <if test="telnumb != null and telnumb != ''">TELNUMB = #{telnumb},</if>
- <if test="mobilenumb != null and mobilenumb != ''">MOBILENUMB = #{mobilenumb},</if>
- <if test="email != null and email != ''">EMAIL = #{email},</if>
- <if test="emgcCntct != null and emgcCntct != ''">EMGC_CNTCT = #{emgcCntct},</if>
- <if test="emgcCntctPhone != null and emgcCntctPhone != ''">EMGC_CNTCT_PHONE = #{emgcCntctPhone},</if>
- <if test="bankAccount != null and bankAccount != ''">BANK_ACCOUNT = #{bankAccount},</if>
- <if test="bankName != null and bankName != ''">BANK_NAME = #{bankName},</if>
- <if test="oe != null and oe != ''">OE = #{oe},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- <select id="getRcmmList" resultMap="tacExprRcmmResultMap" parameterType="cn.com.goldenwater.dcproj.param.TacExprRcmmParam">
- select <include refid="table_columns" /> from TAC_EXPR_RCMM
- WHERE 1=1
- <if test="state != null and state != ''">
- and state in (${state})
- </if>
- <if test="workAd != null and workAd != ''">
- and work_ad in (${workAd})
- </if>
- <if test="province != null and province != ''">
- and work_ad like '%${province}%'
- </if>
- <if test="orgCode != null and orgCode != ''">
- and ORG_CODE in (${orgCode})
- </if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND IN_TM >= TO_DATE(#{sttm},'YYYY-MM-DD') AND IN_TM < TO_DATE(#{entm},'YYYY-MM-DD')+1
- </if>
- <if test="roleType != null and roleType != ''">
- AND ROLE_TYPE in (${roleType})
- </if>
- <if test="rcmmIds != null and rcmmIds != ''">
- AND id in (${rcmmIds})
- </if>
- <if test="isOffice != null and isOffice != ''">
- AND IS_OFFICE = #{isOffice}
- </if>
- <if test="isCvl != null and isCvl != ''">
- AND IS_CVL = #{isCvl}
- </if>
- </select>
- <select id="getRcmmListByTime" parameterType="cn.com.goldenwater.dcproj.param.TacExprRcmmParam" resultType="cn.com.goldenwater.dcproj.model.TacExprRcmm">
- SELECT r.* FROM TAC_EXPR_RCMM_RCRD t LEFT JOIN TAC_EXPR_RCMM r ON t.EXPR_RCMM_ID = r.id where r.id is not null and t.INTM = to_date( #{exprTm},'yyyy-MM-dd HH24:mi')
- <if test="roleType != null and roleType != ''">
- AND r.ROLE_TYPE in (${roleType})
- </if>
- <if test="name != null and name != ''">
- AND r.name like '%${name}%'
- </if>
- </select>
- <update id="updateByExprTime" parameterType="cn.com.goldenwater.dcproj.dto.TacExprRcmmRcrdDto">
- update TAC_EXPR_RCMM set state = '1' where id in (select EXPR_RCMM_ID from TAC_EXPR_RCMM_RCRD where INTM = to_date( #{exprTm},'yyyy-MM-dd HH24:mi'))
- </update>
- <select id="countRcmmByTitles" parameterType="cn.com.goldenwater.dcproj.param.TacExprRcmmParam" resultType="cn.com.goldenwater.dcproj.dto.TacCountDto">
- select count(*) as count,t.titles as code,
- (case when t.titles = '1' then '正高'
- when t.titles = '2' then '副高'
- when t.titles = '3' then '中级'
- else '初级' end) as name from TAC_EXPR_RCMM t
- where t.titles is not null
- <if test="state != null and state != ''">
- and state in (${state})
- </if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND INTM >= TO_DATE(#{sttm},'YYYY-MM-DD') AND INTM < TO_DATE(#{entm},'YYYY-MM-DD')+1
- </if>
- <if test="roleType != null and roleType != ''">
- AND ROLE_TYPE in (${roleType})
- </if>
- <if test="isOffice != null and isOffice != ''">
- AND IS_OFFICE = #{isOffice}
- </if>
- <if test="isCvl != null and isCvl != ''">
- AND IS_CVL = #{isCvl}
- </if>
- <if test="sex != null and sex != ''">
- and sex = #{sex}
- </if>
- <if test="education != null and education != ''">
- and education in (${education})
- </if>
- <if test="titles != null and titles != ''">
- and titles in (${titles})
- </if>
- <if test="unitRanks != null and unitRanks != ''">
- and UNIT_RANKS in ${unitRanks}
- </if>
- <if test="name != null and name != ''">
- and name like '%${name}%'
- </if>
- group by t.titles
- </select>
- <select id="countRcmmByRoleType" parameterType="cn.com.goldenwater.dcproj.param.TacExprRcmmParam" resultType="cn.com.goldenwater.dcproj.dto.TacCountDto">
- select count(*) as count,ROLE_TYPE as code,
- (
- CASE WHEN ROLE_TYPE = '20' THEN '专家组长'
- WHEN ROLE_TYPE = '19' THEN '助理'
- WHEN ROLE_TYPE = '11' THEN '前期专家'
- WHEN ROLE_TYPE = '12' THEN '建管专家'
- WHEN ROLE_TYPE = '13' THEN '计划专家'
- WHEN ROLE_TYPE = '14' THEN '财务专家'
- WHEN ROLE_TYPE = '15' THEN '质量专家'
- WHEN ROLE_TYPEE = '16' THEN '安全专家'
- WHEN ROLE_TYPE = '21' THEN '特派员'
- end
- ) as name from TAC_EXPR_RCMM t
- where ROLE_TYPE is not null
- <if test="state != null and state != ''">
- and state in (${state})
- </if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND INTM >= TO_DATE(#{sttm},'YYYY-MM-DD') AND INTM < TO_DATE(#{entm},'YYYY-MM-DD')+1
- </if>
- <if test="roleType != null and roleType != ''">
- AND ROLE_TYPE in (${roleType})
- </if>
- <if test="isOffice != null and isOffice != ''">
- AND IS_OFFICE = #{isOffice}
- </if>
- <if test="isCvl != null and isCvl != ''">
- AND IS_CVL = #{isCvl}
- </if>
- <if test="sex != null and sex != ''">
- and sex = #{sex}
- </if>
- <if test="education != null and education != ''">
- and education in (${education})
- </if>
- <if test="titles != null and titles != ''">
- and titles in (${titles})
- </if>
- <if test="unitRanks != null and unitRanks != ''">
- and UNIT_RANKS in ${unitRanks}
- </if>
- <if test="name != null and name != ''">
- and name like '%${name}%'
- </if>
- group by ROLE_TYPE
- </select>
- <select id="countRcmmByEducation" parameterType="cn.com.goldenwater.dcproj.param.TacExprRcmmParam" resultType="cn.com.goldenwater.dcproj.dto.TacCountDto">
- select count(*) as count, EDUCATION as code,
- (
- CASE WHEN EDUCATION = '1' THEN '专科及以下'
- WHEN EDUCATION = '2' THEN '本科'
- WHEN EDUCATION = '3' THEN '研究生'
- WHEN EDUCATION = '4' THEN '博士'
- end
- ) NAME from TAC_EXPR_RCMM t
- where EDUCATION is not null
- <if test="state != null and state != ''">
- and state in (${state})
- </if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND INTM >= TO_DATE(#{sttm},'YYYY-MM-DD') AND INTM < TO_DATE(#{entm},'YYYY-MM-DD')+1
- </if>
- <if test="roleType != null and roleType != ''">
- AND ROLE_TYPE in (${roleType})
- </if>
- <if test="isOffice != null and isOffice != ''">
- AND IS_OFFICE = #{isOffice}
- </if>
- <if test="isCvl != null and isCvl != ''">
- AND IS_CVL = #{isCvl}
- </if>
- <if test="sex != null and sex != ''">
- and sex = #{sex}
- </if>
- <if test="education != null and education != ''">
- and education in (${education})
- </if>
- <if test="titles != null and titles != ''">
- and titles in (${titles})
- </if>
- <if test="unitRanks != null and unitRanks != ''">
- and UNIT_RANKS in ${unitRanks}
- </if>
- <if test="name != null and name != ''">
- and name like '%${name}%'
- </if>
- group by EDUCATION
- </select>
- <select id="countRcmmByIsOffice" parameterType="cn.com.goldenwater.dcproj.param.TacExprRcmmParam" resultType="cn.com.goldenwater.dcproj.dto.TacCountDto">
- select count(*) as count, IS_OFFICE as code,
- (
- CASE WHEN IS_OFFICE = '1' THEN '在职'
- WHEN IS_OFFICE = '2' THEN '离职'
- end
- ) NAME from TAC_EXPR_RCMM t
- where IS_OFFICE is not null
- <if test="state != null and state != ''">
- and state in (${state})
- </if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND INTM >= TO_DATE(#{sttm},'YYYY-MM-DD') AND INTM < TO_DATE(#{entm},'YYYY-MM-DD')+1
- </if>
- <if test="roleType != null and roleType != ''">
- AND ROLE_TYPE in (${roleType})
- </if>
- <if test="isOffice != null and isOffice != ''">
- AND IS_OFFICE = #{isOffice}
- </if>
- <if test="isCvl != null and isCvl != ''">
- AND IS_CVL = #{isCvl}
- </if>
- <if test="sex != null and sex != ''">
- and sex = #{sex}
- </if>
- <if test="education != null and education != ''">
- and education in (${education})
- </if>
- <if test="titles != null and titles != ''">
- and titles in (${titles})
- </if>
- <if test="unitRanks != null and unitRanks != ''">
- and UNIT_RANKS in ${unitRanks}
- </if>
- <if test="name != null and name != ''">
- and name like '%${name}%'
- </if>
- group by IS_OFFICE
- </select>
- </mapper>
|