GoafBaseInfoMapper.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  4. <mapper namespace="com.zhyc.xps.goaf.mapper.GoafBaseInfoMapper">
  5. <resultMap id="GoafBaseInfoMapper" type="com.zhyc.xps.goaf.entity.GoafBaseInfo">
  6. <id column="goaf_id" property="goafId" jdbcType="BIGINT"/>
  7. <result column="oc_id" property="ocId" jdbcType="BIGINT"/>
  8. <result column="goaf_orebelt" property="goafOrebelt" jdbcType="BIGINT"/>
  9. <result column="goaf_orebody" property="goafOrebody" jdbcType="BIGINT"/>
  10. <result column="goaf_oreheight" property="goafOreheight" jdbcType="BIGINT"/>
  11. <result column="goaf_name" property="goafName" jdbcType="VARCHAR"/>
  12. <result column="goaf_avex_area" property="goafAvexArea" jdbcType="BIGINT"/>
  13. <result column="goaf_avin_width" property="goafAvinWidth" jdbcType="DECIMAL"/>
  14. <result column="goaf_avex_height" property="goafAvexHeight" jdbcType="DECIMAL"/>
  15. <result column="goaf_void_volume" property="goafVoidVolume" jdbcType="BIGINT"/>
  16. <result column="goaf_key_trend" property="goafKeyTrend" jdbcType="BIGINT"/>
  17. <result column="goaf_key_dipangle" property="goafKeyDipangle" jdbcType="BIGINT"/>
  18. <result column="goaf_roofpillar_thickness" property="goafRoofpillarThickness" jdbcType="DECIMAL"/>
  19. <result column="goaf_incoav_thickness" property="goafIncoavThickness" jdbcType="DECIMAL"/>
  20. <result column="goaf_exp_location" property="goafExpLocation" jdbcType="VARCHAR"/>
  21. <result column="goaf_rock_lithology" property="goafRockLithology" jdbcType="VARCHAR"/>
  22. <result column="goaf_rock_stability" property="goafRockStability" jdbcType="VARCHAR"/>
  23. <result column="goaf_formation_time" property="goafFormationTime" jdbcType="TIMESTAMP"/>
  24. <result column="goaf_canfill_volume" property="goafCanfillVolume" jdbcType="DECIMAL"/>
  25. <result column="goaf_remain_volume" property="goafRemainVolume" jdbcType="DECIMAL"/>
  26. <result column="goaf_fill_method" property="goafFillMethod" jdbcType="BIGINT"/>
  27. <result column="goaf_is_fill" property="goafIsFill" jdbcType="BIGINT"/>
  28. <result column="goaf_info_remak" property="goafInfoRemak" jdbcType="VARCHAR"/>
  29. <result column="goaf_qr_code" property="goafQrCode" jdbcType="VARCHAR"/>
  30. <result column="goaf_checklist_id" property="goafChecklistId" jdbcType="BIGINT"/>
  31. <result column="goaf_checklist_title" property="goafChecklistTitle" jdbcType="VARCHAR"/>
  32. <result column="goaf_checklist_isbind" property="goafChecklistIsbind" jdbcType="BIGINT"/>
  33. </resultMap>
  34. <select id="getByList" parameterType="java.util.Map" resultMap="GoafBaseInfoMapper">
  35. SELECT *
  36. FROM goaf_baseinfo
  37. WHERE oc_id = #{ocId ,jdbcType=BIGINT}
  38. <if test="goafOrebelt !=null">
  39. AND goaf_orebelt = #{goafOrebelt ,jdbcType=BIGINT}
  40. </if>
  41. <if test="goafOrebody !=null">
  42. AND goaf_orebody = #{goafOrebody ,jdbcType=BIGINT}
  43. </if>
  44. <if test="goafOreheight !=null">
  45. AND goaf_oreheight = #{goafOreheight ,jdbcType=BIGINT}
  46. </if>
  47. <if test="goafName !=null and goafName != ''">
  48. AND goaf_name = #{goafName ,jdbcType=VARCHAR}
  49. </if>
  50. <if test="goafQrCode !=null and goafQrCode != ''">
  51. AND goaf_qr_code = #{goafQrCode ,jdbcType=VARCHAR}
  52. </if>
  53. </select>
  54. <!--分页查询-->
  55. <select id="getByPage" parameterType="java.util.Map" resultMap="GoafBaseInfoMapper">
  56. SELECT *
  57. FROM goaf_baseinfo
  58. WHERE oc_id = #{ocId ,jdbcType=BIGINT}
  59. <if test="goafOrebelt !=null">
  60. AND goaf_orebelt = #{goafOrebelt ,jdbcType=BIGINT}
  61. </if>
  62. <if test="goafOrebody !=null">
  63. AND goaf_orebody = #{goafOrebody ,jdbcType=BIGINT}
  64. </if>
  65. <if test="goafOreheight !=null">
  66. AND goaf_oreheight = #{goafOreheight ,jdbcType=BIGINT}
  67. </if>
  68. <if test="goafName !=null and goafName != ''">
  69. AND goaf_name = #{goafName ,jdbcType=VARCHAR}
  70. </if>
  71. <if test="goafQrCode !=null and goafQrCode != ''">
  72. AND goaf_qr_code = #{goafQrCode ,jdbcType=VARCHAR}
  73. </if>
  74. </select>
  75. <select id="getBygoafId" resultMap="GoafBaseInfoMapper">
  76. SELECT *
  77. FROM goaf_baseinfo
  78. WHERE goaf_id = #{goafId, jdbcType=BIGINT}
  79. </select>
  80. <select id="getBygoafQr" resultMap="GoafBaseInfoMapper">
  81. SELECT *
  82. FROM goaf_baseinfo
  83. WHERE goaf_qr_code = #{goafQrCode ,jdbcType=VARCHAR}
  84. </select>
  85. <insert id="create" parameterType="com.zhyc.xps.goaf.entity.GoafBaseInfo">
  86. insert into goaf_baseinfo
  87. <trim prefix="(" suffix=")" suffixOverrides=",">
  88. <if test="goafId != null">
  89. goaf_id,
  90. </if>
  91. <if test="ocId != null">
  92. oc_id,
  93. </if>
  94. <if test="goafOrebelt != null">
  95. goaf_orebelt,
  96. </if>
  97. <if test="goafOrebody != null">
  98. goaf_orebody,
  99. </if>
  100. <if test="goafOreheight != null">
  101. goaf_oreheight,
  102. </if>
  103. <if test="goafName != null and goafName != ''">
  104. goaf_name,
  105. </if>
  106. <if test="goafAvexArea != null">
  107. goaf_avex_area,
  108. </if>
  109. <if test="goafAvinWidth != null">
  110. goaf_avin_width,
  111. </if>
  112. <if test="goafAvexHeight != null">
  113. goaf_avex_height,
  114. </if>
  115. <if test="goafVoidVolume != null">
  116. goaf_void_volume,
  117. </if>
  118. <if test="goafKeyTrend != null">
  119. goaf_key_trend,
  120. </if>
  121. <if test="goafKeyDipangle != null">
  122. goaf_key_dipangle,
  123. </if>
  124. <if test="goafRoofpillarThickness != null">
  125. goaf_roofpillar_thickness,
  126. </if>
  127. <if test="goafIncoavThickness != null">
  128. goaf_incoav_thickness,
  129. </if>
  130. <if test="goafExpLocation != null and goafExpLocation != ''">
  131. goaf_exp_location,
  132. </if>
  133. <if test="goafRockLithology != null and goafRockLithology != ''">
  134. goaf_rock_lithology,
  135. </if>
  136. <if test="goafRockStability != null and goafRockStability != ''">
  137. goaf_rock_stability,
  138. </if>
  139. <if test="goafFormationTime != null">
  140. goaf_formation_time,
  141. </if>
  142. <if test="goafCanfillVolume != null">
  143. goaf_canfill_volume,
  144. </if>
  145. <if test="goafRemainVolume != null">
  146. goaf_remain_volume,
  147. </if>
  148. <if test="goafFillMethod != null">
  149. goaf_fill_method,
  150. </if>
  151. <if test="goafIsFill != null">
  152. goaf_is_fill,
  153. </if>
  154. <if test="goafInfoRemak != null and goafInfoRemak != ''">
  155. goaf_info_remak,
  156. </if>
  157. <if test="goafQrCode != null and goafQrCode != ''">
  158. goaf_qr_code,
  159. </if>
  160. <if test="goafChecklistId != null">
  161. goaf_checklist_id,
  162. </if>
  163. <if test="goafChecklistTitle != null and goafChecklistTitle != ''">
  164. goaf_checklist_title,
  165. </if>
  166. <if test="goafChecklistIsbind != null">
  167. goaf_checklist_isbind,
  168. </if>
  169. </trim>
  170. <trim prefix="values (" suffix=")" suffixOverrides=",">
  171. <if test="goafId != null">
  172. #{goafId, jdbcType=BIGINT},
  173. </if>
  174. <if test="ocId != null">
  175. #{ocId, jdbcType=BIGINT},
  176. </if>
  177. <if test="goafOrebelt != null">
  178. #{goafOrebelt, jdbcType=BIGINT},
  179. </if>
  180. <if test="goafOrebody != null">
  181. #{goafOrebody, jdbcType=BIGINT},
  182. </if>
  183. <if test="goafOreheight != null">
  184. #{goafOreheight, jdbcType=BIGINT},
  185. </if>
  186. <if test="goafName != null and goafName != ''">
  187. #{goafName, jdbcType=VARCHAR},
  188. </if>
  189. <if test="goafAvexArea != null">
  190. #{goafAvexArea, jdbcType=BIGINT},
  191. </if>
  192. <if test="goafAvinWidth != null">
  193. #{goafAvinWidth, jdbcType=DECIMAL},
  194. </if>
  195. <if test="goafAvexHeight != null">
  196. #{goafAvexHeight, jdbcType=DECIMAL},
  197. </if>
  198. <if test="goafVoidVolume != null">
  199. #{goafVoidVolume, jdbcType=BIGINT},
  200. </if>
  201. <if test="goafKeyTrend != null">
  202. #{goafKeyTrend, jdbcType=BIGINT},
  203. </if>
  204. <if test="goafKeyDipangle != null">
  205. #{goafKeyDipangle, jdbcType=BIGINT},
  206. </if>
  207. <if test="goafRoofpillarThickness != null">
  208. #{goafRoofpillarThickness, jdbcType=DECIMAL},
  209. </if>
  210. <if test="goafIncoavThickness != null">
  211. #{goafIncoavThickness, jdbcType=DECIMAL},
  212. </if>
  213. <if test="goafExpLocation != null and goafExpLocation != ''">
  214. #{goafExpLocation, jdbcType=VARCHAR},
  215. </if>
  216. <if test="goafRockLithology != null and goafRockLithology != ''">
  217. #{goafRockLithology, jdbcType=VARCHAR},
  218. </if>
  219. <if test="goafRockStability != null and goafRockStability != ''">
  220. #{goafRockStability, jdbcType=VARCHAR},
  221. </if>
  222. <if test="goafFormationTime != null">
  223. #{goafFormationTime, jdbcType=TIMESTAMP},
  224. </if>
  225. <if test="goafCanfillVolume != null">
  226. #{goafCanfillVolume, jdbcType=DECIMAL},
  227. </if>
  228. <if test="goafRemainVolume != null">
  229. #{goafRemainVolume, jdbcType=DECIMAL},
  230. </if>
  231. <if test="goafFillMethod != null">
  232. #{goafFillMethod, jdbcType=BIGINT},
  233. </if>
  234. <if test="goafIsFill != null">
  235. #{goafIsFill, jdbcType=BIGINT},
  236. </if>
  237. <if test="goafInfoRemak != null and goafInfoRemak != ''">
  238. #{goafInfoRemak, jdbcType=VARCHAR},
  239. </if>
  240. <if test="goafQrCode != null and goafQrCode != ''">
  241. #{goafQrCode, jdbcType=VARCHAR},
  242. </if>
  243. <if test="goafChecklistId != null">
  244. #{goafChecklistId, jdbcType=BIGINT},
  245. </if>
  246. <if test="goafChecklistTitle != null and goafChecklistTitle != ''">
  247. #{goafChecklistTitle, jdbcType=VARCHAR},
  248. </if>
  249. <if test="goafChecklistIsbind != null">
  250. #{goafChecklistIsbind, jdbcType=BIGINT},
  251. </if>
  252. </trim>
  253. </insert>
  254. <!--Update更新-->
  255. <update id="update" parameterType="com.zhyc.xps.goaf.entity.GoafBaseInfo">
  256. UPDATE goaf_baseinfo
  257. <trim suffixOverrides=",">
  258. <set>
  259. <if test="goafOrebelt != null">
  260. goaf_orebelt = #{goafOrebelt, jdbcType=BIGINT},
  261. </if>
  262. <if test="goafOrebody != null">
  263. goaf_orebody = #{goafOrebody, jdbcType=BIGINT},
  264. </if>
  265. <if test="goafOreheight != null">
  266. goaf_oreheight = #{goafOreheight, jdbcType=BIGINT},
  267. </if>
  268. <if test="goafName != null and goafName != ''">
  269. goaf_name = #{goafName, jdbcType=VARCHAR},
  270. </if>
  271. <if test="goafAvexArea != null">
  272. goaf_avex_area = #{goafAvexArea, jdbcType=BIGINT},
  273. </if>
  274. <if test="goafAvinWidth != null">
  275. goaf_avin_width = #{goafAvinWidth, jdbcType=BIGINT},
  276. </if>
  277. <if test="goafAvexHeight != null">
  278. goaf_avex_height = #{goafAvexHeight, jdbcType=BIGINT},
  279. </if>
  280. <if test="goafVoidVolume != null">
  281. goaf_void_volume = #{goafVoidVolume, jdbcType=BIGINT},
  282. </if>
  283. <if test="goafKeyTrend != null">
  284. goaf_key_trend = #{goafKeyTrend, jdbcType=BIGINT},
  285. </if>
  286. <if test="goafKeyDipangle != null">
  287. goaf_key_dipangle = #{goafKeyDipangle, jdbcType=BIGINT},
  288. </if>
  289. <if test="goafRoofpillarThickness != null">
  290. goaf_roofpillar_thickness = #{goafRoofpillarThickness, jdbcType=BIGINT},
  291. </if>
  292. <if test="goafIncoavThickness != null">
  293. goaf_incoav_thickness = #{goafIncoavThickness, jdbcType=BIGINT},
  294. </if>
  295. <if test="goafExpLocation != null and goafExpLocation != ''">
  296. goaf_exp_location = #{goafExpLocation, jdbcType=VARCHAR},
  297. </if>
  298. <if test="goafRockLithology != null and goafRockLithology != ''">
  299. goaf_rock_lithology = #{goafRockLithology, jdbcType=VARCHAR},
  300. </if>
  301. <if test="goafRockStability != null and goafRockStability != ''">
  302. goaf_rock_stability = #{goafRockStability, jdbcType=VARCHAR},
  303. </if>
  304. <if test="goafFormationTime != null">
  305. goaf_formation_time = #{goafFormationTime, jdbcType=TIMESTAMP},
  306. </if>
  307. <if test="goafCanfillVolume != null">
  308. goaf_canfill_volume = #{goafCanfillVolume, jdbcType=BIGINT},
  309. </if>
  310. <if test="goafRemainVolume != null">
  311. goaf_remain_volume = #{goafRemainVolume, jdbcType=BIGINT},
  312. </if>
  313. <if test="goafFillMethod != null">
  314. goaf_fill_method = #{goafFillMethod, jdbcType=BIGINT},
  315. </if>
  316. <if test="goafIsFill != null">
  317. goaf_is_fill = #{goafIsFill, jdbcType=BIGINT},
  318. </if>
  319. <if test="goafInfoRemak != null and goafInfoRemak != ''">
  320. goaf_info_remak = #{goafInfoRemak, jdbcType=VARCHAR},
  321. </if>
  322. <if test="goafChecklistId != null">
  323. goaf_checklist_id = #{goafChecklistId, jdbcType=BIGINT},
  324. </if>
  325. <if test="goafChecklistTitle != null and goafChecklistTitle != ''">
  326. goaf_checklist_title = #{goafChecklistTitle, jdbcType=VARCHAR},
  327. </if>
  328. <if test="goafChecklistIsbind != null">
  329. goaf_checklist_isbind = #{goafChecklistIsbind, jdbcType=BIGINT},
  330. </if>
  331. </set>
  332. </trim>
  333. WHERE goaf_id = #{goafId, jdbcType=BIGINT}
  334. </update>
  335. <delete id="delete" >
  336. DELETE FROM goaf_baseinfo
  337. WHERE goaf_id = #{goafId, jdbcType=BIGINT}
  338. </delete>
  339. </mapper>