BisInspHystRectInfoDao.xml 10 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.BisInspHystRectInfoDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo" id="bisInspHystRectInfoResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isHasEfvd" column="IS_HAS_EFVD"/>
  8. <result property="isHasEdf" column="IS_HAS_EDF"/>
  9. <result property="edfIsWiicwtosopp" column="EDF_IS_WIICWTOSOPP"/>
  10. <result property="edfType" column="EDF_TYPE"/>
  11. <result property="edfTypeOther" column="EDF_TYPE_OTHER"/>
  12. <result property="edfIsHas" column="EDF_IS_HAS"/>
  13. <result property="isRuleDef" column="IS_RULE_DEF"/>
  14. <result property="isHasFmf" column="IS_HAS_FMF"/>
  15. <result property="isHasVotmf" column="IS_HAS_VOTMF"/>
  16. <result property="efmfType" column="EFMF_TYPE"/>
  17. <result property="efmfIsWiicwtosopp" column="EFMF_IS_WIICWTOSOPP"/>
  18. <result property="mdataIsAttp" column="MDATA_IS_ATTP"/>
  19. <result property="isRun" column="IS_RUN"/>
  20. <result property="paapIsPfct" column="PAAP_IS_PFCT"/>
  21. <result property="tepIsPfct" column="TEP_IS_PFCT"/>
  22. <result property="wrcwlpIsPfct" column="WRCWLP_IS_PFCT"/>
  23. <result property="lpepIsPfct" column="LPEP_IS_PFCT"/>
  24. <result property="feolpIsPfct" column="FEOLP_IS_PFCT"/>
  25. <result property="capIsPfct" column="CAP_IS_PFCT"/>
  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. IS_HAS_EFVD,
  36. IS_HAS_EDF,
  37. EDF_IS_WIICWTOSOPP,
  38. EDF_TYPE,
  39. EDF_TYPE_OTHER,
  40. EDF_IS_HAS,
  41. IS_RULE_DEF,
  42. IS_HAS_FMF,
  43. IS_HAS_VOTMF,
  44. EFMF_TYPE,
  45. EFMF_IS_WIICWTOSOPP,
  46. MDATA_IS_ATTP,
  47. IS_RUN,
  48. PAAP_IS_PFCT,
  49. TEP_IS_PFCT,
  50. WRCWLP_IS_PFCT,
  51. LPEP_IS_PFCT,
  52. FEOLP_IS_PFCT,
  53. CAP_IS_PFCT,
  54. NOTE,
  55. STATUS,
  56. PERS_ID,
  57. INTM,
  58. UPTM
  59. </sql>
  60. <sql id="entity_properties">
  61. #{id},
  62. #{rgstrId},
  63. #{isHasEfvd},
  64. #{isHasEdf},
  65. #{edfIsWiicwtosopp},
  66. #{edfType},
  67. #{edfTypeOther},
  68. #{edfIsHas},
  69. #{isRuleDef},
  70. #{isHasFmf},
  71. #{isHasVotmf},
  72. #{efmfType},
  73. #{efmfIsWiicwtosopp},
  74. #{mdataIsAttp},
  75. #{isRun},
  76. #{paapIsPfct},
  77. #{tepIsPfct},
  78. #{wrcwlpIsPfct},
  79. #{lpepIsPfct},
  80. #{feolpIsPfct},
  81. #{capIsPfct},
  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="isHasEfvd != null and isHasEfvd != ''">and IS_HAS_EFVD = #{isHasEfvd}</if>
  93. <if test="isHasEdf != null and isHasEdf != ''">and IS_HAS_EDF = #{isHasEdf}</if>
  94. <if test="edfIsWiicwtosopp != null and edfIsWiicwtosopp != ''">and EDF_IS_WIICWTOSOPP = #{edfIsWiicwtosopp}</if>
  95. <if test="edfType != null and edfType != ''">and EDF_TYPE = #{edfType}</if>
  96. <if test="edfTypeOther != null and edfTypeOther != ''">and EDF_TYPE_OTHER = #{edfTypeOther}</if>
  97. <if test="edfIsHas != null and edfIsHas != ''">and EDF_IS_HAS = #{edfIsHas}</if>
  98. <if test="isRuleDef != null and isRuleDef != ''">and IS_RULE_DEF = #{isRuleDef}</if>
  99. <if test="isHasFmf != null and isHasFmf != ''">and IS_HAS_FMF = #{isHasFmf}</if>
  100. <if test="isHasVotmf != null and isHasVotmf != ''">and IS_HAS_VOTMF = #{isHasVotmf}</if>
  101. <if test="efmfType != null and efmfType != ''">and EFMF_TYPE = #{efmfType}</if>
  102. <if test="efmfIsWiicwtosopp != null and efmfIsWiicwtosopp != ''">and EFMF_IS_WIICWTOSOPP = #{efmfIsWiicwtosopp}</if>
  103. <if test="mdataIsAttp != null and mdataIsAttp != ''">and MDATA_IS_ATTP = #{mdataIsAttp}</if>
  104. <if test="isRun != null and isRun != ''">and IS_RUN = #{isRun}</if>
  105. <if test="paapIsPfct != null and paapIsPfct != ''">and PAAP_IS_PFCT = #{paapIsPfct}</if>
  106. <if test="tepIsPfct != null and tepIsPfct != ''">and TEP_IS_PFCT = #{tepIsPfct}</if>
  107. <if test="wrcwlpIsPfct != null and wrcwlpIsPfct != ''">and WRCWLP_IS_PFCT = #{wrcwlpIsPfct}</if>
  108. <if test="lpepIsPfct != null and lpepIsPfct != ''">and LPEP_IS_PFCT = #{lpepIsPfct}</if>
  109. <if test="feolpIsPfct != null and feolpIsPfct != ''">and FEOLP_IS_PFCT = #{feolpIsPfct}</if>
  110. <if test="capIsPfct != null and capIsPfct != ''">and CAP_IS_PFCT = #{capIsPfct}</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="bisInspHystRectInfoResultMap" parameterType="String" >
  119. select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO where ID = #{id}
  120. </select>
  121. <select id="getBy" resultMap="bisInspHystRectInfoResultMap">
  122. select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
  123. </select>
  124. <select id="findAll" resultMap="bisInspHystRectInfoResultMap">
  125. select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO
  126. </select>
  127. <select id="findList" resultMap="bisInspHystRectInfoResultMap">
  128. select <include refid="table_columns" /> from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
  129. </select>
  130. <select id="selectCount" resultType="int" >
  131. select count(ID) from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
  132. </select>
  133. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo">
  134. insert into BIS_INSP_HYST_RECT_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_RECT_INFO where ID = #{id}
  139. </delete>
  140. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo">
  141. delete from BIS_INSP_HYST_RECT_INFO <include refid="page_where" />
  142. </delete>
  143. <update id="deleteInFlag" parameterType="java.lang.String">
  144. update BIS_INSP_HYST_RECT_INFO set flag_valid = 0 where ID = #{id}
  145. </update>
  146. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystRectInfo">
  147. update BIS_INSP_HYST_RECT_INFO
  148. <trim prefix="set" suffixOverrides=",">
  149. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  150. <if test="isHasEfvd != null">IS_HAS_EFVD = #{isHasEfvd},</if>
  151. <if test="isHasEdf != null">IS_HAS_EDF = #{isHasEdf},</if>
  152. <if test="edfIsWiicwtosopp != null">EDF_IS_WIICWTOSOPP = #{edfIsWiicwtosopp},</if>
  153. <if test="edfType != null">EDF_TYPE = #{edfType},</if>
  154. <if test="edfTypeOther != null">EDF_TYPE_OTHER = #{edfTypeOther},</if>
  155. <if test="edfIsHas != null">EDF_IS_HAS = #{edfIsHas},</if>
  156. <if test="isRuleDef != null">IS_RULE_DEF = #{isRuleDef},</if>
  157. <if test="isHasFmf != null">IS_HAS_FMF = #{isHasFmf},</if>
  158. <if test="isHasVotmf != null">IS_HAS_VOTMF = #{isHasVotmf},</if>
  159. <if test="efmfType != null">EFMF_TYPE = #{efmfType},</if>
  160. <if test="efmfIsWiicwtosopp != null">EFMF_IS_WIICWTOSOPP = #{efmfIsWiicwtosopp},</if>
  161. <if test="mdataIsAttp != null">MDATA_IS_ATTP = #{mdataIsAttp},</if>
  162. <if test="isRun != null">IS_RUN = #{isRun},</if>
  163. <if test="paapIsPfct != null">PAAP_IS_PFCT = #{paapIsPfct},</if>
  164. <if test="tepIsPfct != null">TEP_IS_PFCT = #{tepIsPfct},</if>
  165. <if test="wrcwlpIsPfct != null">WRCWLP_IS_PFCT = #{wrcwlpIsPfct},</if>
  166. <if test="lpepIsPfct != null">LPEP_IS_PFCT = #{lpepIsPfct},</if>
  167. <if test="feolpIsPfct != null">FEOLP_IS_PFCT = #{feolpIsPfct},</if>
  168. <if test="capIsPfct != null">CAP_IS_PFCT = #{capIsPfct},</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.BisInspHystRectInfo">
  178. update BIS_INSP_HYST_RECT_INFO
  179. <trim prefix="set" suffixOverrides=",">
  180. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  181. <if test="isHasEfvd != null">IS_HAS_EFVD = #{isHasEfvd},</if>
  182. <if test="isHasEdf != null">IS_HAS_EDF = #{isHasEdf},</if>
  183. <if test="edfIsWiicwtosopp != null">EDF_IS_WIICWTOSOPP = #{edfIsWiicwtosopp},</if>
  184. <if test="edfType != null">EDF_TYPE = #{edfType},</if>
  185. <if test="edfTypeOther != null">EDF_TYPE_OTHER = #{edfTypeOther},</if>
  186. <if test="edfIsHas != null">EDF_IS_HAS = #{edfIsHas},</if>
  187. <if test="isRuleDef != null">IS_RULE_DEF = #{isRuleDef},</if>
  188. <if test="isHasFmf != null">IS_HAS_FMF = #{isHasFmf},</if>
  189. <if test="isHasVotmf != null">IS_HAS_VOTMF = #{isHasVotmf},</if>
  190. <if test="efmfType != null">EFMF_TYPE = #{efmfType},</if>
  191. <if test="efmfIsWiicwtosopp != null">EFMF_IS_WIICWTOSOPP = #{efmfIsWiicwtosopp},</if>
  192. <if test="mdataIsAttp != null">MDATA_IS_ATTP = #{mdataIsAttp},</if>
  193. <if test="isRun != null">IS_RUN = #{isRun},</if>
  194. <if test="paapIsPfct != null">PAAP_IS_PFCT = #{paapIsPfct},</if>
  195. <if test="tepIsPfct != null">TEP_IS_PFCT = #{tepIsPfct},</if>
  196. <if test="wrcwlpIsPfct != null">WRCWLP_IS_PFCT = #{wrcwlpIsPfct},</if>
  197. <if test="lpepIsPfct != null">LPEP_IS_PFCT = #{lpepIsPfct},</if>
  198. <if test="feolpIsPfct != null">FEOLP_IS_PFCT = #{feolpIsPfct},</if>
  199. <if test="capIsPfct != null">CAP_IS_PFCT = #{capIsPfct},</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>