BisInspRsmlRgstrRunManageDao.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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.BisInspRsmlRgstrRunManageDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage" id="bisInspRsmlRgstrRunManageResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="osascIsNasaa" column="OSASC_IS_NASAA"/>
  8. <result property="iamIsPip" column="IAM_IS_PIP"/>
  9. <result property="pomasIsPip" column="POMAS_IS_PIP"/>
  10. <result property="eiIsPip" column="EI_IS_PIP"/>
  11. <result property="isFmltWsOdp" column="IS_FMLT_WS_ODP"/>
  12. <result property="epIsPip" column="EP_IS_PIP"/>
  13. <result property="emgcIsRarTem" column="EMGC_IS_RAR_TEM"/>
  14. <result property="pffsIsPip" column="PFFS_IS_PIP"/>
  15. <result property="isAtroipIffcafc" column="IS_ATROIP_IFFCAFC"/>
  16. <result property="isAttrotfaeCftod" column="IS_ATTROTFAE_CFTOD"/>
  17. <result property="halpsIsGdrun" column="HALPS_IS_GDRUN"/>
  18. <result property="sdgIsGdrun" column="SDG_IS_GDRUN"/>
  19. <result property="edIsThatr" column="ED_IS_THATR"/>
  20. <result property="isBldWwitrsfps" column="IS_BLD_WWITRSFPS"/>
  21. <result property="wrtpsIsPm" column="WRTPS_IS_PM"/>
  22. <result property="isTfsharar" column="IS_TFSHARAR"/>
  23. <result property="isTcomwTitmwoteu" column="IS_TCOMW_TITMWOTEU"/>
  24. <result property="recPersId" column="REC_PERS_ID"/>
  25. <result property="recPers" column="REC_PERS"/>
  26. <result property="recPersTel" column="REC_PERS_TEL"/>
  27. <result property="intm" column="INTM"/>
  28. <result property="uptm" column="UPTM"/>
  29. <result property="status" column="STATUS"/>
  30. <result property="pmIsMjr" column="PM_IS_MJR"/>
  31. </resultMap>
  32. <sql id="table_columns">
  33. ID,
  34. RGSTR_ID,
  35. OSASC_IS_NASAA,
  36. IAM_IS_PIP,
  37. POMAS_IS_PIP,
  38. EI_IS_PIP,
  39. IS_FMLT_WS_ODP,
  40. EP_IS_PIP,
  41. EMGC_IS_RAR_TEM,
  42. PFFS_IS_PIP,
  43. IS_ATROIP_IFFCAFC,
  44. IS_ATTROTFAE_CFTOD,
  45. HALPS_IS_GDRUN,
  46. SDG_IS_GDRUN,
  47. ED_IS_THATR,
  48. IS_BLD_WWITRSFPS,
  49. WRTPS_IS_PM,
  50. IS_TFSHARAR,
  51. IS_TCOMW_TITMWOTEU,
  52. REC_PERS_ID,
  53. REC_PERS,
  54. REC_PERS_TEL,
  55. INTM,
  56. UPTM,
  57. STATUS,
  58. PM_IS_MJR
  59. </sql>
  60. <sql id="entity_properties">
  61. #{id},
  62. #{rgstrId},
  63. #{osascIsNasaa},
  64. #{iamIsPip},
  65. #{pomasIsPip},
  66. #{eiIsPip},
  67. #{isFmltWsOdp},
  68. #{epIsPip},
  69. #{emgcIsRarTem},
  70. #{pffsIsPip},
  71. #{isAtroipIffcafc},
  72. #{isAttrotfaeCftod},
  73. #{halpsIsGdrun},
  74. #{sdgIsGdrun},
  75. #{edIsThatr},
  76. #{isBldWwitrsfps},
  77. #{wrtpsIsPm},
  78. #{isTfsharar},
  79. #{isTcomwTitmwoteu},
  80. #{recPersId},
  81. #{recPers},
  82. #{recPersTel},
  83. #{intm},
  84. #{uptm},
  85. #{status},
  86. #{pmIsMjr}
  87. </sql>
  88. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  89. <sql id="page_where">
  90. <trim prefix="where" prefixOverrides="and | or ">
  91. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  92. <if test="osascIsNasaa != null and osascIsNasaa != ''">and OSASC_IS_NASAA = #{osascIsNasaa}</if>
  93. <if test="iamIsPip != null and iamIsPip != ''">and IAM_IS_PIP = #{iamIsPip}</if>
  94. <if test="pomasIsPip != null and pomasIsPip != ''">and POMAS_IS_PIP = #{pomasIsPip}</if>
  95. <if test="eiIsPip != null and eiIsPip != ''">and EI_IS_PIP = #{eiIsPip}</if>
  96. <if test="isFmltWsOdp != null and isFmltWsOdp != ''">and IS_FMLT_WS_ODP = #{isFmltWsOdp}</if>
  97. <if test="epIsPip != null and epIsPip != ''">and EP_IS_PIP = #{epIsPip}</if>
  98. <if test="emgcIsRarTem != null and emgcIsRarTem != ''">and EMGC_IS_RAR_TEM = #{emgcIsRarTem}</if>
  99. <if test="pffsIsPip != null and pffsIsPip != ''">and PFFS_IS_PIP = #{pffsIsPip}</if>
  100. <if test="isAtroipIffcafc != null and isAtroipIffcafc != ''">and IS_ATROIP_IFFCAFC = #{isAtroipIffcafc}</if>
  101. <if test="isAttrotfaeCftod != null and isAttrotfaeCftod != ''">and IS_ATTROTFAE_CFTOD = #{isAttrotfaeCftod}</if>
  102. <if test="halpsIsGdrun != null and halpsIsGdrun != ''">and HALPS_IS_GDRUN = #{halpsIsGdrun}</if>
  103. <if test="sdgIsGdrun != null and sdgIsGdrun != ''">and SDG_IS_GDRUN = #{sdgIsGdrun}</if>
  104. <if test="edIsThatr != null and edIsThatr != ''">and ED_IS_THATR = #{edIsThatr}</if>
  105. <if test="isBldWwitrsfps != null and isBldWwitrsfps != ''">and IS_BLD_WWITRSFPS = #{isBldWwitrsfps}</if>
  106. <if test="wrtpsIsPm != null and wrtpsIsPm != ''">and WRTPS_IS_PM = #{wrtpsIsPm}</if>
  107. <if test="isTfsharar != null and isTfsharar != ''">and IS_TFSHARAR = #{isTfsharar}</if>
  108. <if test="isTcomwTitmwoteu != null and isTcomwTitmwoteu != ''">and IS_TCOMW_TITMWOTEU = #{isTcomwTitmwoteu}</if>
  109. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  110. <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</if>
  111. <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
  112. <if test="intm != null">and INTM = #{intm}</if>
  113. <if test="uptm != null">and UPTM = #{uptm}</if>
  114. <if test="status != null and status != ''">and STATUS = #{status}</if>
  115. <if test="pmIsMjr != null and pmIsMjr != ''">and PM_IS_MJR = #{pmIsMjr}</if>
  116. </trim>
  117. </sql>
  118. <select id="get" resultMap="bisInspRsmlRgstrRunManageResultMap" parameterType="String" >
  119. select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE where ID = #{id}
  120. </select>
  121. <select id="getBy" resultMap="bisInspRsmlRgstrRunManageResultMap">
  122. select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
  123. </select>
  124. <select id="findAll" resultMap="bisInspRsmlRgstrRunManageResultMap">
  125. select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE
  126. </select>
  127. <select id="findList" resultMap="bisInspRsmlRgstrRunManageResultMap">
  128. select <include refid="table_columns" /> from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
  129. </select>
  130. <select id="selectCount" resultType="int" >
  131. select count(ID) from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
  132. </select>
  133. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
  134. insert into BIS_INSP_RSML_RGSTR_RUN_MANAGE( <include refid="table_columns" /> )
  135. values ( <include refid="entity_properties" /> )
  136. </insert>
  137. <delete id="delete" parameterType="java.lang.String">
  138. delete from BIS_INSP_RSML_RGSTR_RUN_MANAGE where ID = #{id}
  139. </delete>
  140. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
  141. delete from BIS_INSP_RSML_RGSTR_RUN_MANAGE <include refid="page_where" />
  142. </delete>
  143. <update id="deleteInFlag" parameterType="java.lang.String">
  144. update BIS_INSP_RSML_RGSTR_RUN_MANAGE set flag_valid = 0 where ID = #{id}
  145. </update>
  146. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
  147. update BIS_INSP_RSML_RGSTR_RUN_MANAGE
  148. <trim prefix="set" suffixOverrides=",">
  149. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  150. <if test="osascIsNasaa != null and osascIsNasaa != ''">OSASC_IS_NASAA = #{osascIsNasaa},</if>
  151. <if test="iamIsPip != null and iamIsPip != ''">IAM_IS_PIP = #{iamIsPip},</if>
  152. <if test="pomasIsPip != null and pomasIsPip != ''">POMAS_IS_PIP = #{pomasIsPip},</if>
  153. <if test="eiIsPip != null and eiIsPip != ''">EI_IS_PIP = #{eiIsPip},</if>
  154. <if test="isFmltWsOdp != null and isFmltWsOdp != ''">IS_FMLT_WS_ODP = #{isFmltWsOdp},</if>
  155. <if test="epIsPip != null and epIsPip != ''">EP_IS_PIP = #{epIsPip},</if>
  156. <if test="emgcIsRarTem != null and emgcIsRarTem != ''">EMGC_IS_RAR_TEM = #{emgcIsRarTem},</if>
  157. <if test="pffsIsPip != null and pffsIsPip != ''">PFFS_IS_PIP = #{pffsIsPip},</if>
  158. <if test="isAtroipIffcafc != null and isAtroipIffcafc != ''">IS_ATROIP_IFFCAFC = #{isAtroipIffcafc},</if>
  159. <if test="isAttrotfaeCftod != null and isAttrotfaeCftod != ''">IS_ATTROTFAE_CFTOD = #{isAttrotfaeCftod},</if>
  160. <if test="halpsIsGdrun != null and halpsIsGdrun != ''">HALPS_IS_GDRUN = #{halpsIsGdrun},</if>
  161. <if test="sdgIsGdrun != null and sdgIsGdrun != ''">SDG_IS_GDRUN = #{sdgIsGdrun},</if>
  162. <if test="edIsThatr != null and edIsThatr != ''">ED_IS_THATR = #{edIsThatr},</if>
  163. <if test="isBldWwitrsfps != null and isBldWwitrsfps != ''">IS_BLD_WWITRSFPS = #{isBldWwitrsfps},</if>
  164. <if test="wrtpsIsPm != null and wrtpsIsPm != ''">WRTPS_IS_PM = #{wrtpsIsPm},</if>
  165. <if test="isTfsharar != null and isTfsharar != ''">IS_TFSHARAR = #{isTfsharar},</if>
  166. <if test="isTcomwTitmwoteu != null and isTcomwTitmwoteu != ''">IS_TCOMW_TITMWOTEU = #{isTcomwTitmwoteu},</if>
  167. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  168. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  169. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  170. <if test="intm != null">INTM = #{intm},</if>
  171. <if test="uptm != null">UPTM = #{uptm},</if>
  172. <if test="status != null and status != ''">STATUS = #{status},</if>
  173. <if test="pmIsMjr != null and pmIsMjr != ''">PM_IS_MJR = #{pmIsMjr},</if>
  174. </trim>
  175. <where>ID = #{id}</where>
  176. </update>
  177. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsmlRgstrRunManage">
  178. update BIS_INSP_RSML_RGSTR_RUN_MANAGE
  179. <trim prefix="set" suffixOverrides=",">
  180. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  181. <if test="osascIsNasaa != null and osascIsNasaa != ''">OSASC_IS_NASAA = #{osascIsNasaa},</if>
  182. <if test="iamIsPip != null and iamIsPip != ''">IAM_IS_PIP = #{iamIsPip},</if>
  183. <if test="pomasIsPip != null and pomasIsPip != ''">POMAS_IS_PIP = #{pomasIsPip},</if>
  184. <if test="eiIsPip != null and eiIsPip != ''">EI_IS_PIP = #{eiIsPip},</if>
  185. <if test="isFmltWsOdp != null and isFmltWsOdp != ''">IS_FMLT_WS_ODP = #{isFmltWsOdp},</if>
  186. <if test="epIsPip != null and epIsPip != ''">EP_IS_PIP = #{epIsPip},</if>
  187. <if test="emgcIsRarTem != null and emgcIsRarTem != ''">EMGC_IS_RAR_TEM = #{emgcIsRarTem},</if>
  188. <if test="pffsIsPip != null and pffsIsPip != ''">PFFS_IS_PIP = #{pffsIsPip},</if>
  189. <if test="isAtroipIffcafc != null and isAtroipIffcafc != ''">IS_ATROIP_IFFCAFC = #{isAtroipIffcafc},</if>
  190. <if test="isAttrotfaeCftod != null and isAttrotfaeCftod != ''">IS_ATTROTFAE_CFTOD = #{isAttrotfaeCftod},</if>
  191. <if test="halpsIsGdrun != null and halpsIsGdrun != ''">HALPS_IS_GDRUN = #{halpsIsGdrun},</if>
  192. <if test="sdgIsGdrun != null and sdgIsGdrun != ''">SDG_IS_GDRUN = #{sdgIsGdrun},</if>
  193. <if test="edIsThatr != null and edIsThatr != ''">ED_IS_THATR = #{edIsThatr},</if>
  194. <if test="isBldWwitrsfps != null and isBldWwitrsfps != ''">IS_BLD_WWITRSFPS = #{isBldWwitrsfps},</if>
  195. <if test="wrtpsIsPm != null and wrtpsIsPm != ''">WRTPS_IS_PM = #{wrtpsIsPm},</if>
  196. <if test="isTfsharar != null and isTfsharar != ''">IS_TFSHARAR = #{isTfsharar},</if>
  197. <if test="isTcomwTitmwoteu != null and isTcomwTitmwoteu != ''">IS_TCOMW_TITMWOTEU = #{isTcomwTitmwoteu},</if>
  198. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  199. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  200. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  201. <if test="intm != null">INTM = #{intm},</if>
  202. <if test="uptm != null">UPTM = #{uptm},</if>
  203. <if test="status != null and status != ''">STATUS = #{status},</if>
  204. <if test="pmIsMjr != null and pmIsMjr != ''">PM_IS_MJR = #{pmIsMjr},</if>
  205. </trim>
  206. <include refid="page_where" />
  207. </update>
  208. <!-- 其他自定义SQL -->
  209. </mapper>