| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?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.BisInspAllWorkerPersDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspAllWorkerPers" id="bisInspAllWorkerPersResultMap">
- <result property="id" column="ID"/>
- <result property="guid" column="GUID"/>
- <result property="orgId" column="ORG_ID"/>
- <result property="orgNm" column="ORG_NM"/>
- <result property="persName" column="PERS_NAME"/>
- <result property="sex" column="SEX"/>
- <result property="age" column="AGE"/>
- <result property="mobilenumb" column="MOBILENUMB"/>
- <result property="email" column="EMAIL"/>
- <result property="idNumber" column="ID_NUMBER"/>
- <result property="bornDate" column="BORN_DATE"/>
- <result property="dpnm" column="DPNM"/>
- <result property="dppost" column="DPPOST"/>
- <result property="idnm" column="IDNM"/>
- <result property="plst" column="PLST"/>
- <result property="specialty" column="SPECIALTY"/>
- <result property="admDuty" column="ADM_DUTY"/>
- <result property="isWork" column="IS_WORK"/>
- <result property="isCvlSrvnts" column="IS_CVL_SRVNTS"/>
- <result property="expertPost" column="EXPERT_POST"/>
- <result property="imgurl" column="IMGURL"/>
- <result property="remark" column="REMARK"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- GUID,
- ORG_ID,
- ORG_NM,
- PERS_NAME,
- SEX,
- AGE,
- MOBILENUMB,
- EMAIL,
- ID_NUMBER,
- BORN_DATE,
- DPNM,
- DPPOST,
- IDNM,
- PLST,
- SPECIALTY,
- ADM_DUTY,
- IS_WORK,
- IS_CVL_SRVNTS,
- EXPERT_POST,
- IMGURL,
- REMARK,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{guid},
- #{orgId},
- #{orgNm},
- #{persName},
- #{sex},
- #{age},
- #{mobilenumb},
- #{email},
- #{idNumber},
- #{bornDate},
- #{dpnm},
- #{dppost},
- #{idnm},
- #{plst},
- #{specialty},
- #{admDuty},
- #{isWork},
- #{isCvlSrvnts},
- #{expertPost},
- #{imgurl},
- #{remark},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="guid != null and guid != ''">
- and GUID = #{guid}
- </if>
- <if test="orgId != null and orgId != ''">
- and ORG_ID = #{orgId}
- </if>
- <if test="orgNm != null and orgNm != ''">
- and ORG_NM = #{orgNm}
- </if>
- <if test="persName != null and persName != ''">
- and PERS_NAME like CONCAT('%', CONCAT(#{persName}, '%'))
- </if>
- <if test="sex != null and sex != ''">
- and SEX = #{sex}
- </if>
- <if test="age != null and age != ''">
- and AGE = #{age}
- </if>
- <if test="mobilenumb != null and mobilenumb != ''">
- and MOBILENUMB = #{mobilenumb}
- </if>
- <if test="email != null and email != ''">
- and EMAIL = #{email}
- </if>
- <if test="idNumber != null and idNumber != ''">
- and ID_NUMBER = #{idNumber}
- </if>
- <if test="bornDate != null">
- and BORN_DATE = #{bornDate}
- </if>
- <if test="dpnm != null and dpnm != ''">
- and DPNM = #{dpnm}
- </if>
- <if test="dppost != null and dppost != ''">
- and DPPOST like CONCAT('%', CONCAT(#{dppost}, '%'))
- </if>
- <if test="idnm != null and idnm != ''">
- and IDNM = #{idnm}
- </if>
- <if test="plst != null and plst != ''">
- and PLST = #{plst}
- </if>
- <if test="specialty != null and specialty != ''">
- and SPECIALTY like CONCAT('%', CONCAT(#{specialty}, '%'))
- </if>
- <if test="admDuty != null and admDuty != ''">
- and ADM_DUTY = #{admDuty}
- </if>
- <if test="isWork != null and isWork != ''">
- and IS_WORK = #{isWork}
- </if>
- <if test="isCvlSrvnts != null and isCvlSrvnts != ''">
- and IS_CVL_SRVNTS = #{isCvlSrvnts}
- </if>
- <if test="expertPost != null and expertPost != ''">
- and EXPERT_POST like CONCAT('%', CONCAT(#{expertPost}, '%'))
- </if>
- <if test="imgurl != null and imgurl != ''">
- and IMGURL = #{imgurl}
- </if>
- <if test="remark != null and remark != ''">
- and REMARK = #{remark}
- </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>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspAllWorkerPersResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_ALL_WORKER_PERS where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspAllWorkerPersResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_ALL_WORKER_PERS
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspAllWorkerPersResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_ALL_WORKER_PERS
- </select>
- <select id="findList" resultMap="bisInspAllWorkerPersResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_ALL_WORKER_PERS
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_ALL_WORKER_PERS
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspAllWorkerPers">
- insert into BIS_INSP_ALL_WORKER_PERS(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_ALL_WORKER_PERS set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspAllWorkerPers">
- update BIS_INSP_ALL_WORKER_PERS set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_ALL_WORKER_PERS set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspAllWorkerPers">
- update BIS_INSP_ALL_WORKER_PERS
- <trim prefix="set" suffixOverrides=",">
- <if test="guid != null and guid != ''">GUID
- = #{guid},
- </if>
- <if test="orgId != null and orgId != ''">ORG_ID
- = #{orgId},
- </if>
- <if test="orgNm != null and orgNm != ''">ORG_NM
- = #{orgNm},
- </if>
- <if test="persName != null and persName != ''">PERS_NAME
- = #{persName},
- </if>
- <if test="sex != null and sex != ''">SEX
- = #{sex},
- </if>
- <if test="age != null and age != ''">AGE
- = #{age},
- </if>
- <if test="mobilenumb != null and mobilenumb != ''">MOBILENUMB
- = #{mobilenumb},
- </if>
- <if test="email != null and email != ''">EMAIL
- = #{email},
- </if>
- <if test="idNumber != null and idNumber != ''">ID_NUMBER
- = #{idNumber},
- </if>
- <if test="bornDate != null">BORN_DATE
- = #{bornDate},
- </if>
- <if test="dpnm != null and dpnm != ''">DPNM
- = #{dpnm},
- </if>
- <if test="dppost != null and dppost != ''">DPPOST
- = #{dppost},
- </if>
- <if test="idnm != null and idnm != ''">IDNM
- = #{idnm},
- </if>
- <if test="plst != null and plst != ''">PLST
- = #{plst},
- </if>
- <if test="specialty != null and specialty != ''">SPECIALTY
- = #{specialty},
- </if>
- <if test="admDuty != null and admDuty != ''">ADM_DUTY
- = #{admDuty},
- </if>
- <if test="isWork != null and isWork != ''">IS_WORK
- = #{isWork},
- </if>
- <if test="isCvlSrvnts != null and isCvlSrvnts != ''">IS_CVL_SRVNTS
- = #{isCvlSrvnts},
- </if>
- <if test="expertPost != null and expertPost != ''">EXPERT_POST
- = #{expertPost},
- </if>
- <if test="imgurl != null and imgurl != ''">IMGURL
- = #{imgurl},
- </if>
- <if test="remark != null and remark != ''">REMARK
- = #{remark},
- </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.BisInspAllWorkerPers">
- update BIS_INSP_ALL_WORKER_PERS
- <trim prefix="set" suffixOverrides=",">
- <if test="guid != null and guid != ''">GUID
- = #{guid},
- </if>
- <if test="orgId != null and orgId != ''">ORG_ID
- = #{orgId},
- </if>
- <if test="orgNm != null and orgNm != ''">ORG_NM
- = #{orgNm},
- </if>
- <if test="persName != null and persName != ''">PERS_NAME
- = #{persName},
- </if>
- <if test="sex != null and sex != ''">SEX
- = #{sex},
- </if>
- <if test="age != null and age != ''">AGE
- = #{age},
- </if>
- <if test="mobilenumb != null and mobilenumb != ''">MOBILENUMB
- = #{mobilenumb},
- </if>
- <if test="email != null and email != ''">EMAIL
- = #{email},
- </if>
- <if test="idNumber != null and idNumber != ''">ID_NUMBER
- = #{idNumber},
- </if>
- <if test="bornDate != null">BORN_DATE
- = #{bornDate},
- </if>
- <if test="dpnm != null and dpnm != ''">DPNM
- = #{dpnm},
- </if>
- <if test="dppost != null and dppost != ''">DPPOST
- = #{dppost},
- </if>
- <if test="idnm != null and idnm != ''">IDNM
- = #{idnm},
- </if>
- <if test="plst != null and plst != ''">PLST
- = #{plst},
- </if>
- <if test="specialty != null and specialty != ''">SPECIALTY
- = #{specialty},
- </if>
- <if test="admDuty != null and admDuty != ''">ADM_DUTY
- = #{admDuty},
- </if>
- <if test="isWork != null and isWork != ''">IS_WORK
- = #{isWork},
- </if>
- <if test="isCvlSrvnts != null and isCvlSrvnts != ''">IS_CVL_SRVNTS
- = #{isCvlSrvnts},
- </if>
- <if test="expertPost != null and expertPost != ''">EXPERT_POST
- = #{expertPost},
- </if>
- <if test="imgurl != null and imgurl != ''">IMGURL
- = #{imgurl},
- </if>
- <if test="remark != null and remark != ''">REMARK
- = #{remark},
- </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 -->
- </mapper>
|