| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504 |
- <?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.BisInspYnDrdmpSafetyDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSafety" id="bisInspYnDrdmpSafetyResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isSafeGuid" column="IS_SAFE_GUID"/>
- <result property="safeGuidNote" column="SAFE_GUID_NOTE"/>
- <result property="isMakLev" column="IS_MAK_LEV"/>
- <result property="makLevNote" column="MAK_LEV_NOTE"/>
- <result property="isMakKey" column="IS_MAK_KEY"/>
- <result property="makKeyNote" column="MAK_KEY_NOTE"/>
- <result property="isMakMwr" column="IS_MAK_MWR"/>
- <result property="makMwrNote" column="MAK_MWR_NOTE"/>
- <result property="isMakBook" column="IS_MAK_BOOK"/>
- <result property="makBookNote" column="MAK_BOOK_NOTE"/>
- <result property="isManList" column="IS_MAN_LIST"/>
- <result property="manListNote" column="MAN_LIST_NOTE"/>
- <result property="isMakPlan" column="IS_MAK_PLAN"/>
- <result property="makPlanNote" column="MAK_PLAN_NOTE"/>
- <result property="isPlanAct" column="IS_PLAN_ACT"/>
- <result property="planActNote" column="PLAN_ACT_NOTE"/>
- <result property="isDrvRun" column="IS_DRV_RUN"/>
- <result property="drvRunNote" column="DRV_RUN_NOTE"/>
- <result property="isMakSys" column="IS_MAK_SYS"/>
- <result property="makSysNote" column="MAK_SYS_NOTE"/>
- <result property="isMakDb" column="IS_MAK_DB"/>
- <result property="makDbNote" column="MAK_DB_NOTE"/>
- <result property="isActIt" column="IS_ACT_IT"/>
- <result property="actItNote" column="ACT_IT_NOTE"/>
- <result property="isNactPhn" column="IS_NACT_PHN"/>
- <result property="nactPhnNote" column="NACT_PHN_NOTE"/>
- <result property="isActPblm" column="IS_ACT_PBLM"/>
- <result property="actPblmNote" column="ACT_PBLM_NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="state" column="STATE"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_SAFE_GUID,
- SAFE_GUID_NOTE,
- IS_MAK_LEV,
- MAK_LEV_NOTE,
- IS_MAK_KEY,
- MAK_KEY_NOTE,
- IS_MAK_MWR,
- MAK_MWR_NOTE,
- IS_MAK_BOOK,
- MAK_BOOK_NOTE,
- IS_MAN_LIST,
- MAN_LIST_NOTE,
- IS_MAK_PLAN,
- MAK_PLAN_NOTE,
- IS_PLAN_ACT,
- PLAN_ACT_NOTE,
- IS_DRV_RUN,
- DRV_RUN_NOTE,
- IS_MAK_SYS,
- MAK_SYS_NOTE,
- IS_MAK_DB,
- MAK_DB_NOTE,
- IS_ACT_IT,
- ACT_IT_NOTE,
- IS_NACT_PHN,
- NACT_PHN_NOTE,
- IS_ACT_PBLM,
- ACT_PBLM_NOTE,
- PERS_ID,
- INTM,
- UPTM,
- STATE,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isSafeGuid},
- #{safeGuidNote},
- #{isMakLev},
- #{makLevNote},
- #{isMakKey},
- #{makKeyNote},
- #{isMakMwr},
- #{makMwrNote},
- #{isMakBook},
- #{makBookNote},
- #{isManList},
- #{manListNote},
- #{isMakPlan},
- #{makPlanNote},
- #{isPlanAct},
- #{planActNote},
- #{isDrvRun},
- #{drvRunNote},
- #{isMakSys},
- #{makSysNote},
- #{isMakDb},
- #{makDbNote},
- #{isActIt},
- #{actItNote},
- #{isNactPhn},
- #{nactPhnNote},
- #{isActPblm},
- #{actPblmNote},
- #{persId},
- #{intm},
- #{uptm},
- #{state},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="rgstrId != null and rgstrId != ''">
- and RGSTR_ID = #{rgstrId}
- </if>
- <if test="isSafeGuid != null and isSafeGuid != ''">
- and IS_SAFE_GUID = #{isSafeGuid}
- </if>
- <if test="safeGuidNote != null and safeGuidNote != ''">
- and SAFE_GUID_NOTE = #{safeGuidNote}
- </if>
- <if test="isMakLev != null and isMakLev != ''">
- and IS_MAK_LEV = #{isMakLev}
- </if>
- <if test="makLevNote != null and makLevNote != ''">
- and MAK_LEV_NOTE = #{makLevNote}
- </if>
- <if test="isMakKey != null and isMakKey != ''">
- and IS_MAK_KEY = #{isMakKey}
- </if>
- <if test="makKeyNote != null and makKeyNote != ''">
- and MAK_KEY_NOTE = #{makKeyNote}
- </if>
- <if test="isMakMwr != null and isMakMwr != ''">
- and IS_MAK_MWR = #{isMakMwr}
- </if>
- <if test="makMwrNote != null and makMwrNote != ''">
- and MAK_MWR_NOTE = #{makMwrNote}
- </if>
- <if test="isMakBook != null and isMakBook != ''">
- and IS_MAK_BOOK = #{isMakBook}
- </if>
- <if test="makBookNote != null and makBookNote != ''">
- and MAK_BOOK_NOTE = #{makBookNote}
- </if>
- <if test="isManList != null and isManList != ''">
- and IS_MAN_LIST = #{isManList}
- </if>
- <if test="manListNote != null and manListNote != ''">
- and MAN_LIST_NOTE = #{manListNote}
- </if>
- <if test="isMakPlan != null and isMakPlan != ''">
- and IS_MAK_PLAN = #{isMakPlan}
- </if>
- <if test="makPlanNote != null and makPlanNote != ''">
- and MAK_PLAN_NOTE = #{makPlanNote}
- </if>
- <if test="isPlanAct != null and isPlanAct != ''">
- and IS_PLAN_ACT = #{isPlanAct}
- </if>
- <if test="planActNote != null and planActNote != ''">
- and PLAN_ACT_NOTE = #{planActNote}
- </if>
- <if test="isDrvRun != null and isDrvRun != ''">
- and IS_DRV_RUN = #{isDrvRun}
- </if>
- <if test="drvRunNote != null and drvRunNote != ''">
- and DRV_RUN_NOTE = #{drvRunNote}
- </if>
- <if test="isMakSys != null and isMakSys != ''">
- and IS_MAK_SYS = #{isMakSys}
- </if>
- <if test="makSysNote != null and makSysNote != ''">
- and MAK_SYS_NOTE = #{makSysNote}
- </if>
- <if test="isMakDb != null and isMakDb != ''">
- and IS_MAK_DB = #{isMakDb}
- </if>
- <if test="makDbNote != null and makDbNote != ''">
- and MAK_DB_NOTE = #{makDbNote}
- </if>
- <if test="isActIt != null and isActIt != ''">
- and IS_ACT_IT = #{isActIt}
- </if>
- <if test="actItNote != null and actItNote != ''">
- and ACT_IT_NOTE = #{actItNote}
- </if>
- <if test="isNactPhn != null and isNactPhn != ''">
- and IS_NACT_PHN = #{isNactPhn}
- </if>
- <if test="nactPhnNote != null and nactPhnNote != ''">
- and NACT_PHN_NOTE = #{nactPhnNote}
- </if>
- <if test="isActPblm != null and isActPblm != ''">
- and IS_ACT_PBLM = #{isActPblm}
- </if>
- <if test="actPblmNote != null and actPblmNote != ''">
- and ACT_PBLM_NOTE = #{actPblmNote}
- </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="state != null and state != ''">
- and STATE = #{state}
- </if>
- <if test="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspYnDrdmpSafetyResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SAFETY where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspYnDrdmpSafetyResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SAFETY
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspYnDrdmpSafetyResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SAFETY
- </select>
- <select id="findList" resultMap="bisInspYnDrdmpSafetyResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SAFETY
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_YN_DRDMP_SAFETY
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSafety">
- insert into BIS_INSP_YN_DRDMP_SAFETY(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_YN_DRDMP_SAFETY set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSafety">
- update BIS_INSP_YN_DRDMP_SAFETY set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_YN_DRDMP_SAFETY set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSafety">
- update BIS_INSP_YN_DRDMP_SAFETY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isSafeGuid != null and isSafeGuid != ''">IS_SAFE_GUID
- = #{isSafeGuid},
- </if>
- <if test="safeGuidNote != null and safeGuidNote != ''">SAFE_GUID_NOTE
- = #{safeGuidNote},
- </if>
- <if test="isMakLev != null and isMakLev != ''">IS_MAK_LEV
- = #{isMakLev},
- </if>
- <if test="makLevNote != null and makLevNote != ''">MAK_LEV_NOTE
- = #{makLevNote},
- </if>
- <if test="isMakKey != null and isMakKey != ''">IS_MAK_KEY
- = #{isMakKey},
- </if>
- <if test="makKeyNote != null and makKeyNote != ''">MAK_KEY_NOTE
- = #{makKeyNote},
- </if>
- <if test="isMakMwr != null and isMakMwr != ''">IS_MAK_MWR
- = #{isMakMwr},
- </if>
- <if test="makMwrNote != null and makMwrNote != ''">MAK_MWR_NOTE
- = #{makMwrNote},
- </if>
- <if test="isMakBook != null and isMakBook != ''">IS_MAK_BOOK
- = #{isMakBook},
- </if>
- <if test="makBookNote != null and makBookNote != ''">MAK_BOOK_NOTE
- = #{makBookNote},
- </if>
- <if test="isManList != null and isManList != ''">IS_MAN_LIST
- = #{isManList},
- </if>
- <if test="manListNote != null and manListNote != ''">MAN_LIST_NOTE
- = #{manListNote},
- </if>
- <if test="isMakPlan != null and isMakPlan != ''">IS_MAK_PLAN
- = #{isMakPlan},
- </if>
- <if test="makPlanNote != null and makPlanNote != ''">MAK_PLAN_NOTE
- = #{makPlanNote},
- </if>
- <if test="isPlanAct != null and isPlanAct != ''">IS_PLAN_ACT
- = #{isPlanAct},
- </if>
- <if test="planActNote != null and planActNote != ''">PLAN_ACT_NOTE
- = #{planActNote},
- </if>
- <if test="isDrvRun != null and isDrvRun != ''">IS_DRV_RUN
- = #{isDrvRun},
- </if>
- <if test="drvRunNote != null and drvRunNote != ''">DRV_RUN_NOTE
- = #{drvRunNote},
- </if>
- <if test="isMakSys != null and isMakSys != ''">IS_MAK_SYS
- = #{isMakSys},
- </if>
- <if test="makSysNote != null and makSysNote != ''">MAK_SYS_NOTE
- = #{makSysNote},
- </if>
- <if test="isMakDb != null and isMakDb != ''">IS_MAK_DB
- = #{isMakDb},
- </if>
- <if test="makDbNote != null and makDbNote != ''">MAK_DB_NOTE
- = #{makDbNote},
- </if>
- <if test="isActIt != null and isActIt != ''">IS_ACT_IT
- = #{isActIt},
- </if>
- <if test="actItNote != null and actItNote != ''">ACT_IT_NOTE
- = #{actItNote},
- </if>
- <if test="isNactPhn != null and isNactPhn != ''">IS_NACT_PHN
- = #{isNactPhn},
- </if>
- <if test="nactPhnNote != null and nactPhnNote != ''">NACT_PHN_NOTE
- = #{nactPhnNote},
- </if>
- <if test="isActPblm != null and isActPblm != ''">IS_ACT_PBLM
- = #{isActPblm},
- </if>
- <if test="actPblmNote != null and actPblmNote != ''">ACT_PBLM_NOTE
- = #{actPblmNote},
- </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="state != null and state != ''">STATE
- = #{state},
- </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.BisInspYnDrdmpSafety">
- update BIS_INSP_YN_DRDMP_SAFETY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isSafeGuid != null and isSafeGuid != ''">IS_SAFE_GUID
- = #{isSafeGuid},
- </if>
- <if test="safeGuidNote != null and safeGuidNote != ''">SAFE_GUID_NOTE
- = #{safeGuidNote},
- </if>
- <if test="isMakLev != null and isMakLev != ''">IS_MAK_LEV
- = #{isMakLev},
- </if>
- <if test="makLevNote != null and makLevNote != ''">MAK_LEV_NOTE
- = #{makLevNote},
- </if>
- <if test="isMakKey != null and isMakKey != ''">IS_MAK_KEY
- = #{isMakKey},
- </if>
- <if test="makKeyNote != null and makKeyNote != ''">MAK_KEY_NOTE
- = #{makKeyNote},
- </if>
- <if test="isMakMwr != null and isMakMwr != ''">IS_MAK_MWR
- = #{isMakMwr},
- </if>
- <if test="makMwrNote != null and makMwrNote != ''">MAK_MWR_NOTE
- = #{makMwrNote},
- </if>
- <if test="isMakBook != null and isMakBook != ''">IS_MAK_BOOK
- = #{isMakBook},
- </if>
- <if test="makBookNote != null and makBookNote != ''">MAK_BOOK_NOTE
- = #{makBookNote},
- </if>
- <if test="isManList != null and isManList != ''">IS_MAN_LIST
- = #{isManList},
- </if>
- <if test="manListNote != null and manListNote != ''">MAN_LIST_NOTE
- = #{manListNote},
- </if>
- <if test="isMakPlan != null and isMakPlan != ''">IS_MAK_PLAN
- = #{isMakPlan},
- </if>
- <if test="makPlanNote != null and makPlanNote != ''">MAK_PLAN_NOTE
- = #{makPlanNote},
- </if>
- <if test="isPlanAct != null and isPlanAct != ''">IS_PLAN_ACT
- = #{isPlanAct},
- </if>
- <if test="planActNote != null and planActNote != ''">PLAN_ACT_NOTE
- = #{planActNote},
- </if>
- <if test="isDrvRun != null and isDrvRun != ''">IS_DRV_RUN
- = #{isDrvRun},
- </if>
- <if test="drvRunNote != null and drvRunNote != ''">DRV_RUN_NOTE
- = #{drvRunNote},
- </if>
- <if test="isMakSys != null and isMakSys != ''">IS_MAK_SYS
- = #{isMakSys},
- </if>
- <if test="makSysNote != null and makSysNote != ''">MAK_SYS_NOTE
- = #{makSysNote},
- </if>
- <if test="isMakDb != null and isMakDb != ''">IS_MAK_DB
- = #{isMakDb},
- </if>
- <if test="makDbNote != null and makDbNote != ''">MAK_DB_NOTE
- = #{makDbNote},
- </if>
- <if test="isActIt != null and isActIt != ''">IS_ACT_IT
- = #{isActIt},
- </if>
- <if test="actItNote != null and actItNote != ''">ACT_IT_NOTE
- = #{actItNote},
- </if>
- <if test="isNactPhn != null and isNactPhn != ''">IS_NACT_PHN
- = #{isNactPhn},
- </if>
- <if test="nactPhnNote != null and nactPhnNote != ''">NACT_PHN_NOTE
- = #{nactPhnNote},
- </if>
- <if test="isActPblm != null and isActPblm != ''">IS_ACT_PBLM
- = #{isActPblm},
- </if>
- <if test="actPblmNote != null and actPblmNote != ''">ACT_PBLM_NOTE
- = #{actPblmNote},
- </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="state != null and state != ''">STATE
- = #{state},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|