BisInspCdepCapDao.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="cn.com.goldenwater.dcproj.dao.BisInspCdepCapDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspCdepCap" id="bisInspCdepCapResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isPro" column="IS_PRO"/>
  8. <result property="isDen" column="IS_DEN"/>
  9. <result property="isGraSize" column="IS_GRA_SIZE"/>
  10. <result property="isRelDen" column="IS_REL_DEN"/>
  11. <result property="isMaxDryDen" column="IS_MAX_DRY_DEN"/>
  12. <result property="isQptMoiCon" column="IS_QPT_MOI_CON"/>
  13. <result property="isPerCoe" column="IS_PER_COE"/>
  14. <result property="isCriSloPen" column="IS_CRI_SLO_PEN"/>
  15. <result property="isDirStr" column="IS_DIR_STR"/>
  16. <result property="isLiqLim" column="IS_LIQ_LIM"/>
  17. <result property="isPlaLim" column="IS_PLA_LIM"/>
  18. <result property="isDefMod" column="IS_DEF_MOD"/>
  19. <result property="isSituDen" column="IS_SITU_DEN"/>
  20. <result property="isStaPen" column="IS_STA_PEN"/>
  21. <result property="isFounBea" column="IS_FOUN_BEA"/>
  22. <result property="isBeaCap" column="IS_BEA_CAP"/>
  23. <result property="isBasWei" column="IS_BAS_WEI"/>
  24. <result property="isThick" column="IS_THICK"/>
  25. <result property="isTenStr" column="IS_TEN_STR"/>
  26. <result property="isTearStr" column="IS_TEAR_STR"/>
  27. <result property="isCylBurStr" column="IS_CYL_BUR_STR"/>
  28. <result property="isElong" column="IS_ELONG"/>
  29. <result property="isBuikDen" column="IS_BUIK_DEN"/>
  30. <result property="isMoiConRock" column="IS_MOI_CON_ROCK"/>
  31. <result property="isUniComStr" column="IS_UNI_COM_STR"/>
  32. <result property="isModEla" column="IS_MOD_ELA"/>
  33. <result property="isMoiCon" column="IS_MOI_CON"/>
  34. <result property="state" column="STATE"/>
  35. <result property="persId" column="PERS_ID"/>
  36. <result property="intm" column="INTM"/>
  37. <result property="uptm" column="UPTM"/>
  38. <result property="dataStat" column="DATA_STAT"/>
  39. </resultMap>
  40. <sql id="table_columns">
  41. ID,
  42. RGSTR_ID,
  43. IS_PRO,
  44. IS_DEN,
  45. IS_GRA_SIZE,
  46. IS_REL_DEN,
  47. IS_MAX_DRY_DEN,
  48. IS_QPT_MOI_CON,
  49. IS_PER_COE,
  50. IS_CRI_SLO_PEN,
  51. IS_DIR_STR,
  52. IS_LIQ_LIM,
  53. IS_PLA_LIM,
  54. IS_DEF_MOD,
  55. IS_SITU_DEN,
  56. IS_STA_PEN,
  57. IS_FOUN_BEA,
  58. IS_BEA_CAP,
  59. IS_BAS_WEI,
  60. IS_THICK,
  61. IS_TEN_STR,
  62. IS_TEAR_STR,
  63. IS_CYL_BUR_STR,
  64. IS_ELONG,
  65. IS_BUIK_DEN,
  66. IS_MOI_CON_ROCK,
  67. IS_UNI_COM_STR,
  68. IS_MOD_ELA,
  69. IS_MOI_CON,
  70. STATE,
  71. PERS_ID,
  72. INTM,
  73. UPTM,
  74. DATA_STAT
  75. </sql>
  76. <sql id="entity_properties">
  77. #{id},
  78. #{rgstrId},
  79. #{isPro},
  80. #{isDen},
  81. #{isGraSize},
  82. #{isRelDen},
  83. #{isMaxDryDen},
  84. #{isQptMoiCon},
  85. #{isPerCoe},
  86. #{isCriSloPen},
  87. #{isDirStr},
  88. #{isLiqLim},
  89. #{isPlaLim},
  90. #{isDefMod},
  91. #{isSituDen},
  92. #{isStaPen},
  93. #{isFounBea},
  94. #{isBeaCap},
  95. #{isBasWei},
  96. #{isThick},
  97. #{isTenStr},
  98. #{isTearStr},
  99. #{isCylBurStr},
  100. #{isElong},
  101. #{isBuikDen},
  102. #{isMoiConRock},
  103. #{isUniComStr},
  104. #{isModEla},
  105. #{isMoiCon},
  106. #{state},
  107. #{persId},
  108. #{intm},
  109. #{uptm},
  110. #{dataStat}
  111. </sql>
  112. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  113. <sql id="page_where">
  114. <trim prefix="where" prefixOverrides="and | or ">
  115. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  116. <if test="isPro != null and isPro != ''">and IS_PRO = #{isPro}</if>
  117. <if test="isDen != null and isDen != ''">and IS_DEN = #{isDen}</if>
  118. <if test="isGraSize != null and isGraSize != ''">and IS_GRA_SIZE = #{isGraSize}</if>
  119. <if test="isRelDen != null and isRelDen != ''">and IS_REL_DEN = #{isRelDen}</if>
  120. <if test="isMaxDryDen != null and isMaxDryDen != ''">and IS_MAX_DRY_DEN = #{isMaxDryDen}</if>
  121. <if test="isQptMoiCon != null and isQptMoiCon != ''">and IS_QPT_MOI_CON = #{isQptMoiCon}</if>
  122. <if test="isPerCoe != null and isPerCoe != ''">and IS_PER_COE = #{isPerCoe}</if>
  123. <if test="isCriSloPen != null and isCriSloPen != ''">and IS_CRI_SLO_PEN = #{isCriSloPen}</if>
  124. <if test="isDirStr != null and isDirStr != ''">and IS_DIR_STR = #{isDirStr}</if>
  125. <if test="isLiqLim != null and isLiqLim != ''">and IS_LIQ_LIM = #{isLiqLim}</if>
  126. <if test="isPlaLim != null and isPlaLim != ''">and IS_PLA_LIM = #{isPlaLim}</if>
  127. <if test="isDefMod != null and isDefMod != ''">and IS_DEF_MOD = #{isDefMod}</if>
  128. <if test="isSituDen != null and isSituDen != ''">and IS_SITU_DEN = #{isSituDen}</if>
  129. <if test="isStaPen != null and isStaPen != ''">and IS_STA_PEN = #{isStaPen}</if>
  130. <if test="isFounBea != null and isFounBea != ''">and IS_FOUN_BEA = #{isFounBea}</if>
  131. <if test="isBeaCap != null and isBeaCap != ''">and IS_BEA_CAP = #{isBeaCap}</if>
  132. <if test="isBasWei != null and isBasWei != ''">and IS_BAS_WEI = #{isBasWei}</if>
  133. <if test="isThick != null and isThick != ''">and IS_THICK = #{isThick}</if>
  134. <if test="isTenStr != null and isTenStr != ''">and IS_TEN_STR = #{isTenStr}</if>
  135. <if test="isTearStr != null and isTearStr != ''">and IS_TEAR_STR = #{isTearStr}</if>
  136. <if test="isCylBurStr != null and isCylBurStr != ''">and IS_CYL_BUR_STR = #{isCylBurStr}</if>
  137. <if test="isElong != null and isElong != ''">and IS_ELONG = #{isElong}</if>
  138. <if test="isBuikDen != null and isBuikDen != ''">and IS_BUIK_DEN = #{isBuikDen}</if>
  139. <if test="isMoiConRock != null and isMoiConRock != ''">and IS_MOI_CON_ROCK = #{isMoiConRock}</if>
  140. <if test="isUniComStr != null and isUniComStr != ''">and IS_UNI_COM_STR = #{isUniComStr}</if>
  141. <if test="isModEla != null and isModEla != ''">and IS_MOD_ELA = #{isModEla}</if>
  142. <if test="isMoiCon != null and isMoiCon != ''">and IS_MOI_CON = #{isMoiCon}</if>
  143. <if test="state != null and state != ''">and STATE = #{state}</if>
  144. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  145. <if test="intm != null">and INTM = #{intm}</if>
  146. <if test="uptm != null">and UPTM = #{uptm}</if>
  147. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  148. </trim>
  149. </sql>
  150. <select id="get" resultMap="bisInspCdepCapResultMap" parameterType="String" >
  151. select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP where RGSTR_ID = #{id}
  152. </select>
  153. <select id="getBy" resultMap="bisInspCdepCapResultMap">
  154. select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP <include refid="page_where" />
  155. </select>
  156. <select id="findAll" resultMap="bisInspCdepCapResultMap">
  157. select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP
  158. </select>
  159. <select id="findList" resultMap="bisInspCdepCapResultMap">
  160. select <include refid="table_columns" /> from BIS_INSP_CDEP_CAP <include refid="page_where" />
  161. </select>
  162. <select id="selectCount" resultType="int" >
  163. select count(ID) from BIS_INSP_CDEP_CAP <include refid="page_where" />
  164. </select>
  165. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCap">
  166. insert into BIS_INSP_CDEP_CAP( <include refid="table_columns" /> )
  167. values ( <include refid="entity_properties" /> )
  168. </insert>
  169. <delete id="delete" parameterType="java.lang.String">
  170. update BIS_INSP_CDEP_CAP set DATA_STAT='9' where ID = #{id}
  171. </delete>
  172. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCap">
  173. delete from BIS_INSP_CDEP_CAP <include refid="page_where" />
  174. </delete>
  175. <update id="deleteInFlag" parameterType="java.lang.String">
  176. update BIS_INSP_CDEP_CAP set flag_valid = 0 where ID = #{id}
  177. </update>
  178. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCap">
  179. update BIS_INSP_CDEP_CAP
  180. <trim prefix="set" suffixOverrides=",">
  181. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  182. <if test="isPro != null and isPro != ''">IS_PRO = #{isPro},</if>
  183. <if test="isDen != null and isDen != ''">IS_DEN = #{isDen},</if>
  184. <if test="isGraSize != null and isGraSize != ''">IS_GRA_SIZE = #{isGraSize},</if>
  185. <if test="isRelDen != null and isRelDen != ''">IS_REL_DEN = #{isRelDen},</if>
  186. <if test="isMaxDryDen != null and isMaxDryDen != ''">IS_MAX_DRY_DEN = #{isMaxDryDen},</if>
  187. <if test="isQptMoiCon != null and isQptMoiCon != ''">IS_QPT_MOI_CON = #{isQptMoiCon},</if>
  188. <if test="isPerCoe != null and isPerCoe != ''">IS_PER_COE = #{isPerCoe},</if>
  189. <if test="isCriSloPen != null and isCriSloPen != ''">IS_CRI_SLO_PEN = #{isCriSloPen},</if>
  190. <if test="isDirStr != null and isDirStr != ''">IS_DIR_STR = #{isDirStr},</if>
  191. <if test="isLiqLim != null and isLiqLim != ''">IS_LIQ_LIM = #{isLiqLim},</if>
  192. <if test="isPlaLim != null and isPlaLim != ''">IS_PLA_LIM = #{isPlaLim},</if>
  193. <if test="isDefMod != null and isDefMod != ''">IS_DEF_MOD = #{isDefMod},</if>
  194. <if test="isSituDen != null and isSituDen != ''">IS_SITU_DEN = #{isSituDen},</if>
  195. <if test="isStaPen != null and isStaPen != ''">IS_STA_PEN = #{isStaPen},</if>
  196. <if test="isFounBea != null and isFounBea != ''">IS_FOUN_BEA = #{isFounBea},</if>
  197. <if test="isBeaCap != null and isBeaCap != ''">IS_BEA_CAP = #{isBeaCap},</if>
  198. <if test="isBasWei != null and isBasWei != ''">IS_BAS_WEI = #{isBasWei},</if>
  199. <if test="isThick != null and isThick != ''">IS_THICK = #{isThick},</if>
  200. <if test="isTenStr != null and isTenStr != ''">IS_TEN_STR = #{isTenStr},</if>
  201. <if test="isTearStr != null and isTearStr != ''">IS_TEAR_STR = #{isTearStr},</if>
  202. <if test="isCylBurStr != null and isCylBurStr != ''">IS_CYL_BUR_STR = #{isCylBurStr},</if>
  203. <if test="isElong != null and isElong != ''">IS_ELONG = #{isElong},</if>
  204. <if test="isBuikDen != null and isBuikDen != ''">IS_BUIK_DEN = #{isBuikDen},</if>
  205. <if test="isMoiConRock != null and isMoiConRock != ''">IS_MOI_CON_ROCK = #{isMoiConRock},</if>
  206. <if test="isUniComStr != null and isUniComStr != ''">IS_UNI_COM_STR = #{isUniComStr},</if>
  207. <if test="isModEla != null and isModEla != ''">IS_MOD_ELA = #{isModEla},</if>
  208. <if test="isMoiCon != null and isMoiCon != ''">IS_MOI_CON = #{isMoiCon},</if>
  209. <if test="state != null and state != ''">STATE = #{state},</if>
  210. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  211. <if test="intm != null">INTM = #{intm},</if>
  212. <if test="uptm != null">UPTM = #{uptm},</if>
  213. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  214. </trim>
  215. <where>ID = #{id}</where>
  216. </update>
  217. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspCdepCap">
  218. update BIS_INSP_CDEP_CAP
  219. <trim prefix="set" suffixOverrides=",">
  220. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  221. <if test="isPro != null and isPro != ''">IS_PRO = #{isPro},</if>
  222. <if test="isDen != null and isDen != ''">IS_DEN = #{isDen},</if>
  223. <if test="isGraSize != null and isGraSize != ''">IS_GRA_SIZE = #{isGraSize},</if>
  224. <if test="isRelDen != null and isRelDen != ''">IS_REL_DEN = #{isRelDen},</if>
  225. <if test="isMaxDryDen != null and isMaxDryDen != ''">IS_MAX_DRY_DEN = #{isMaxDryDen},</if>
  226. <if test="isQptMoiCon != null and isQptMoiCon != ''">IS_QPT_MOI_CON = #{isQptMoiCon},</if>
  227. <if test="isPerCoe != null and isPerCoe != ''">IS_PER_COE = #{isPerCoe},</if>
  228. <if test="isCriSloPen != null and isCriSloPen != ''">IS_CRI_SLO_PEN = #{isCriSloPen},</if>
  229. <if test="isDirStr != null and isDirStr != ''">IS_DIR_STR = #{isDirStr},</if>
  230. <if test="isLiqLim != null and isLiqLim != ''">IS_LIQ_LIM = #{isLiqLim},</if>
  231. <if test="isPlaLim != null and isPlaLim != ''">IS_PLA_LIM = #{isPlaLim},</if>
  232. <if test="isDefMod != null and isDefMod != ''">IS_DEF_MOD = #{isDefMod},</if>
  233. <if test="isSituDen != null and isSituDen != ''">IS_SITU_DEN = #{isSituDen},</if>
  234. <if test="isStaPen != null and isStaPen != ''">IS_STA_PEN = #{isStaPen},</if>
  235. <if test="isFounBea != null and isFounBea != ''">IS_FOUN_BEA = #{isFounBea},</if>
  236. <if test="isBeaCap != null and isBeaCap != ''">IS_BEA_CAP = #{isBeaCap},</if>
  237. <if test="isBasWei != null and isBasWei != ''">IS_BAS_WEI = #{isBasWei},</if>
  238. <if test="isThick != null and isThick != ''">IS_THICK = #{isThick},</if>
  239. <if test="isTenStr != null and isTenStr != ''">IS_TEN_STR = #{isTenStr},</if>
  240. <if test="isTearStr != null and isTearStr != ''">IS_TEAR_STR = #{isTearStr},</if>
  241. <if test="isCylBurStr != null and isCylBurStr != ''">IS_CYL_BUR_STR = #{isCylBurStr},</if>
  242. <if test="isElong != null and isElong != ''">IS_ELONG = #{isElong},</if>
  243. <if test="isBuikDen != null and isBuikDen != ''">IS_BUIK_DEN = #{isBuikDen},</if>
  244. <if test="isMoiConRock != null and isMoiConRock != ''">IS_MOI_CON_ROCK = #{isMoiConRock},</if>
  245. <if test="isUniComStr != null and isUniComStr != ''">IS_UNI_COM_STR = #{isUniComStr},</if>
  246. <if test="isModEla != null and isModEla != ''">IS_MOD_ELA = #{isModEla},</if>
  247. <if test="isMoiCon != null and isMoiCon != ''">IS_MOI_CON = #{isMoiCon},</if>
  248. <if test="state != null and state != ''">STATE = #{state},</if>
  249. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  250. <if test="intm != null">INTM = #{intm},</if>
  251. <if test="uptm != null">UPTM = #{uptm},</if>
  252. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  253. </trim>
  254. <include refid="page_where" />
  255. </update>
  256. <!-- 其他自定义SQL -->
  257. </mapper>