BisInspRsfcoRgstrFlliDao.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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.BisInspRsfcoRgstrFlliDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrFlli" id="bisInspRsfcoRgstrFlliResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isCompFssp" column="IS_COMP_FSSP"/>
  8. <result property="isCompRpl" column="IS_COMP_RPL"/>
  9. <result property="compOpblt" column="COMP_OPBLT"/>
  10. <result property="isUpFssp" column="IS_UP_FSSP"/>
  11. <result property="isExeFssp" column="IS_EXE_FSSP"/>
  12. <result property="isFsspFcadrEws" column="IS_FSSP_FCADR_EWS"/>
  13. <result property="isWfDc" column="IS_WF_DC"/>
  14. <result property="dcTmFlSzIsAc" column="DC_TM_FL_SZ_IS_AC"/>
  15. <result property="isWdosiIrdauada" column="IS_WDOSI_IRDAUADA"/>
  16. <result property="roasiIsSar" column="ROASI_IS_SAR"/>
  17. <result property="isRcoSil" column="IS_RCO_SIL"/>
  18. <result property="silIsSai" column="SIL_IS_SAI"/>
  19. <result property="silIsIscwtass" column="SIL_IS_ISCWTASS"/>
  20. <result property="isIawrrSrarfll" column="IS_IAWRR_SRARFLL"/>
  21. <result property="isIawrrRrwsws" column="IS_IAWRR_RRWSWS"/>
  22. <result property="isAttafllPrs" column="IS_ATTAFLL_PRS"/>
  23. <result property="nfspIsUobfl" column="NFSP_IS_UOBFL"/>
  24. <result property="trsofdpIsAtrrofcoiOafl" column="TRSOFDP_IS_ATRROFCOI_OAFL"/>
  25. <result property="wadsoiaaatsofcIsLwr" column="WADSOIAAATSOFC_IS_LWR"/>
  26. <result property="tcoeatnaofcadrfewIsTrofu" column="TCOEATNAOFCADRFEW_IS_TROFU"/>
  27. <result property="isTcPsaifp" column="IS_TC_PSAIFP"/>
  28. <result property="status" column="STATUS"/>
  29. <result property="recPersId" column="REC_PERS_ID"/>
  30. <result property="recPers" column="REC_PERS"/>
  31. <result property="recPersTel" column="REC_PERS_TEL"/>
  32. <result property="intm" column="INTM"/>
  33. <result property="uptm" column="UPTM"/>
  34. <result property="iawrrSrarfll" column="IAWRR_SRARFLL"/>
  35. </resultMap>
  36. <sql id="table_columns">
  37. IAWRR_SRARFLL,
  38. ID,
  39. RGSTR_ID,
  40. IS_COMP_FSSP,
  41. IS_COMP_RPL,
  42. COMP_OPBLT,
  43. IS_UP_FSSP,
  44. IS_EXE_FSSP,
  45. IS_FSSP_FCADR_EWS,
  46. IS_WF_DC,
  47. DC_TM_FL_SZ_IS_AC,
  48. IS_WDOSI_IRDAUADA,
  49. ROASI_IS_SAR,
  50. IS_RCO_SIL,
  51. SIL_IS_SAI,
  52. SIL_IS_ISCWTASS,
  53. IS_IAWRR_SRARFLL,
  54. IS_IAWRR_RRWSWS,
  55. IS_ATTAFLL_PRS,
  56. NFSP_IS_UOBFL,
  57. TRSOFDP_IS_ATRROFCOI_OAFL,
  58. WADSOIAAATSOFC_IS_LWR,
  59. TCOEATNAOFCADRFEW_IS_TROFU,
  60. IS_TC_PSAIFP,
  61. STATUS,
  62. REC_PERS_ID,
  63. REC_PERS,
  64. REC_PERS_TEL,
  65. INTM,
  66. UPTM
  67. </sql>
  68. <sql id="entity_properties">
  69. #{iawrrSrarfll},
  70. #{id},
  71. #{rgstrId},
  72. #{isCompFssp},
  73. #{isCompRpl},
  74. #{compOpblt},
  75. #{isUpFssp},
  76. #{isExeFssp},
  77. #{isFsspFcadrEws},
  78. #{isWfDc},
  79. #{dcTmFlSzIsAc},
  80. #{isWdosiIrdauada},
  81. #{roasiIsSar},
  82. #{isRcoSil},
  83. #{silIsSai},
  84. #{silIsIscwtass},
  85. #{isIawrrSrarfll},
  86. #{isIawrrRrwsws},
  87. #{isAttafllPrs},
  88. #{nfspIsUobfl},
  89. #{trsofdpIsAtrrofcoiOafl},
  90. #{wadsoiaaatsofcIsLwr},
  91. #{tcoeatnaofcadrfewIsTrofu},
  92. #{isTcPsaifp},
  93. #{status},
  94. #{recPersId},
  95. #{recPers},
  96. #{recPersTel},
  97. #{intm},
  98. #{uptm}
  99. </sql>
  100. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  101. <sql id="page_where">
  102. <trim prefix="where" prefixOverrides="and | or ">
  103. <if test="iawrrSrarfll != null and iawrrSrarfll != ''">and IAWRR_SRARFLL #{iawrrSrarfll}</if>
  104. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  105. <if test="isCompFssp != null and isCompFssp != ''">and IS_COMP_FSSP = #{isCompFssp}</if>
  106. <if test="isCompRpl != null and isCompRpl != ''">and IS_COMP_RPL = #{isCompRpl}</if>
  107. <if test="compOpblt != null and compOpblt != ''">and COMP_OPBLT = #{compOpblt}</if>
  108. <if test="isUpFssp != null and isUpFssp != ''">and IS_UP_FSSP = #{isUpFssp}</if>
  109. <if test="isExeFssp != null and isExeFssp != ''">and IS_EXE_FSSP = #{isExeFssp}</if>
  110. <if test="isFsspFcadrEws != null and isFsspFcadrEws != ''">and IS_FSSP_FCADR_EWS = #{isFsspFcadrEws}</if>
  111. <if test="isWfDc != null and isWfDc != ''">and IS_WF_DC = #{isWfDc}</if>
  112. <if test="dcTmFlSzIsAc != null and dcTmFlSzIsAc != ''">and DC_TM_FL_SZ_IS_AC = #{dcTmFlSzIsAc}</if>
  113. <if test="isWdosiIrdauada != null and isWdosiIrdauada != ''">and IS_WDOSI_IRDAUADA = #{isWdosiIrdauada}</if>
  114. <if test="roasiIsSar != null and roasiIsSar != ''">and ROASI_IS_SAR = #{roasiIsSar}</if>
  115. <if test="isRcoSil != null and isRcoSil != ''">and IS_RCO_SIL = #{isRcoSil}</if>
  116. <if test="silIsSai != null and silIsSai != ''">and SIL_IS_SAI = #{silIsSai}</if>
  117. <if test="silIsIscwtass != null and silIsIscwtass != ''">and SIL_IS_ISCWTASS = #{silIsIscwtass}</if>
  118. <if test="isIawrrSrarfll != null and isIawrrSrarfll != ''">and IS_IAWRR_SRARFLL = #{isIawrrSrarfll}</if>
  119. <if test="isIawrrRrwsws != null and isIawrrRrwsws != ''">and IS_IAWRR_RRWSWS = #{isIawrrRrwsws}</if>
  120. <if test="isAttafllPrs != null and isAttafllPrs != ''">and IS_ATTAFLL_PRS = #{isAttafllPrs}</if>
  121. <if test="nfspIsUobfl != null and nfspIsUobfl != ''">and NFSP_IS_UOBFL = #{nfspIsUobfl}</if>
  122. <if test="trsofdpIsAtrrofcoiOafl != null and trsofdpIsAtrrofcoiOafl != ''">and TRSOFDP_IS_ATRROFCOI_OAFL = #{trsofdpIsAtrrofcoiOafl}</if>
  123. <if test="wadsoiaaatsofcIsLwr != null and wadsoiaaatsofcIsLwr != ''">and WADSOIAAATSOFC_IS_LWR = #{wadsoiaaatsofcIsLwr}</if>
  124. <if test="tcoeatnaofcadrfewIsTrofu != null and tcoeatnaofcadrfewIsTrofu != ''">and TCOEATNAOFCADRFEW_IS_TROFU = #{tcoeatnaofcadrfewIsTrofu}</if>
  125. <if test="isTcPsaifp != null and isTcPsaifp != ''">and IS_TC_PSAIFP = #{isTcPsaifp}</if>
  126. <if test="status != null and status != ''">and STATUS = #{status}</if>
  127. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  128. <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</if>
  129. <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
  130. <if test="intm != null">and INTM = #{intm}</if>
  131. <if test="uptm != null">and UPTM = #{uptm}</if>
  132. </trim>
  133. </sql>
  134. <select id="get" resultMap="bisInspRsfcoRgstrFlliResultMap" parameterType="String" >
  135. select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_FLLI where ID = #{id}
  136. </select>
  137. <select id="getBy" resultMap="bisInspRsfcoRgstrFlliResultMap">
  138. select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_FLLI <include refid="page_where" />
  139. </select>
  140. <select id="findAll" resultMap="bisInspRsfcoRgstrFlliResultMap">
  141. select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_FLLI
  142. </select>
  143. <select id="findList" resultMap="bisInspRsfcoRgstrFlliResultMap">
  144. select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_FLLI <include refid="page_where" />
  145. </select>
  146. <select id="selectCount" resultType="int" >
  147. select count(ID) from BIS_INSP_RSFCO_RGSTR_FLLI <include refid="page_where" />
  148. </select>
  149. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrFlli">
  150. insert into BIS_INSP_RSFCO_RGSTR_FLLI( <include refid="table_columns" /> )
  151. values ( <include refid="entity_properties" /> )
  152. </insert>
  153. <delete id="delete" parameterType="java.lang.String">
  154. delete from BIS_INSP_RSFCO_RGSTR_FLLI where ID = #{id}
  155. </delete>
  156. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrFlli">
  157. delete from BIS_INSP_RSFCO_RGSTR_FLLI <include refid="page_where" />
  158. </delete>
  159. <update id="deleteInFlag" parameterType="java.lang.String">
  160. update BIS_INSP_RSFCO_RGSTR_FLLI set flag_valid = 0 where ID = #{id}
  161. </update>
  162. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrFlli">
  163. update BIS_INSP_RSFCO_RGSTR_FLLI
  164. <trim prefix="set" suffixOverrides=",">
  165. <if test="iawrrSrarfll != null and iawrrSrarfll != ''">IAWRR_SRARFLL = #{iawrrSrarfll},</if>
  166. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  167. <if test="isCompFssp != null and isCompFssp != ''">IS_COMP_FSSP = #{isCompFssp},</if>
  168. <if test="isCompRpl != null and isCompRpl != ''">IS_COMP_RPL = #{isCompRpl},</if>
  169. <if test="compOpblt != null and compOpblt != ''">COMP_OPBLT = #{compOpblt},</if>
  170. <if test="isUpFssp != null and isUpFssp != ''">IS_UP_FSSP = #{isUpFssp},</if>
  171. <if test="isExeFssp != null and isExeFssp != ''">IS_EXE_FSSP = #{isExeFssp},</if>
  172. <if test="isFsspFcadrEws != null and isFsspFcadrEws != ''">IS_FSSP_FCADR_EWS = #{isFsspFcadrEws},</if>
  173. <if test="isWfDc != null and isWfDc != ''">IS_WF_DC = #{isWfDc},</if>
  174. <if test="dcTmFlSzIsAc != null and dcTmFlSzIsAc != ''">DC_TM_FL_SZ_IS_AC = #{dcTmFlSzIsAc},</if>
  175. <if test="isWdosiIrdauada != null and isWdosiIrdauada != ''">IS_WDOSI_IRDAUADA = #{isWdosiIrdauada},</if>
  176. <if test="roasiIsSar != null and roasiIsSar != ''">ROASI_IS_SAR = #{roasiIsSar},</if>
  177. <if test="isRcoSil != null and isRcoSil != ''">IS_RCO_SIL = #{isRcoSil},</if>
  178. <if test="silIsSai != null and silIsSai != ''">SIL_IS_SAI = #{silIsSai},</if>
  179. <if test="silIsIscwtass != null and silIsIscwtass != ''">SIL_IS_ISCWTASS = #{silIsIscwtass},</if>
  180. <if test="isIawrrSrarfll != null and isIawrrSrarfll != ''">IS_IAWRR_SRARFLL = #{isIawrrSrarfll},</if>
  181. <if test="isIawrrRrwsws != null and isIawrrRrwsws != ''">IS_IAWRR_RRWSWS = #{isIawrrRrwsws},</if>
  182. <if test="isAttafllPrs != null and isAttafllPrs != ''">IS_ATTAFLL_PRS = #{isAttafllPrs},</if>
  183. <if test="nfspIsUobfl != null and nfspIsUobfl != ''">NFSP_IS_UOBFL = #{nfspIsUobfl},</if>
  184. <if test="trsofdpIsAtrrofcoiOafl != null and trsofdpIsAtrrofcoiOafl != ''">TRSOFDP_IS_ATRROFCOI_OAFL = #{trsofdpIsAtrrofcoiOafl},</if>
  185. <if test="wadsoiaaatsofcIsLwr != null and wadsoiaaatsofcIsLwr != ''">WADSOIAAATSOFC_IS_LWR = #{wadsoiaaatsofcIsLwr},</if>
  186. <if test="tcoeatnaofcadrfewIsTrofu != null and tcoeatnaofcadrfewIsTrofu != ''">TCOEATNAOFCADRFEW_IS_TROFU = #{tcoeatnaofcadrfewIsTrofu},</if>
  187. <if test="isTcPsaifp != null and isTcPsaifp != ''">IS_TC_PSAIFP = #{isTcPsaifp},</if>
  188. <if test="status != null and status != ''">STATUS = #{status},</if>
  189. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  190. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  191. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  192. <if test="intm != null">INTM = #{intm},</if>
  193. <if test="uptm != null">UPTM = #{uptm},</if>
  194. </trim>
  195. <where>ID = #{id}</where>
  196. </update>
  197. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrFlli">
  198. update BIS_INSP_RSFCO_RGSTR_FLLI
  199. <trim prefix="set" suffixOverrides=",">
  200. <if test="iawrrSrarfll != null and iawrrSrarfll != ''">IAWRR_SRARFLL = #{iawrrSrarfll},</if>
  201. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  202. <if test="isCompFssp != null and isCompFssp != ''">IS_COMP_FSSP = #{isCompFssp},</if>
  203. <if test="isCompRpl != null and isCompRpl != ''">IS_COMP_RPL = #{isCompRpl},</if>
  204. <if test="compOpblt != null and compOpblt != ''">COMP_OPBLT = #{compOpblt},</if>
  205. <if test="isUpFssp != null and isUpFssp != ''">IS_UP_FSSP = #{isUpFssp},</if>
  206. <if test="isExeFssp != null and isExeFssp != ''">IS_EXE_FSSP = #{isExeFssp},</if>
  207. <if test="isFsspFcadrEws != null and isFsspFcadrEws != ''">IS_FSSP_FCADR_EWS = #{isFsspFcadrEws},</if>
  208. <if test="isWfDc != null and isWfDc != ''">IS_WF_DC = #{isWfDc},</if>
  209. <if test="dcTmFlSzIsAc != null and dcTmFlSzIsAc != ''">DC_TM_FL_SZ_IS_AC = #{dcTmFlSzIsAc},</if>
  210. <if test="isWdosiIrdauada != null and isWdosiIrdauada != ''">IS_WDOSI_IRDAUADA = #{isWdosiIrdauada},</if>
  211. <if test="roasiIsSar != null and roasiIsSar != ''">ROASI_IS_SAR = #{roasiIsSar},</if>
  212. <if test="isRcoSil != null and isRcoSil != ''">IS_RCO_SIL = #{isRcoSil},</if>
  213. <if test="silIsSai != null and silIsSai != ''">SIL_IS_SAI = #{silIsSai},</if>
  214. <if test="silIsIscwtass != null and silIsIscwtass != ''">SIL_IS_ISCWTASS = #{silIsIscwtass},</if>
  215. <if test="isIawrrSrarfll != null and isIawrrSrarfll != ''">IS_IAWRR_SRARFLL = #{isIawrrSrarfll},</if>
  216. <if test="isIawrrRrwsws != null and isIawrrRrwsws != ''">IS_IAWRR_RRWSWS = #{isIawrrRrwsws},</if>
  217. <if test="isAttafllPrs != null and isAttafllPrs != ''">IS_ATTAFLL_PRS = #{isAttafllPrs},</if>
  218. <if test="nfspIsUobfl != null and nfspIsUobfl != ''">NFSP_IS_UOBFL = #{nfspIsUobfl},</if>
  219. <if test="trsofdpIsAtrrofcoiOafl != null and trsofdpIsAtrrofcoiOafl != ''">TRSOFDP_IS_ATRROFCOI_OAFL = #{trsofdpIsAtrrofcoiOafl},</if>
  220. <if test="wadsoiaaatsofcIsLwr != null and wadsoiaaatsofcIsLwr != ''">WADSOIAAATSOFC_IS_LWR = #{wadsoiaaatsofcIsLwr},</if>
  221. <if test="tcoeatnaofcadrfewIsTrofu != null and tcoeatnaofcadrfewIsTrofu != ''">TCOEATNAOFCADRFEW_IS_TROFU = #{tcoeatnaofcadrfewIsTrofu},</if>
  222. <if test="isTcPsaifp != null and isTcPsaifp != ''">IS_TC_PSAIFP = #{isTcPsaifp},</if>
  223. <if test="status != null and status != ''">STATUS = #{status},</if>
  224. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  225. <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
  226. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  227. <if test="intm != null">INTM = #{intm},</if>
  228. <if test="uptm != null">UPTM = #{uptm},</if>
  229. </trim>
  230. <include refid="page_where" />
  231. </update>
  232. <!-- 其他自定义SQL -->
  233. </mapper>