| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <?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.BisInspWtuntRgstrCollegeDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege" id="bisInspWtuntRgstrCollegeResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="fueNum" column="FUE_NUM"/>
- <result property="taasNum" column="TAAS_NUM"/>
- <result property="fctwu18" column="FCTWU18"/>
- <result property="fctwu19" column="FCTWU19"/>
- <result property="isPlWs" column="IS_PL_WS"/>
- <result property="planDpt" column="PLAN_DPT"/>
- <result property="planUseWw18" column="PLAN_USE_WW18"/>
- <result property="planUseWw19" column="PLAN_USE_WW19"/>
- <result property="isOvPlanUseWw" column="IS_OV_PLAN_USE_WW"/>
- <result property="isExeTopmus" column="IS_EXE_TOPMUS"/>
- <result property="isNowu" column="IS_NOWU"/>
- <result property="owMth" column="OW_MTH"/>
- <result property="nowu19" column="NOWU19"/>
- <result property="isNkmwun" column="IS_NKMWUN"/>
- <result property="sittmowrIsExact" column="SITTMOWR_IS_EXACT"/>
- <result property="isBuldSrarfwc" column="IS_BULD_SRARFWC"/>
- <result property="isWrwco" column="IS_WRWCO"/>
- <result property="uwu" column="UWU"/>
- <result property="uwuWu" column="UWU_WU"/>
- <result property="isIowsaouWmf" column="IS_IOWSAOU_WMF"/>
- <result property="wmfIsNr" column="WMF_IS_NR"/>
- <result property="isBuldOwmp" column="IS_BULD_OWMP"/>
- <result property="owmpIsNr" column="OWMP_IS_NR"/>
- <result property="isTacwnaau" column="IS_TACWNAAU"/>
- <result property="orasbowuIsComp" column="ORASBOWU_IS_COMP"/>
- <result property="isIwcidta" column="IS_IWCIDTA"/>
- <result property="isPwsikwua" column="IS_PWSIKWUA"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="status" column="STATUS"/>
- <result property="tacwnaauNote" column="TACWNAAU_NOTE"/>
- <result property="fctwu18Well" column="FCTWU18_WELL"/>
- <result property="fctwu19Well" column="FCTWU19_WELL"/>
- <result property="fctwu18Swhs" column="FCTWU18_SWHS"/>
- <result property="fctwu19Swhs" column="FCTWU19_SWHS"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- FUE_NUM,
- TAAS_NUM,
- FCTWU18,
- FCTWU19,
- FCTWU18_WELL,
- FCTWU19_WELL,
- FCTWU18_SWHS,
- FCTWU19_SWHS,
- IS_PL_WS,
- PLAN_DPT,
- PLAN_USE_WW18,
- PLAN_USE_WW19,
- IS_OV_PLAN_USE_WW,
- IS_EXE_TOPMUS,
- IS_NOWU,
- OW_MTH,
- NOWU19,
- IS_NKMWUN,
- SITTMOWR_IS_EXACT,
- IS_BULD_SRARFWC,
- IS_WRWCO,
- UWU,
- UWU_WU,
- IS_IOWSAOU_WMF,
- WMF_IS_NR,
- IS_BULD_OWMP,
- OWMP_IS_NR,
- IS_TACWNAAU,
- ORASBOWU_IS_COMP,
- IS_IWCIDTA,
- IS_PWSIKWUA,
- INTM,
- UPTM,
- STATUS,
- TACWNAAU_NOTE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{fueNum},
- #{taasNum},
- #{fctwu18},
- #{fctwu19},
- #{fctwu18Well},
- #{fctwu19Well},
- #{fctwu18Swhs},
- #{fctwu19Swhs},
- #{isPlWs},
- #{planDpt},
- #{planUseWw18},
- #{planUseWw19},
- #{isOvPlanUseWw},
- #{isExeTopmus},
- #{isNowu},
- #{owMth},
- #{nowu19},
- #{isNkmwun},
- #{sittmowrIsExact},
- #{isBuldSrarfwc},
- #{isWrwco},
- #{uwu},
- #{uwuWu},
- #{isIowsaouWmf},
- #{wmfIsNr},
- #{isBuldOwmp},
- #{owmpIsNr},
- #{isTacwnaau},
- #{orasbowuIsComp},
- #{isIwcidta},
- #{isPwsikwua},
- #{intm},
- #{uptm},
- #{status},
- #{tacwnaauNote}
- </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="fueNum != null and fueNum != ''">and FUE_NUM = #{fueNum}</if>
- <if test="taasNum != null and taasNum != ''">and TAAS_NUM = #{taasNum}</if>
- <if test="fctwu18 != null and fctwu18 != ''">and FCTWU18 = #{fctwu18}</if>
- <if test="fctwu19 != null and fctwu19 != ''">and FCTWU19 = #{fctwu19}</if>
- <if test="fctwu18Well != null and fctwu18Well != ''">and FCTWU18_WELL = #{fctwu18Well}</if>
- <if test="fctwu19Well != null and fctwu19Well != ''">and FCTWU19_WELL = #{fctwu19Well}</if>
- <if test="fctwu18Swhs != null and fctwu18Swhs != ''">and FCTWU18_SWHS = #{fctwu18Swhs}</if>
- <if test="fctwu19Swhs != null and fctwu19Swhs != ''">and FCTWU19_SWHS = #{fctwu19Swhs}</if>
- <if test="isPlWs != null and isPlWs != ''">and IS_PL_WS = #{isPlWs}</if>
- <if test="planDpt != null and planDpt != ''">and PLAN_DPT = #{planDpt}</if>
- <if test="planUseWw18 != null and planUseWw18 != ''">and PLAN_USE_WW18 = #{planUseWw18}</if>
- <if test="planUseWw19 != null and planUseWw19 != ''">and PLAN_USE_WW19 = #{planUseWw19}</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">and IS_OV_PLAN_USE_WW = #{isOvPlanUseWw}</if>
- <if test="isExeTopmus != null and isExeTopmus != ''">and IS_EXE_TOPMUS = #{isExeTopmus}</if>
- <if test="isNowu != null and isNowu != ''">and IS_NOWU = #{isNowu}</if>
- <if test="owMth != null and owMth != ''">and OW_MTH = #{owMth}</if>
- <if test="nowu19 != null and nowu19 != ''">and NOWU19 = #{nowu19}</if>
- <if test="isNkmwun != null and isNkmwun != ''">and IS_NKMWUN = #{isNkmwun}</if>
- <if test="sittmowrIsExact != null and sittmowrIsExact != ''">and SITTMOWR_IS_EXACT = #{sittmowrIsExact}</if>
- <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">and IS_BULD_SRARFWC = #{isBuldSrarfwc}</if>
- <if test="isWrwco != null and isWrwco != ''">and IS_WRWCO = #{isWrwco}</if>
- <if test="uwu != null and uwu != ''">and UWU = #{uwu}</if>
- <if test="uwuWu != null and uwuWu != ''">and UWU_WU = #{uwuWu}</if>
- <if test="isIowsaouWmf != null and isIowsaouWmf != ''">and IS_IOWSAOU_WMF = #{isIowsaouWmf}</if>
- <if test="wmfIsNr != null and wmfIsNr != ''">and WMF_IS_NR = #{wmfIsNr}</if>
- <if test="isBuldOwmp != null and isBuldOwmp != ''">and IS_BULD_OWMP = #{isBuldOwmp}</if>
- <if test="owmpIsNr != null and owmpIsNr != ''">and OWMP_IS_NR = #{owmpIsNr}</if>
- <if test="isTacwnaau != null and isTacwnaau != ''">and IS_TACWNAAU = #{isTacwnaau}</if>
- <if test="orasbowuIsComp != null and orasbowuIsComp != ''">and ORASBOWU_IS_COMP = #{orasbowuIsComp}</if>
- <if test="isIwcidta != null and isIwcidta != ''">and IS_IWCIDTA = #{isIwcidta}</if>
- <if test="isPwsikwua != null and isPwsikwua != ''">and IS_PWSIKWUA = #{isPwsikwua}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="tacwnaauNote != null and tacwnaauNote != ''">and TACWNAAU_NOTE = #{tacwnaauNote}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWtuntRgstrCollegeResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WTUNT_RGSTR_COLLEGE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWtuntRgstrCollegeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WTUNT_RGSTR_COLLEGE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspWtuntRgstrCollegeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WTUNT_RGSTR_COLLEGE
- </select>
- <select id="findList" resultMap="bisInspWtuntRgstrCollegeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WTUNT_RGSTR_COLLEGE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_WTUNT_RGSTR_COLLEGE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
- insert into BIS_INSP_WTUNT_RGSTR_COLLEGE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WTUNT_RGSTR_COLLEGE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
- delete from BIS_INSP_WTUNT_RGSTR_COLLEGE
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WTUNT_RGSTR_COLLEGE set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
- update BIS_INSP_WTUNT_RGSTR_COLLEGE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="fueNum != null and fueNum != ''">FUE_NUM = #{fueNum},</if>
- <if test="taasNum != null and taasNum != ''">TAAS_NUM = #{taasNum},</if>
- <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
- <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
- <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
- <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
- <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
- <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
- <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
- <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
- <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
- <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
- <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
- <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
- <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
- <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
- <if test="isNkmwun != null and isNkmwun != ''">IS_NKMWUN = #{isNkmwun},</if>
- <if test="sittmowrIsExact != null and sittmowrIsExact != ''">SITTMOWR_IS_EXACT = #{sittmowrIsExact},</if>
- <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
- <if test="isWrwco != null and isWrwco != ''">IS_WRWCO = #{isWrwco},</if>
- <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
- <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
- <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
- <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
- <if test="isBuldOwmp != null and isBuldOwmp != ''">IS_BULD_OWMP = #{isBuldOwmp},</if>
- <if test="owmpIsNr != null and owmpIsNr != ''">OWMP_IS_NR = #{owmpIsNr},</if>
- <if test="isTacwnaau != null and isTacwnaau != ''">IS_TACWNAAU = #{isTacwnaau},</if>
- <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
- <if test="isIwcidta != null and isIwcidta != ''">IS_IWCIDTA = #{isIwcidta},</if>
- <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="tacwnaauNote != null and tacwnaauNote != ''">TACWNAAU_NOTE = #{tacwnaauNote},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtuntRgstrCollege">
- update BIS_INSP_WTUNT_RGSTR_COLLEGE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="fueNum != null and fueNum != ''">FUE_NUM = #{fueNum},</if>
- <if test="taasNum != null and taasNum != ''">TAAS_NUM = #{taasNum},</if>
- <if test="fctwu18 != null and fctwu18 != ''">FCTWU18 = #{fctwu18},</if>
- <if test="fctwu19 != null and fctwu19 != ''">FCTWU19 = #{fctwu19},</if>
- <if test="fctwu18Well != null and fctwu18Well != ''">FCTWU18_WELL = #{fctwu18Well},</if>
- <if test="fctwu19Well != null and fctwu19Well != ''">FCTWU19_WELL = #{fctwu19Well},</if>
- <if test="fctwu18Swhs != null and fctwu18Swhs != ''">FCTWU18_SWHS = #{fctwu18Swhs},</if>
- <if test="fctwu19Swhs != null and fctwu19Swhs != ''">FCTWU19_SWHS = #{fctwu19Swhs},</if>
- <if test="isPlWs != null and isPlWs != ''">IS_PL_WS = #{isPlWs},</if>
- <if test="planDpt != null and planDpt != ''">PLAN_DPT = #{planDpt},</if>
- <if test="planUseWw18 != null and planUseWw18 != ''">PLAN_USE_WW18 = #{planUseWw18},</if>
- <if test="planUseWw19 != null and planUseWw19 != ''">PLAN_USE_WW19 = #{planUseWw19},</if>
- <if test="isOvPlanUseWw != null and isOvPlanUseWw != ''">IS_OV_PLAN_USE_WW = #{isOvPlanUseWw},</if>
- <if test="isExeTopmus != null and isExeTopmus != ''">IS_EXE_TOPMUS = #{isExeTopmus},</if>
- <if test="isNowu != null and isNowu != ''">IS_NOWU = #{isNowu},</if>
- <if test="owMth != null and owMth != ''">OW_MTH = #{owMth},</if>
- <if test="nowu19 != null and nowu19 != ''">NOWU19 = #{nowu19},</if>
- <if test="isNkmwun != null and isNkmwun != ''">IS_NKMWUN = #{isNkmwun},</if>
- <if test="sittmowrIsExact != null and sittmowrIsExact != ''">SITTMOWR_IS_EXACT = #{sittmowrIsExact},</if>
- <if test="isBuldSrarfwc != null and isBuldSrarfwc != ''">IS_BULD_SRARFWC = #{isBuldSrarfwc},</if>
- <if test="isWrwco != null and isWrwco != ''">IS_WRWCO = #{isWrwco},</if>
- <if test="uwu != null and uwu != ''">UWU = #{uwu},</if>
- <if test="uwuWu != null and uwuWu != ''">UWU_WU = #{uwuWu},</if>
- <if test="isIowsaouWmf != null and isIowsaouWmf != ''">IS_IOWSAOU_WMF = #{isIowsaouWmf},</if>
- <if test="wmfIsNr != null and wmfIsNr != ''">WMF_IS_NR = #{wmfIsNr},</if>
- <if test="isBuldOwmp != null and isBuldOwmp != ''">IS_BULD_OWMP = #{isBuldOwmp},</if>
- <if test="owmpIsNr != null and owmpIsNr != ''">OWMP_IS_NR = #{owmpIsNr},</if>
- <if test="isTacwnaau != null and isTacwnaau != ''">IS_TACWNAAU = #{isTacwnaau},</if>
- <if test="orasbowuIsComp != null and orasbowuIsComp != ''">ORASBOWU_IS_COMP = #{orasbowuIsComp},</if>
- <if test="isIwcidta != null and isIwcidta != ''">IS_IWCIDTA = #{isIwcidta},</if>
- <if test="isPwsikwua != null and isPwsikwua != ''">IS_PWSIKWUA = #{isPwsikwua},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="tacwnaauNote != null and tacwnaauNote != ''">TACWNAAU_NOTE = #{tacwnaauNote},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|