| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- <?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.BisInspCdepConDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspCdepCon" id="bisInspCdepConResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isReqCon" column="IS_REQ_CON"/>
- <result property="isSettTime" column="IS_SETT_TIME"/>
- <result property="isStab" column="IS_STAB"/>
- <result property="isMorFlu" column="IS_MOR_FLU"/>
- <result property="isMorStr" column="IS_MOR_STR"/>
- <result property="isFinMod" column="IS_FIN_MOD"/>
- <result property="isAbsSta" column="IS_ABS_STA"/>
- <result property="isSiltCon" column="IS_SILT_CON"/>
- <result property="isPackDen" column="IS_PACK_DEN"/>
- <result property="isApperDen" column="IS_APPER_DEN"/>
- <result property="isNeeParCon" column="IS_NEE_PAR_CON"/>
- <result property="isRobu" column="IS_ROBU"/>
- <result property="isCruInd" column="IS_CRU_IND"/>
- <result property="isSoftParCon" column="IS_SOFT_PAR_CON"/>
- <result property="isDegColMix" column="IS_DEG_COL_MIX"/>
- <result property="isRateBelMix" column="IS_RATE_BEL_MIX"/>
- <result property="isUnifMix" column="IS_UNIF_MIX"/>
- <result property="isConMix" column="IS_CON_MIX"/>
- <result property="isAppDenMix" column="IS_APP_DEN_MIX"/>
- <result property="isSettTimeMix" column="IS_SETT_TIME_MIX"/>
- <result property="isWatRatio" column="IS_WAT_RATIO"/>
- <result property="isCompStr" column="IS_COMP_STR"/>
- <result property="isFlexStr" column="IS_FLEX_STR"/>
- <result property="isTensStr" column="IS_TENS_STR"/>
- <result property="isYieStr" column="IS_YIE_STR"/>
- <result property="isElonAftFar" column="IS_ELON_AFT_FAR"/>
- <result property="isTenStrJoin" column="IS_TEN_STR_JOIN"/>
- <result property="isAltBen" column="IS_ALT_BEN"/>
- <result property="isCon" column="IS_CON"/>
- <result property="isExudRate" column="IS_EXUD_RATE"/>
- <result property="isApperDenMor" column="IS_APPER_DEN_MOR"/>
- <result property="isCompStrMor" column="IS_COMP_STR_MOR"/>
- <result property="isWatRedRate" column="IS_WAT_RED_RATE"/>
- <result property="isSolCon" column="IS_SOL_CON"/>
- <result property="isAirCon" column="IS_AIR_CON"/>
- <result property="isPh" column="IS_PH"/>
- <result property="isFineAdm" column="IS_FINE_ADM"/>
- <result property="isComStrRat" column="IS_COM_STR_RAT"/>
- <result property="isSetTimeDiff" column="IS_SET_TIME_DIFF"/>
- <result property="isFine" column="IS_FINE"/>
- <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_REQ_CON,
- IS_SETT_TIME,
- IS_STAB,
- IS_MOR_FLU,
- IS_MOR_STR,
- IS_FIN_MOD,
- IS_ABS_STA,
- IS_SILT_CON,
- IS_PACK_DEN,
- IS_APPER_DEN,
- IS_NEE_PAR_CON,
- IS_ROBU,
- IS_CRU_IND,
- IS_SOFT_PAR_CON,
- IS_DEG_COL_MIX,
- IS_RATE_BEL_MIX,
- IS_UNIF_MIX,
- IS_CON_MIX,
- IS_APP_DEN_MIX,
- IS_SETT_TIME_MIX,
- IS_WAT_RATIO,
- IS_COMP_STR,
- IS_FLEX_STR,
- IS_TENS_STR,
- IS_YIE_STR,
- IS_ELON_AFT_FAR,
- IS_TEN_STR_JOIN,
- IS_ALT_BEN,
- IS_CON,
- IS_EXUD_RATE,
- IS_APPER_DEN_MOR,
- IS_COMP_STR_MOR,
- IS_WAT_RED_RATE,
- IS_SOL_CON,
- IS_AIR_CON,
- IS_PH,
- IS_FINE_ADM,
- IS_COM_STR_RAT,
- IS_SET_TIME_DIFF,
- IS_FINE,
- PERS_ID,
- INTM,
- UPTM,
- STATE,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isReqCon},
- #{isSettTime},
- #{isStab},
- #{isMorFlu},
- #{isMorStr},
- #{isFinMod},
- #{isAbsSta},
- #{isSiltCon},
- #{isPackDen},
- #{isApperDen},
- #{isNeeParCon},
- #{isRobu},
- #{isCruInd},
- #{isSoftParCon},
- #{isDegColMix},
- #{isRateBelMix},
- #{isUnifMix},
- #{isConMix},
- #{isAppDenMix},
- #{isSettTimeMix},
- #{isWatRatio},
- #{isCompStr},
- #{isFlexStr},
- #{isTensStr},
- #{isYieStr},
- #{isElonAftFar},
- #{isTenStrJoin},
- #{isAltBen},
- #{isCon},
- #{isExudRate},
- #{isApperDenMor},
- #{isCompStrMor},
- #{isWatRedRate},
- #{isSolCon},
- #{isAirCon},
- #{isPh},
- #{isFineAdm},
- #{isComStrRat},
- #{isSetTimeDiff},
- #{isFine},
- #{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="isReqCon != null and isReqCon != ''">and IS_REQ_CON = #{isReqCon}</if>
- <if test="isSettTime != null and isSettTime != ''">and IS_SETT_TIME = #{isSettTime}</if>
- <if test="isStab != null and isStab != ''">and IS_STAB = #{isStab}</if>
- <if test="isMorFlu != null and isMorFlu != ''">and IS_MOR_FLU = #{isMorFlu}</if>
- <if test="isMorStr != null and isMorStr != ''">and IS_MOR_STR = #{isMorStr}</if>
- <if test="isFinMod != null and isFinMod != ''">and IS_FIN_MOD = #{isFinMod}</if>
- <if test="isAbsSta != null and isAbsSta != ''">and IS_ABS_STA = #{isAbsSta}</if>
- <if test="isSiltCon != null and isSiltCon != ''">and IS_SILT_CON = #{isSiltCon}</if>
- <if test="isPackDen != null and isPackDen != ''">and IS_PACK_DEN = #{isPackDen}</if>
- <if test="isApperDen != null and isApperDen != ''">and IS_APPER_DEN = #{isApperDen}</if>
- <if test="isNeeParCon != null and isNeeParCon != ''">and IS_NEE_PAR_CON = #{isNeeParCon}</if>
- <if test="isRobu != null and isRobu != ''">and IS_ROBU = #{isRobu}</if>
- <if test="isCruInd != null and isCruInd != ''">and IS_CRU_IND = #{isCruInd}</if>
- <if test="isSoftParCon != null and isSoftParCon != ''">and IS_SOFT_PAR_CON = #{isSoftParCon}</if>
- <if test="isDegColMix != null and isDegColMix != ''">and IS_DEG_COL_MIX = #{isDegColMix}</if>
- <if test="isRateBelMix != null and isRateBelMix != ''">and IS_RATE_BEL_MIX = #{isRateBelMix}</if>
- <if test="isUnifMix != null and isUnifMix != ''">and IS_UNIF_MIX = #{isUnifMix}</if>
- <if test="isConMix != null and isConMix != ''">and IS_CON_MIX = #{isConMix}</if>
- <if test="isAppDenMix != null and isAppDenMix != ''">and IS_APP_DEN_MIX = #{isAppDenMix}</if>
- <if test="isSettTimeMix != null and isSettTimeMix != ''">and IS_SETT_TIME_MIX = #{isSettTimeMix}</if>
- <if test="isWatRatio != null and isWatRatio != ''">and IS_WAT_RATIO = #{isWatRatio}</if>
- <if test="isCompStr != null and isCompStr != ''">and IS_COMP_STR = #{isCompStr}</if>
- <if test="isFlexStr != null and isFlexStr != ''">and IS_FLEX_STR = #{isFlexStr}</if>
- <if test="isTensStr != null and isTensStr != ''">and IS_TENS_STR = #{isTensStr}</if>
- <if test="isYieStr != null and isYieStr != ''">and IS_YIE_STR = #{isYieStr}</if>
- <if test="isElonAftFar != null and isElonAftFar != ''">and IS_ELON_AFT_FAR = #{isElonAftFar}</if>
- <if test="isTenStrJoin != null and isTenStrJoin != ''">and IS_TEN_STR_JOIN = #{isTenStrJoin}</if>
- <if test="isAltBen != null and isAltBen != ''">and IS_ALT_BEN = #{isAltBen}</if>
- <if test="isCon != null and isCon != ''">and IS_CON = #{isCon}</if>
- <if test="isExudRate != null and isExudRate != ''">and IS_EXUD_RATE = #{isExudRate}</if>
- <if test="isApperDenMor != null and isApperDenMor != ''">and IS_APPER_DEN_MOR = #{isApperDenMor}</if>
- <if test="isCompStrMor != null and isCompStrMor != ''">and IS_COMP_STR_MOR = #{isCompStrMor}</if>
- <if test="isWatRedRate != null and isWatRedRate != ''">and IS_WAT_RED_RATE = #{isWatRedRate}</if>
- <if test="isSolCon != null and isSolCon != ''">and IS_SOL_CON = #{isSolCon}</if>
- <if test="isAirCon != null and isAirCon != ''">and IS_AIR_CON = #{isAirCon}</if>
- <if test="isPh != null and isPh != ''">and IS_PH = #{isPh}</if>
- <if test="isFineAdm != null and isFineAdm != ''">and IS_FINE_ADM = #{isFineAdm}</if>
- <if test="isComStrRat != null and isComStrRat != ''">and IS_COM_STR_RAT = #{isComStrRat}</if>
- <if test="isSetTimeDiff != null and isSetTimeDiff != ''">and IS_SET_TIME_DIFF = #{isSetTimeDiff}</if>
- <if test="isFine != null and isFine != ''">and IS_FINE = #{isFine}</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>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspCdepConResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CON where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspCdepConResultMap">
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CON <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspCdepConResultMap">
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CON
- </select>
- <select id="findList" resultMap="bisInspCdepConResultMap">
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CON <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_CDEP_CON <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCon">
- insert into BIS_INSP_CDEP_CON( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_CDEP_CON set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCon">
- delete from BIS_INSP_CDEP_CON <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_CDEP_CON set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCon">
- update BIS_INSP_CDEP_CON
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isReqCon != null and isReqCon != ''">IS_REQ_CON = #{isReqCon},</if>
- <if test="isSettTime != null and isSettTime != ''">IS_SETT_TIME = #{isSettTime},</if>
- <if test="isStab != null and isStab != ''">IS_STAB = #{isStab},</if>
- <if test="isMorFlu != null and isMorFlu != ''">IS_MOR_FLU = #{isMorFlu},</if>
- <if test="isMorStr != null and isMorStr != ''">IS_MOR_STR = #{isMorStr},</if>
- <if test="isFinMod != null and isFinMod != ''">IS_FIN_MOD = #{isFinMod},</if>
- <if test="isAbsSta != null and isAbsSta != ''">IS_ABS_STA = #{isAbsSta},</if>
- <if test="isSiltCon != null and isSiltCon != ''">IS_SILT_CON = #{isSiltCon},</if>
- <if test="isPackDen != null and isPackDen != ''">IS_PACK_DEN = #{isPackDen},</if>
- <if test="isApperDen != null and isApperDen != ''">IS_APPER_DEN = #{isApperDen},</if>
- <if test="isNeeParCon != null and isNeeParCon != ''">IS_NEE_PAR_CON = #{isNeeParCon},</if>
- <if test="isRobu != null and isRobu != ''">IS_ROBU = #{isRobu},</if>
- <if test="isCruInd != null and isCruInd != ''">IS_CRU_IND = #{isCruInd},</if>
- <if test="isSoftParCon != null and isSoftParCon != ''">IS_SOFT_PAR_CON = #{isSoftParCon},</if>
- <if test="isDegColMix != null and isDegColMix != ''">IS_DEG_COL_MIX = #{isDegColMix},</if>
- <if test="isRateBelMix != null and isRateBelMix != ''">IS_RATE_BEL_MIX = #{isRateBelMix},</if>
- <if test="isUnifMix != null and isUnifMix != ''">IS_UNIF_MIX = #{isUnifMix},</if>
- <if test="isConMix != null and isConMix != ''">IS_CON_MIX = #{isConMix},</if>
- <if test="isAppDenMix != null and isAppDenMix != ''">IS_APP_DEN_MIX = #{isAppDenMix},</if>
- <if test="isSettTimeMix != null and isSettTimeMix != ''">IS_SETT_TIME_MIX = #{isSettTimeMix},</if>
- <if test="isWatRatio != null and isWatRatio != ''">IS_WAT_RATIO = #{isWatRatio},</if>
- <if test="isCompStr != null and isCompStr != ''">IS_COMP_STR = #{isCompStr},</if>
- <if test="isFlexStr != null and isFlexStr != ''">IS_FLEX_STR = #{isFlexStr},</if>
- <if test="isTensStr != null and isTensStr != ''">IS_TENS_STR = #{isTensStr},</if>
- <if test="isYieStr != null and isYieStr != ''">IS_YIE_STR = #{isYieStr},</if>
- <if test="isElonAftFar != null and isElonAftFar != ''">IS_ELON_AFT_FAR = #{isElonAftFar},</if>
- <if test="isTenStrJoin != null and isTenStrJoin != ''">IS_TEN_STR_JOIN = #{isTenStrJoin},</if>
- <if test="isAltBen != null and isAltBen != ''">IS_ALT_BEN = #{isAltBen},</if>
- <if test="isCon != null and isCon != ''">IS_CON = #{isCon},</if>
- <if test="isExudRate != null and isExudRate != ''">IS_EXUD_RATE = #{isExudRate},</if>
- <if test="isApperDenMor != null and isApperDenMor != ''">IS_APPER_DEN_MOR = #{isApperDenMor},</if>
- <if test="isCompStrMor != null and isCompStrMor != ''">IS_COMP_STR_MOR = #{isCompStrMor},</if>
- <if test="isWatRedRate != null and isWatRedRate != ''">IS_WAT_RED_RATE = #{isWatRedRate},</if>
- <if test="isSolCon != null and isSolCon != ''">IS_SOL_CON = #{isSolCon},</if>
- <if test="isAirCon != null and isAirCon != ''">IS_AIR_CON = #{isAirCon},</if>
- <if test="isPh != null and isPh != ''">IS_PH = #{isPh},</if>
- <if test="isFineAdm != null and isFineAdm != ''">IS_FINE_ADM = #{isFineAdm},</if>
- <if test="isComStrRat != null and isComStrRat != ''">IS_COM_STR_RAT = #{isComStrRat},</if>
- <if test="isSetTimeDiff != null and isSetTimeDiff != ''">IS_SET_TIME_DIFF = #{isSetTimeDiff},</if>
- <if test="isFine != null and isFine != ''">IS_FINE = #{isFine},</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.BisInspCdepCon">
- update BIS_INSP_CDEP_CON
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isReqCon != null and isReqCon != ''">IS_REQ_CON = #{isReqCon},</if>
- <if test="isSettTime != null and isSettTime != ''">IS_SETT_TIME = #{isSettTime},</if>
- <if test="isStab != null and isStab != ''">IS_STAB = #{isStab},</if>
- <if test="isMorFlu != null and isMorFlu != ''">IS_MOR_FLU = #{isMorFlu},</if>
- <if test="isMorStr != null and isMorStr != ''">IS_MOR_STR = #{isMorStr},</if>
- <if test="isFinMod != null and isFinMod != ''">IS_FIN_MOD = #{isFinMod},</if>
- <if test="isAbsSta != null and isAbsSta != ''">IS_ABS_STA = #{isAbsSta},</if>
- <if test="isSiltCon != null and isSiltCon != ''">IS_SILT_CON = #{isSiltCon},</if>
- <if test="isPackDen != null and isPackDen != ''">IS_PACK_DEN = #{isPackDen},</if>
- <if test="isApperDen != null and isApperDen != ''">IS_APPER_DEN = #{isApperDen},</if>
- <if test="isNeeParCon != null and isNeeParCon != ''">IS_NEE_PAR_CON = #{isNeeParCon},</if>
- <if test="isRobu != null and isRobu != ''">IS_ROBU = #{isRobu},</if>
- <if test="isCruInd != null and isCruInd != ''">IS_CRU_IND = #{isCruInd},</if>
- <if test="isSoftParCon != null and isSoftParCon != ''">IS_SOFT_PAR_CON = #{isSoftParCon},</if>
- <if test="isDegColMix != null and isDegColMix != ''">IS_DEG_COL_MIX = #{isDegColMix},</if>
- <if test="isRateBelMix != null and isRateBelMix != ''">IS_RATE_BEL_MIX = #{isRateBelMix},</if>
- <if test="isUnifMix != null and isUnifMix != ''">IS_UNIF_MIX = #{isUnifMix},</if>
- <if test="isConMix != null and isConMix != ''">IS_CON_MIX = #{isConMix},</if>
- <if test="isAppDenMix != null and isAppDenMix != ''">IS_APP_DEN_MIX = #{isAppDenMix},</if>
- <if test="isSettTimeMix != null and isSettTimeMix != ''">IS_SETT_TIME_MIX = #{isSettTimeMix},</if>
- <if test="isWatRatio != null and isWatRatio != ''">IS_WAT_RATIO = #{isWatRatio},</if>
- <if test="isCompStr != null and isCompStr != ''">IS_COMP_STR = #{isCompStr},</if>
- <if test="isFlexStr != null and isFlexStr != ''">IS_FLEX_STR = #{isFlexStr},</if>
- <if test="isTensStr != null and isTensStr != ''">IS_TENS_STR = #{isTensStr},</if>
- <if test="isYieStr != null and isYieStr != ''">IS_YIE_STR = #{isYieStr},</if>
- <if test="isElonAftFar != null and isElonAftFar != ''">IS_ELON_AFT_FAR = #{isElonAftFar},</if>
- <if test="isTenStrJoin != null and isTenStrJoin != ''">IS_TEN_STR_JOIN = #{isTenStrJoin},</if>
- <if test="isAltBen != null and isAltBen != ''">IS_ALT_BEN = #{isAltBen},</if>
- <if test="isCon != null and isCon != ''">IS_CON = #{isCon},</if>
- <if test="isExudRate != null and isExudRate != ''">IS_EXUD_RATE = #{isExudRate},</if>
- <if test="isApperDenMor != null and isApperDenMor != ''">IS_APPER_DEN_MOR = #{isApperDenMor},</if>
- <if test="isCompStrMor != null and isCompStrMor != ''">IS_COMP_STR_MOR = #{isCompStrMor},</if>
- <if test="isWatRedRate != null and isWatRedRate != ''">IS_WAT_RED_RATE = #{isWatRedRate},</if>
- <if test="isSolCon != null and isSolCon != ''">IS_SOL_CON = #{isSolCon},</if>
- <if test="isAirCon != null and isAirCon != ''">IS_AIR_CON = #{isAirCon},</if>
- <if test="isPh != null and isPh != ''">IS_PH = #{isPh},</if>
- <if test="isFineAdm != null and isFineAdm != ''">IS_FINE_ADM = #{isFineAdm},</if>
- <if test="isComStrRat != null and isComStrRat != ''">IS_COM_STR_RAT = #{isComStrRat},</if>
- <if test="isSetTimeDiff != null and isSetTimeDiff != ''">IS_SET_TIME_DIFF = #{isSetTimeDiff},</if>
- <if test="isFine != null and isFine != ''">IS_FINE = #{isFine},</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>
|