3d8feef62252d6d4beadadb04e3a7e1cd5c4ba63.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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.BisInspWintRgstrMendLiftDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift" id="bisInspWintRgstrMendLiftResultMap">
  5. <result property="id" column="ID" />
  6. <result property="rgstrId" column="RGSTR_ID" />
  7. <result property="wintIsChkIn" column="WINT_IS_CHK_IN" />
  8. <result property="ltcoswstwiIsTrue" column="LTCOSWSTWI_IS_TRUE" />
  9. <result property="wimmriIsTrue" column="WIMMRI_IS_TRUE" />
  10. <result property="tmisitwdpIsTrue" column="TMISITWDP_IS_TRUE" />
  11. <result property="aawiirtyRawiIsTrue" column="AAWIIRTY_RAWI_IS_TRUE" />
  12. <result property="isEnactMomc" column="IS_ENACT_MOMC" />
  13. <result property="isHbiawtrlrprRar" column="IS_HBIAWTRLRPR_RAR" />
  14. <result property="isGetVwdp" column="IS_GET_VWDP" />
  15. <result property="isDwutcsitp" column="IS_DWUTCSITP" />
  16. <result property="wimmIsNorm" column="WIMM_IS_NORM" />
  17. <result property="isHasOthPblm" column="IS_HAS_OTH_PBLM" />
  18. <result property="status" column="STATUS"/>
  19. <result property="recPersId" column="REC_PERS_ID" />
  20. <result property="intm" column="INTM" />
  21. <result property="uptm" column="UPTM" />
  22. <result property="dwutcsitpType" column="DWUTCSITP_TYPE" />
  23. <result property="dwutcsitpTypeNote" column="DWUTCSITP_TYPE_NOTE" />
  24. <result property="wimmNormType" column="WIMM_NORM_TYPE" />
  25. <result property="wimmNormTypeNote" column="WIMM_NORM_TYPE_NOTE" />
  26. <result property="ltcoswstwiType" column="LTCOSWSTWI_TYPE" />
  27. <result property="vwdpNoType" column="VWDP_NO_TYPE" />
  28. </resultMap>
  29. <sql id="table_columns">
  30. VWDP_NO_TYPE,
  31. LTCOSWSTWI_TYPE,
  32. ID,
  33. RGSTR_ID,
  34. WINT_IS_CHK_IN,
  35. LTCOSWSTWI_IS_TRUE,
  36. WIMMRI_IS_TRUE,
  37. TMISITWDP_IS_TRUE,
  38. AAWIIRTY_RAWI_IS_TRUE,
  39. IS_ENACT_MOMC,
  40. IS_HBIAWTRLRPR_RAR,
  41. IS_GET_VWDP,
  42. IS_DWUTCSITP,
  43. WIMM_IS_NORM,
  44. IS_HAS_OTH_PBLM,
  45. STATUS,
  46. REC_PERS_ID,
  47. INTM,
  48. UPTM,
  49. DWUTCSITP_TYPE,
  50. DWUTCSITP_TYPE_NOTE,
  51. WIMM_NORM_TYPE,
  52. WIMM_NORM_TYPE_NOTE
  53. </sql>
  54. <sql id="entity_properties">
  55. #{vwdpNoType},
  56. #{ltcoswstwiType},
  57. #{id},
  58. #{rgstrId},
  59. #{wintIsChkIn},
  60. #{ltcoswstwiIsTrue},
  61. #{wimmriIsTrue},
  62. #{tmisitwdpIsTrue},
  63. #{aawiirtyRawiIsTrue},
  64. #{isEnactMomc},
  65. #{isHbiawtrlrprRar},
  66. #{isGetVwdp},
  67. #{isDwutcsitp},
  68. #{wimmIsNorm},
  69. #{isHasOthPblm},
  70. #{status},
  71. #{recPersId},
  72. #{intm},
  73. #{uptm},
  74. #{dwutcsitpType},
  75. #{dwutcsitpTypeNote},
  76. #{wimmNormType},
  77. #{wimmNormTypeNote}
  78. </sql>
  79. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  80. <sql id="page_where">
  81. <trim prefix="where" prefixOverrides="and | or ">
  82. <if test="ltcoswstwiType != null and ltcoswstwiType != ''">and LTCOSWSTWI_TYPE = #{ltcoswstwiType}</if>
  83. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  84. <if test="wintIsChkIn != null and wintIsChkIn != ''">and WINT_IS_CHK_IN = #{wintIsChkIn}</if>
  85. <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">and LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue}</if>
  86. <if test="wimmriIsTrue != null and wimmriIsTrue != ''">and WIMMRI_IS_TRUE = #{wimmriIsTrue}</if>
  87. <if test="tmisitwdpIsTrue != null and tmisitwdpIsTrue != ''">and TMISITWDP_IS_TRUE = #{tmisitwdpIsTrue}</if>
  88. <if test="aawiirtyRawiIsTrue != null and aawiirtyRawiIsTrue != ''">and AAWIIRTY_RAWI_IS_TRUE = #{aawiirtyRawiIsTrue}</if>
  89. <if test="isEnactMomc != null and isEnactMomc != ''">and IS_ENACT_MOMC = #{isEnactMomc}</if>
  90. <if test="isHbiawtrlrprRar != null and isHbiawtrlrprRar != ''">and IS_HBIAWTRLRPR_RAR = #{isHbiawtrlrprRar}</if>
  91. <if test="isGetVwdp != null and isGetVwdp != ''">and IS_GET_VWDP = #{isGetVwdp}</if>
  92. <if test="isDwutcsitp != null and isDwutcsitp != ''">and IS_DWUTCSITP = #{isDwutcsitp}</if>
  93. <if test="wimmIsNorm != null and wimmIsNorm != ''">and WIMM_IS_NORM = #{wimmIsNorm}</if>
  94. <if test="isHasOthPblm != null and isHasOthPblm != ''">and IS_HAS_OTH_PBLM = #{isHasOthPblm}</if>
  95. <if test="status != null and status != ''">and STATUS = #{status}</if>
  96. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  97. <if test="dwutcsitpType != null and dwutcsitpType != ''">and DWUTCSITP_TYPE = #{dwutcsitpType}</if>
  98. <if test="dwutcsitpTypeNote != null and dwutcsitpTypeNote != ''">and DWUTCSITP_TYPE_NOTE = #{dwutcsitpTypeNote}</if>
  99. <if test="wimmNormType != null and wimmNormType != ''">and WIMM_NORM_TYPE = #{wimmNormType}</if>
  100. <if test="wimmNormTypeNote != null and wimmNormTypeNote != ''">and WIMM_NORM_TYPE_NOTE = #{wimmNormTypeNote}</if>
  101. <if test="intm != null">and INTM = #{intm}</if>
  102. <if test="uptm != null">and UPTM = #{uptm}</if>
  103. </trim>
  104. </sql>
  105. <select id="get" resultMap="bisInspWintRgstrMendLiftResultMap" parameterType="String" >
  106. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT where ID = #{id}
  107. </select>
  108. <select id="getBy" resultMap="bisInspWintRgstrMendLiftResultMap">
  109. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
  110. </select>
  111. <select id="findAll" resultMap="bisInspWintRgstrMendLiftResultMap">
  112. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT
  113. </select>
  114. <select id="findList" resultMap="bisInspWintRgstrMendLiftResultMap">
  115. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
  116. </select>
  117. <select id="selectCount" resultType="int" >
  118. select count(ID) from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
  119. </select>
  120. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift">
  121. insert into BIS_INSP_WINT_RGSTR_MEND_LIFT( <include refid="table_columns" /> )
  122. values ( <include refid="entity_properties" /> )
  123. </insert>
  124. <delete id="delete" parameterType="java.lang.String">
  125. delete from BIS_INSP_WINT_RGSTR_MEND_LIFT where ID = #{id}
  126. </delete>
  127. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift">
  128. delete from BIS_INSP_WINT_RGSTR_MEND_LIFT <include refid="page_where" />
  129. </delete>
  130. <update id="deleteInFlag" parameterType="java.lang.String">
  131. update BIS_INSP_WINT_RGSTR_MEND_LIFT set flag_valid = 0 where>ID = #{id}
  132. </update>
  133. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift">
  134. update BIS_INSP_WINT_RGSTR_MEND_LIFT
  135. <trim prefix="set" suffixOverrides=",">
  136. <if test="vwdpNoType != null and vwdpNoType != ''">VWDP_NO_TYPE = #{vwdpNoType},</if>
  137. <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
  138. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  139. <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
  140. <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
  141. <if test="wimmriIsTrue != null and wimmriIsTrue != ''">WIMMRI_IS_TRUE = #{wimmriIsTrue},</if>
  142. <if test="tmisitwdpIsTrue != null and tmisitwdpIsTrue != ''">TMISITWDP_IS_TRUE = #{tmisitwdpIsTrue},</if>
  143. <if test="aawiirtyRawiIsTrue != null and aawiirtyRawiIsTrue != ''">AAWIIRTY_RAWI_IS_TRUE = #{aawiirtyRawiIsTrue},</if>
  144. <if test="isEnactMomc != null and isEnactMomc != ''">IS_ENACT_MOMC = #{isEnactMomc},</if>
  145. <if test="isHbiawtrlrprRar != null and isHbiawtrlrprRar != ''">IS_HBIAWTRLRPR_RAR = #{isHbiawtrlrprRar},</if>
  146. <if test="isGetVwdp != null and isGetVwdp != ''">IS_GET_VWDP = #{isGetVwdp},</if>
  147. <if test="isDwutcsitp != null and isDwutcsitp != ''">IS_DWUTCSITP = #{isDwutcsitp},</if>
  148. <if test="wimmIsNorm != null and wimmIsNorm != ''">WIMM_IS_NORM = #{wimmIsNorm},</if>
  149. <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
  150. <if test="status != null and status != ''">STATUS = #{status},</if>
  151. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  152. <if test="dwutcsitpType != null and dwutcsitpType != ''">DWUTCSITP_TYPE = #{dwutcsitpType},</if>
  153. <if test="dwutcsitpTypeNote != null and dwutcsitpTypeNote != ''">DWUTCSITP_TYPE_NOTE = #{dwutcsitpTypeNote},</if>
  154. <if test="wimmNormType != null and wimmNormType != ''">WIMM_NORM_TYPE = #{wimmNormType},</if>
  155. <if test="wimmNormTypeNote != null and wimmNormTypeNote != ''">WIMM_NORM_TYPE_NOTE = #{wimmNormTypeNote},</if>
  156. <if test="intm != null">INTM = #{intm},</if>
  157. <if test="uptm != null">UPTM = #{uptm},</if>
  158. </trim>
  159. <where>ID = #{id}</where>
  160. </update>
  161. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrMendLift">
  162. update BIS_INSP_WINT_RGSTR_MEND_LIFT
  163. <trim prefix="set" suffixOverrides=",">
  164. <if test="vwdpNoType != null and vwdpNoType != ''">VWDP_NO_TYPE = #{vwdpNoType},</if>
  165. <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
  166. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  167. <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
  168. <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
  169. <if test="wimmriIsTrue != null and wimmriIsTrue != ''">WIMMRI_IS_TRUE = #{wimmriIsTrue},</if>
  170. <if test="tmisitwdpIsTrue != null and tmisitwdpIsTrue != ''">TMISITWDP_IS_TRUE = #{tmisitwdpIsTrue},</if>
  171. <if test="aawiirtyRawiIsTrue != null and aawiirtyRawiIsTrue != ''">AAWIIRTY_RAWI_IS_TRUE = #{aawiirtyRawiIsTrue},</if>
  172. <if test="isEnactMomc != null and isEnactMomc != ''">IS_ENACT_MOMC = #{isEnactMomc},</if>
  173. <if test="isHbiawtrlrprRar != null and isHbiawtrlrprRar != ''">IS_HBIAWTRLRPR_RAR = #{isHbiawtrlrprRar},</if>
  174. <if test="isGetVwdp != null and isGetVwdp != ''">IS_GET_VWDP = #{isGetVwdp},</if>
  175. <if test="isDwutcsitp != null and isDwutcsitp != ''">IS_DWUTCSITP = #{isDwutcsitp},</if>
  176. <if test="wimmIsNorm != null and wimmIsNorm != ''">WIMM_IS_NORM = #{wimmIsNorm},</if>
  177. <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
  178. <if test="status != null and status != ''">STATUS = #{status},</if>
  179. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  180. <if test="dwutcsitpType != null and dwutcsitpType != ''">DWUTCSITP_TYPE = #{dwutcsitpType},</if>
  181. <if test="dwutcsitpTypeNote != null and dwutcsitpTypeNote != ''">DWUTCSITP_TYPE_NOTE = #{dwutcsitpTypeNote},</if>
  182. <if test="wimmNormType != null and wimmNormType != ''">WIMM_NORM_TYPE = #{wimmNormType},</if>
  183. <if test="wimmNormTypeNote != null and wimmNormTypeNote != ''">WIMM_NORM_TYPE_NOTE = #{wimmNormTypeNote},</if>
  184. <if test="intm != null">INTM = #{intm},</if>
  185. <if test="uptm != null">UPTM = #{uptm},</if>
  186. </trim>
  187. <include refid="page_where" />
  188. </update>
  189. <!-- 其他自定义SQL -->
  190. </mapper>