| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?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.BisInspCdepCapDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspCdepCap" id="bisInspCdepCapResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isPro" column="IS_PRO"/>
- <result property="isDen" column="IS_DEN"/>
- <result property="isGraSize" column="IS_GRA_SIZE"/>
- <result property="isRelDen" column="IS_REL_DEN"/>
- <result property="isMaxDryDen" column="IS_MAX_DRY_DEN"/>
- <result property="isQptMoiCon" column="IS_QPT_MOI_CON"/>
- <result property="isPerCoe" column="IS_PER_COE"/>
- <result property="isCriSloPen" column="IS_CRI_SLO_PEN"/>
- <result property="isDirStr" column="IS_DIR_STR"/>
- <result property="isLiqLim" column="IS_LIQ_LIM"/>
- <result property="isPlaLim" column="IS_PLA_LIM"/>
- <result property="isDefMod" column="IS_DEF_MOD"/>
- <result property="isSituDen" column="IS_SITU_DEN"/>
- <result property="isStaPen" column="IS_STA_PEN"/>
- <result property="isFounBea" column="IS_FOUN_BEA"/>
- <result property="isBeaCap" column="IS_BEA_CAP"/>
- <result property="isBasWei" column="IS_BAS_WEI"/>
- <result property="isThick" column="IS_THICK"/>
- <result property="isTenStr" column="IS_TEN_STR"/>
- <result property="isTearStr" column="IS_TEAR_STR"/>
- <result property="isCylBurStr" column="IS_CYL_BUR_STR"/>
- <result property="isElong" column="IS_ELONG"/>
- <result property="isBuikDen" column="IS_BUIK_DEN"/>
- <result property="isMoiConRock" column="IS_MOI_CON_ROCK"/>
- <result property="isUniComStr" column="IS_UNI_COM_STR"/>
- <result property="isModEla" column="IS_MOD_ELA"/>
- <result property="isMoiCon" column="IS_MOI_CON"/>
- <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,
- RGSTR_ID,
- IS_PRO,
- IS_DEN,
- IS_GRA_SIZE,
- IS_REL_DEN,
- IS_MAX_DRY_DEN,
- IS_QPT_MOI_CON,
- IS_PER_COE,
- IS_CRI_SLO_PEN,
- IS_DIR_STR,
- IS_LIQ_LIM,
- IS_PLA_LIM,
- IS_DEF_MOD,
- IS_SITU_DEN,
- IS_STA_PEN,
- IS_FOUN_BEA,
- IS_BEA_CAP,
- IS_BAS_WEI,
- IS_THICK,
- IS_TEN_STR,
- IS_TEAR_STR,
- IS_CYL_BUR_STR,
- IS_ELONG,
- IS_BUIK_DEN,
- IS_MOI_CON_ROCK,
- IS_UNI_COM_STR,
- IS_MOD_ELA,
- IS_MOI_CON,
- STATE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isPro},
- #{isDen},
- #{isGraSize},
- #{isRelDen},
- #{isMaxDryDen},
- #{isQptMoiCon},
- #{isPerCoe},
- #{isCriSloPen},
- #{isDirStr},
- #{isLiqLim},
- #{isPlaLim},
- #{isDefMod},
- #{isSituDen},
- #{isStaPen},
- #{isFounBea},
- #{isBeaCap},
- #{isBasWei},
- #{isThick},
- #{isTenStr},
- #{isTearStr},
- #{isCylBurStr},
- #{isElong},
- #{isBuikDen},
- #{isMoiConRock},
- #{isUniComStr},
- #{isModEla},
- #{isMoiCon},
- #{state},
- #{persId},
- #{intm},
- #{uptm},
- #{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="isPro != null and isPro != ''">and IS_PRO = #{isPro}</if>
- <if test="isDen != null and isDen != ''">and IS_DEN = #{isDen}</if>
- <if test="isGraSize != null and isGraSize != ''">and IS_GRA_SIZE = #{isGraSize}</if>
- <if test="isRelDen != null and isRelDen != ''">and IS_REL_DEN = #{isRelDen}</if>
- <if test="isMaxDryDen != null and isMaxDryDen != ''">and IS_MAX_DRY_DEN = #{isMaxDryDen}</if>
- <if test="isQptMoiCon != null and isQptMoiCon != ''">and IS_QPT_MOI_CON = #{isQptMoiCon}</if>
- <if test="isPerCoe != null and isPerCoe != ''">and IS_PER_COE = #{isPerCoe}</if>
- <if test="isCriSloPen != null and isCriSloPen != ''">and IS_CRI_SLO_PEN = #{isCriSloPen}</if>
- <if test="isDirStr != null and isDirStr != ''">and IS_DIR_STR = #{isDirStr}</if>
- <if test="isLiqLim != null and isLiqLim != ''">and IS_LIQ_LIM = #{isLiqLim}</if>
- <if test="isPlaLim != null and isPlaLim != ''">and IS_PLA_LIM = #{isPlaLim}</if>
- <if test="isDefMod != null and isDefMod != ''">and IS_DEF_MOD = #{isDefMod}</if>
- <if test="isSituDen != null and isSituDen != ''">and IS_SITU_DEN = #{isSituDen}</if>
- <if test="isStaPen != null and isStaPen != ''">and IS_STA_PEN = #{isStaPen}</if>
- <if test="isFounBea != null and isFounBea != ''">and IS_FOUN_BEA = #{isFounBea}</if>
- <if test="isBeaCap != null and isBeaCap != ''">and IS_BEA_CAP = #{isBeaCap}</if>
- <if test="isBasWei != null and isBasWei != ''">and IS_BAS_WEI = #{isBasWei}</if>
- <if test="isThick != null and isThick != ''">and IS_THICK = #{isThick}</if>
- <if test="isTenStr != null and isTenStr != ''">and IS_TEN_STR = #{isTenStr}</if>
- <if test="isTearStr != null and isTearStr != ''">and IS_TEAR_STR = #{isTearStr}</if>
- <if test="isCylBurStr != null and isCylBurStr != ''">and IS_CYL_BUR_STR = #{isCylBurStr}</if>
- <if test="isElong != null and isElong != ''">and IS_ELONG = #{isElong}</if>
- <if test="isBuikDen != null and isBuikDen != ''">and IS_BUIK_DEN = #{isBuikDen}</if>
- <if test="isMoiConRock != null and isMoiConRock != ''">and IS_MOI_CON_ROCK = #{isMoiConRock}</if>
- <if test="isUniComStr != null and isUniComStr != ''">and IS_UNI_COM_STR = #{isUniComStr}</if>
- <if test="isModEla != null and isModEla != ''">and IS_MOD_ELA = #{isModEla}</if>
- <if test="isMoiCon != null and isMoiCon != ''">and IS_MOI_CON = #{isMoiCon}</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="bisInspCdepCapResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspCdepCapResultMap">
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspCdepCapResultMap">
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP
- </select>
- <select id="findList" resultMap="bisInspCdepCapResultMap">
- select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_CDEP_CAP <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCap">
- insert into BIS_INSP_CDEP_CAP( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_CDEP_CAP set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCap">
- delete from BIS_INSP_CDEP_CAP <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_CDEP_CAP set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCap">
- update BIS_INSP_CDEP_CAP
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isPro != null and isPro != ''">IS_PRO = #{isPro},</if>
- <if test="isDen != null and isDen != ''">IS_DEN = #{isDen},</if>
- <if test="isGraSize != null and isGraSize != ''">IS_GRA_SIZE = #{isGraSize},</if>
- <if test="isRelDen != null and isRelDen != ''">IS_REL_DEN = #{isRelDen},</if>
- <if test="isMaxDryDen != null and isMaxDryDen != ''">IS_MAX_DRY_DEN = #{isMaxDryDen},</if>
- <if test="isQptMoiCon != null and isQptMoiCon != ''">IS_QPT_MOI_CON = #{isQptMoiCon},</if>
- <if test="isPerCoe != null and isPerCoe != ''">IS_PER_COE = #{isPerCoe},</if>
- <if test="isCriSloPen != null and isCriSloPen != ''">IS_CRI_SLO_PEN = #{isCriSloPen},</if>
- <if test="isDirStr != null and isDirStr != ''">IS_DIR_STR = #{isDirStr},</if>
- <if test="isLiqLim != null and isLiqLim != ''">IS_LIQ_LIM = #{isLiqLim},</if>
- <if test="isPlaLim != null and isPlaLim != ''">IS_PLA_LIM = #{isPlaLim},</if>
- <if test="isDefMod != null and isDefMod != ''">IS_DEF_MOD = #{isDefMod},</if>
- <if test="isSituDen != null and isSituDen != ''">IS_SITU_DEN = #{isSituDen},</if>
- <if test="isStaPen != null and isStaPen != ''">IS_STA_PEN = #{isStaPen},</if>
- <if test="isFounBea != null and isFounBea != ''">IS_FOUN_BEA = #{isFounBea},</if>
- <if test="isBeaCap != null and isBeaCap != ''">IS_BEA_CAP = #{isBeaCap},</if>
- <if test="isBasWei != null and isBasWei != ''">IS_BAS_WEI = #{isBasWei},</if>
- <if test="isThick != null and isThick != ''">IS_THICK = #{isThick},</if>
- <if test="isTenStr != null and isTenStr != ''">IS_TEN_STR = #{isTenStr},</if>
- <if test="isTearStr != null and isTearStr != ''">IS_TEAR_STR = #{isTearStr},</if>
- <if test="isCylBurStr != null and isCylBurStr != ''">IS_CYL_BUR_STR = #{isCylBurStr},</if>
- <if test="isElong != null and isElong != ''">IS_ELONG = #{isElong},</if>
- <if test="isBuikDen != null and isBuikDen != ''">IS_BUIK_DEN = #{isBuikDen},</if>
- <if test="isMoiConRock != null and isMoiConRock != ''">IS_MOI_CON_ROCK = #{isMoiConRock},</if>
- <if test="isUniComStr != null and isUniComStr != ''">IS_UNI_COM_STR = #{isUniComStr},</if>
- <if test="isModEla != null and isModEla != ''">IS_MOD_ELA = #{isModEla},</if>
- <if test="isMoiCon != null and isMoiCon != ''">IS_MOI_CON = #{isMoiCon},</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.BisInspCdepCap">
- update BIS_INSP_CDEP_CAP
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isPro != null and isPro != ''">IS_PRO = #{isPro},</if>
- <if test="isDen != null and isDen != ''">IS_DEN = #{isDen},</if>
- <if test="isGraSize != null and isGraSize != ''">IS_GRA_SIZE = #{isGraSize},</if>
- <if test="isRelDen != null and isRelDen != ''">IS_REL_DEN = #{isRelDen},</if>
- <if test="isMaxDryDen != null and isMaxDryDen != ''">IS_MAX_DRY_DEN = #{isMaxDryDen},</if>
- <if test="isQptMoiCon != null and isQptMoiCon != ''">IS_QPT_MOI_CON = #{isQptMoiCon},</if>
- <if test="isPerCoe != null and isPerCoe != ''">IS_PER_COE = #{isPerCoe},</if>
- <if test="isCriSloPen != null and isCriSloPen != ''">IS_CRI_SLO_PEN = #{isCriSloPen},</if>
- <if test="isDirStr != null and isDirStr != ''">IS_DIR_STR = #{isDirStr},</if>
- <if test="isLiqLim != null and isLiqLim != ''">IS_LIQ_LIM = #{isLiqLim},</if>
- <if test="isPlaLim != null and isPlaLim != ''">IS_PLA_LIM = #{isPlaLim},</if>
- <if test="isDefMod != null and isDefMod != ''">IS_DEF_MOD = #{isDefMod},</if>
- <if test="isSituDen != null and isSituDen != ''">IS_SITU_DEN = #{isSituDen},</if>
- <if test="isStaPen != null and isStaPen != ''">IS_STA_PEN = #{isStaPen},</if>
- <if test="isFounBea != null and isFounBea != ''">IS_FOUN_BEA = #{isFounBea},</if>
- <if test="isBeaCap != null and isBeaCap != ''">IS_BEA_CAP = #{isBeaCap},</if>
- <if test="isBasWei != null and isBasWei != ''">IS_BAS_WEI = #{isBasWei},</if>
- <if test="isThick != null and isThick != ''">IS_THICK = #{isThick},</if>
- <if test="isTenStr != null and isTenStr != ''">IS_TEN_STR = #{isTenStr},</if>
- <if test="isTearStr != null and isTearStr != ''">IS_TEAR_STR = #{isTearStr},</if>
- <if test="isCylBurStr != null and isCylBurStr != ''">IS_CYL_BUR_STR = #{isCylBurStr},</if>
- <if test="isElong != null and isElong != ''">IS_ELONG = #{isElong},</if>
- <if test="isBuikDen != null and isBuikDen != ''">IS_BUIK_DEN = #{isBuikDen},</if>
- <if test="isMoiConRock != null and isMoiConRock != ''">IS_MOI_CON_ROCK = #{isMoiConRock},</if>
- <if test="isUniComStr != null and isUniComStr != ''">IS_UNI_COM_STR = #{isUniComStr},</if>
- <if test="isModEla != null and isModEla != ''">IS_MOD_ELA = #{isModEla},</if>
- <if test="isMoiCon != null and isMoiCon != ''">IS_MOI_CON = #{isMoiCon},</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 -->
- </mapper>
|