BisInspHystOocInfoDao.xml 11 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.BisInspHystOocInfoDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo" id="bisInspHystOocInfoResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="pgIsSc" column="PG_IS_SC"/>
  8. <result property="intIsBar" column="INT_IS_BAR"/>
  9. <result property="fcltsIsDip" column="FCLTS_IS_DIP"/>
  10. <result property="fcltsType" column="FCLTS_TYPE"/>
  11. <result property="isVacrpatr" column="IS_VACRPATR"/>
  12. <result property="itioIsDttsmaniptctspra" column="ITIO_IS_DTTSMANIPTCTSPRA"/>
  13. <result property="ermIsWkab" column="ERM_IS_WKAB"/>
  14. <result property="ermType" column="ERM_TYPE"/>
  15. <result property="ermTypeOther" column="ERM_TYPE_OTHER"/>
  16. <result property="wfclpswatlIsWkabEf" column="WFCLPSWATL_IS_WKAB_EF"/>
  17. <result property="etsrpacmritpIsWkab" column="ETSRPACMRITP_IS_WKAB"/>
  18. <result property="isHasKpFclts" column="IS_HAS_KP_FCLTS"/>
  19. <result property="kpFcltsType" column="KP_FCLTS_TYPE"/>
  20. <result property="kpFcltsTypeOther" column="KP_FCLTS_TYPE_OTHER"/>
  21. <result property="mtmbotfIsWkab" column="MTMBOTF_IS_WKAB"/>
  22. <result property="mtmbotf" column="MTMBOTF"/>
  23. <result property="pfshIsRmv" column="PFSH_IS_RMV"/>
  24. <result property="pfshRmvStp" column="PFSH_RMV_STP"/>
  25. <result property="amritwpIsWkab" column="AMRITWP_IS_WKAB"/>
  26. <result property="note" column="NOTE"/>
  27. <result property="status" column="STATUS"/>
  28. <result property="persId" column="PERS_ID"/>
  29. <result property="intm" column="INTM"/>
  30. <result property="uptm" column="UPTM"/>
  31. </resultMap>
  32. <sql id="table_columns">
  33. ID,
  34. RGSTR_ID,
  35. PG_IS_SC,
  36. INT_IS_BAR,
  37. FCLTS_IS_DIP,
  38. FCLTS_TYPE,
  39. IS_VACRPATR,
  40. ITIO_IS_DTTSMANIPTCTSPRA,
  41. ERM_IS_WKAB,
  42. ERM_TYPE,
  43. ERM_TYPE_OTHER,
  44. WFCLPSWATL_IS_WKAB_EF,
  45. ETSRPACMRITP_IS_WKAB,
  46. IS_HAS_KP_FCLTS,
  47. KP_FCLTS_TYPE,
  48. KP_FCLTS_TYPE_OTHER,
  49. MTMBOTF_IS_WKAB,
  50. MTMBOTF,
  51. PFSH_IS_RMV,
  52. PFSH_RMV_STP,
  53. AMRITWP_IS_WKAB,
  54. NOTE,
  55. STATUS,
  56. PERS_ID,
  57. INTM,
  58. UPTM
  59. </sql>
  60. <sql id="entity_properties">
  61. #{id},
  62. #{rgstrId},
  63. #{pgIsSc},
  64. #{intIsBar},
  65. #{fcltsIsDip},
  66. #{fcltsType},
  67. #{isVacrpatr},
  68. #{itioIsDttsmaniptctspra},
  69. #{ermIsWkab},
  70. #{ermType},
  71. #{ermTypeOther},
  72. #{wfclpswatlIsWkabEf},
  73. #{etsrpacmritpIsWkab},
  74. #{isHasKpFclts},
  75. #{kpFcltsType},
  76. #{kpFcltsTypeOther},
  77. #{mtmbotfIsWkab},
  78. #{mtmbotf},
  79. #{pfshIsRmv},
  80. #{pfshRmvStp},
  81. #{amritwpIsWkab},
  82. #{note},
  83. #{status},
  84. #{persId},
  85. #{intm},
  86. #{uptm}
  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="pgIsSc != null and pgIsSc != ''">and PG_IS_SC = #{pgIsSc}</if>
  93. <if test="intIsBar != null and intIsBar != ''">and INT_IS_BAR = #{intIsBar}</if>
  94. <if test="fcltsIsDip != null and fcltsIsDip != ''">and FCLTS_IS_DIP = #{fcltsIsDip}</if>
  95. <if test="fcltsType != null and fcltsType != ''">and FCLTS_TYPE = #{fcltsType}</if>
  96. <if test="isVacrpatr != null and isVacrpatr != ''">and IS_VACRPATR = #{isVacrpatr}</if>
  97. <if test="itioIsDttsmaniptctspra != null and itioIsDttsmaniptctspra != ''">and ITIO_IS_DTTSMANIPTCTSPRA = #{itioIsDttsmaniptctspra}</if>
  98. <if test="ermIsWkab != null and ermIsWkab != ''">and ERM_IS_WKAB = #{ermIsWkab}</if>
  99. <if test="ermType != null and ermType != ''">and ERM_TYPE = #{ermType}</if>
  100. <if test="ermTypeOther != null and ermTypeOther != ''">and ERM_TYPE_OTHER = #{ermTypeOther}</if>
  101. <if test="wfclpswatlIsWkabEf != null and wfclpswatlIsWkabEf != ''">and WFCLPSWATL_IS_WKAB_EF = #{wfclpswatlIsWkabEf}</if>
  102. <if test="etsrpacmritpIsWkab != null and etsrpacmritpIsWkab != ''">and ETSRPACMRITP_IS_WKAB = #{etsrpacmritpIsWkab}</if>
  103. <if test="isHasKpFclts != null and isHasKpFclts != ''">and IS_HAS_KP_FCLTS = #{isHasKpFclts}</if>
  104. <if test="kpFcltsType != null and kpFcltsType != ''">and KP_FCLTS_TYPE = #{kpFcltsType}</if>
  105. <if test="kpFcltsTypeOther != null and kpFcltsTypeOther != ''">and KP_FCLTS_TYPE_OTHER = #{kpFcltsTypeOther}</if>
  106. <if test="mtmbotfIsWkab != null and mtmbotfIsWkab != ''">and MTMBOTF_IS_WKAB = #{mtmbotfIsWkab}</if>
  107. <if test="mtmbotf != null and mtmbotf != ''">and MTMBOTF = #{mtmbotf}</if>
  108. <if test="pfshIsRmv != null and pfshIsRmv != ''">and PFSH_IS_RMV = #{pfshIsRmv}</if>
  109. <if test="pfshRmvStp != null and pfshRmvStp != ''">and PFSH_RMV_STP = #{pfshRmvStp}</if>
  110. <if test="amritwpIsWkab != null and amritwpIsWkab != ''">and AMRITWP_IS_WKAB = #{amritwpIsWkab}</if>
  111. <if test="note != null and note != ''">and NOTE = #{note}</if>
  112. <if test="status != null and status != ''">and STATUS = #{status}</if>
  113. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  114. <if test="intm != null">and INTM = #{intm}</if>
  115. <if test="uptm != null">and UPTM = #{uptm}</if>
  116. </trim>
  117. </sql>
  118. <select id="get" resultMap="bisInspHystOocInfoResultMap" parameterType="String" >
  119. select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO where ID = #{id}
  120. </select>
  121. <select id="getBy" resultMap="bisInspHystOocInfoResultMap">
  122. select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
  123. </select>
  124. <select id="findAll" resultMap="bisInspHystOocInfoResultMap">
  125. select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO
  126. </select>
  127. <select id="findList" resultMap="bisInspHystOocInfoResultMap">
  128. select <include refid="table_columns" /> from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
  129. </select>
  130. <select id="selectCount" resultType="int" >
  131. select count(ID) from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
  132. </select>
  133. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo">
  134. insert into BIS_INSP_HYST_OOC_INFO( <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_HYST_OOC_INFO where ID = #{id}
  139. </delete>
  140. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo">
  141. delete from BIS_INSP_HYST_OOC_INFO <include refid="page_where" />
  142. </delete>
  143. <update id="deleteInFlag" parameterType="java.lang.String">
  144. update BIS_INSP_HYST_OOC_INFO set flag_valid = 0 where ID = #{id}
  145. </update>
  146. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo">
  147. update BIS_INSP_HYST_OOC_INFO
  148. <trim prefix="set" suffixOverrides=",">
  149. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  150. <if test="pgIsSc != null">PG_IS_SC = #{pgIsSc},</if>
  151. <if test="intIsBar != null">INT_IS_BAR = #{intIsBar},</if>
  152. <if test="fcltsIsDip != null">FCLTS_IS_DIP = #{fcltsIsDip},</if>
  153. <if test="fcltsType != null">FCLTS_TYPE = #{fcltsType},</if>
  154. <if test="isVacrpatr != null">IS_VACRPATR = #{isVacrpatr},</if>
  155. <if test="itioIsDttsmaniptctspra != null">ITIO_IS_DTTSMANIPTCTSPRA = #{itioIsDttsmaniptctspra},</if>
  156. <if test="ermIsWkab != null">ERM_IS_WKAB = #{ermIsWkab},</if>
  157. <if test="ermType != null">ERM_TYPE = #{ermType},</if>
  158. <if test="ermTypeOther != null">ERM_TYPE_OTHER = #{ermTypeOther},</if>
  159. <if test="wfclpswatlIsWkabEf != null">WFCLPSWATL_IS_WKAB_EF = #{wfclpswatlIsWkabEf},</if>
  160. <if test="etsrpacmritpIsWkab != null">ETSRPACMRITP_IS_WKAB = #{etsrpacmritpIsWkab},</if>
  161. <if test="isHasKpFclts != null">IS_HAS_KP_FCLTS = #{isHasKpFclts},</if>
  162. <if test="kpFcltsType != null">KP_FCLTS_TYPE = #{kpFcltsType},</if>
  163. <if test="kpFcltsTypeOther != null">KP_FCLTS_TYPE_OTHER = #{kpFcltsTypeOther},</if>
  164. <if test="mtmbotfIsWkab != null">MTMBOTF_IS_WKAB = #{mtmbotfIsWkab},</if>
  165. <if test="mtmbotf != null">MTMBOTF = #{mtmbotf},</if>
  166. <if test="pfshIsRmv != null">PFSH_IS_RMV = #{pfshIsRmv},</if>
  167. <if test="pfshRmvStp != null">PFSH_RMV_STP = #{pfshRmvStp},</if>
  168. <if test="amritwpIsWkab != null">AMRITWP_IS_WKAB = #{amritwpIsWkab},</if>
  169. <if test="note != null">NOTE = #{note},</if>
  170. <if test="status != null">STATUS = #{status},</if>
  171. <if test="persId != null">PERS_ID = #{persId},</if>
  172. <if test="intm != null">INTM = #{intm},</if>
  173. <if test="uptm != null">UPTM = #{uptm},</if>
  174. </trim>
  175. <where>ID = #{id}</where>
  176. </update>
  177. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystOocInfo">
  178. update BIS_INSP_HYST_OOC_INFO
  179. <trim prefix="set" suffixOverrides=",">
  180. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  181. <if test="pgIsSc != null">PG_IS_SC = #{pgIsSc},</if>
  182. <if test="intIsBar != null">INT_IS_BAR = #{intIsBar},</if>
  183. <if test="fcltsIsDip != null">FCLTS_IS_DIP = #{fcltsIsDip},</if>
  184. <if test="fcltsType != null">FCLTS_TYPE = #{fcltsType},</if>
  185. <if test="isVacrpatr != null">IS_VACRPATR = #{isVacrpatr},</if>
  186. <if test="itioIsDttsmaniptctspra != null">ITIO_IS_DTTSMANIPTCTSPRA = #{itioIsDttsmaniptctspra},</if>
  187. <if test="ermIsWkab != null">ERM_IS_WKAB = #{ermIsWkab},</if>
  188. <if test="ermType != null">ERM_TYPE = #{ermType},</if>
  189. <if test="ermTypeOther != null">ERM_TYPE_OTHER = #{ermTypeOther},</if>
  190. <if test="wfclpswatlIsWkabEf != null">WFCLPSWATL_IS_WKAB_EF = #{wfclpswatlIsWkabEf},</if>
  191. <if test="etsrpacmritpIsWkab != null">ETSRPACMRITP_IS_WKAB = #{etsrpacmritpIsWkab},</if>
  192. <if test="isHasKpFclts != null">IS_HAS_KP_FCLTS = #{isHasKpFclts},</if>
  193. <if test="kpFcltsType != null">KP_FCLTS_TYPE = #{kpFcltsType},</if>
  194. <if test="kpFcltsTypeOther != null">KP_FCLTS_TYPE_OTHER = #{kpFcltsTypeOther},</if>
  195. <if test="mtmbotfIsWkab != null">MTMBOTF_IS_WKAB = #{mtmbotfIsWkab},</if>
  196. <if test="mtmbotf != null">MTMBOTF = #{mtmbotf},</if>
  197. <if test="pfshIsRmv != null">PFSH_IS_RMV = #{pfshIsRmv},</if>
  198. <if test="pfshRmvStp != null">PFSH_RMV_STP = #{pfshRmvStp},</if>
  199. <if test="amritwpIsWkab != null">AMRITWP_IS_WKAB = #{amritwpIsWkab},</if>
  200. <if test="note != null">NOTE = #{note},</if>
  201. <if test="status != null">STATUS = #{status},</if>
  202. <if test="persId != null">PERS_ID = #{persId},</if>
  203. <if test="intm != null">INTM = #{intm},</if>
  204. <if test="uptm != null">UPTM = #{uptm},</if>
  205. </trim>
  206. <include refid="page_where" />
  207. </update>
  208. <!-- 其他自定义SQL -->
  209. </mapper>