BisInspSamrmpRgstrSmrmpDao.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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.BisInspSamrmpRgstrSmrmpDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp" id="bisInspSamrmpRgstrSmrmpResultMap">
  5. <result property="id" column="ID" />
  6. <result property="rgstrId" column="RGSTR_ID" />
  7. <result property="buildUnit" column="BUILD_UNIT" />
  8. <result property="aofCntlIsArv" column="AOF_CNTL_IS_ARV" />
  9. <result property="aofPronIsArv" column="AOF_PRON_IS_ARV" />
  10. <result property="aofCtcntIsArv" column="AOF_CTCNT_IS_ARV" />
  11. <result property="cntrlPrjIsFit" column="CNTRL_PRJ_IS_FIT" />
  12. <result property="cntrlLongIsFit" column="CNTRL_LONG_IS_FIT" />
  13. <result property="msifsPiaIsFit" column="MSIFS_PIA_IS_FIT" />
  14. <result property="msifsFurIsFit" column="MSIFS_FUR_IS_FIT" />
  15. <result property="pcPlanIsPblm" column="PC_PLAN_IS_PBLM" />
  16. <result property="pcQsIsPblm" column="PC_QS_IS_PBLM" />
  17. <result property="iotfsPlprsIsWk" column="IOTFS_PLPRS_IS_WK" />
  18. <result property="iotfsTspbfpIsWk" column="IOTFS_TSPBFP_IS_WK" />
  19. <result property="iotfsCssIsWk" column="IOTFS_CSS_IS_WK" />
  20. <result property="iotfsCmsIsWk" column="IOTFS_CMS_IS_WK" />
  21. <result property="note" column="NOTE" />
  22. <result property="fillUnit" column="FILL_UNIT" />
  23. <result property="fillPers" column="FILL_PERS" />
  24. <result property="fillChkPers" column="FILL_CHK_PERS" />
  25. <result property="fillTel" column="FILL_TEL" />
  26. <result property="fillTm" column="FILL_TM" />
  27. <result property="status" column="STATUS"/>
  28. <result property="recPersId" column="REC_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. BUILD_UNIT,
  36. AOF_CNTL_IS_ARV,
  37. AOF_PRON_IS_ARV,
  38. AOF_CTCNT_IS_ARV,
  39. CNTRL_PRJ_IS_FIT,
  40. CNTRL_LONG_IS_FIT,
  41. MSIFS_PIA_IS_FIT,
  42. MSIFS_FUR_IS_FIT,
  43. PC_PLAN_IS_PBLM,
  44. PC_QS_IS_PBLM,
  45. IOTFS_PLPRS_IS_WK,
  46. IOTFS_TSPBFP_IS_WK,
  47. IOTFS_CSS_IS_WK,
  48. IOTFS_CMS_IS_WK,
  49. NOTE,
  50. FILL_UNIT,
  51. FILL_PERS,
  52. FILL_CHK_PERS,
  53. FILL_TEL,
  54. FILL_TM,
  55. STATUS,
  56. REC_PERS_ID,
  57. INTM,
  58. UPTM
  59. </sql>
  60. <sql id="entity_properties">
  61. #{id},
  62. #{rgstrId},
  63. #{buildUnit},
  64. #{aofCntlIsArv},
  65. #{aofPronIsArv},
  66. #{aofCtcntIsArv},
  67. #{cntrlPrjIsFit},
  68. #{cntrlLongIsFit},
  69. #{msifsPiaIsFit},
  70. #{msifsFurIsFit},
  71. #{pcPlanIsPblm},
  72. #{pcQsIsPblm},
  73. #{iotfsPlprsIsWk},
  74. #{iotfsTspbfpIsWk},
  75. #{iotfsCssIsWk},
  76. #{iotfsCmsIsWk},
  77. #{note},
  78. #{fillUnit},
  79. #{fillPers},
  80. #{fillChkPers},
  81. #{fillTel},
  82. #{fillTm},
  83. #{status},
  84. #{recPersId},
  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="buildUnit != null and buildUnit != ''">and BUILD_UNIT = #{buildUnit}</if>
  93. <if test="aofCntlIsArv != null and aofCntlIsArv != ''">and AOF_CNTL_IS_ARV = #{aofCntlIsArv}</if>
  94. <if test="aofPronIsArv != null and aofPronIsArv != ''">and AOF_PRON_IS_ARV = #{aofPronIsArv}</if>
  95. <if test="aofCtcntIsArv != null and aofCtcntIsArv != ''">and AOF_CTCNT_IS_ARV = #{aofCtcntIsArv}</if>
  96. <if test="cntrlPrjIsFit != null and cntrlPrjIsFit != ''">and CNTRL_PRJ_IS_FIT = #{cntrlPrjIsFit}</if>
  97. <if test="cntrlLongIsFit != null and cntrlLongIsFit != ''">and CNTRL_LONG_IS_FIT = #{cntrlLongIsFit}</if>
  98. <if test="msifsPiaIsFit != null and msifsPiaIsFit != ''">and MSIFS_PIA_IS_FIT = #{msifsPiaIsFit}</if>
  99. <if test="msifsFurIsFit != null and msifsFurIsFit != ''">and MSIFS_FUR_IS_FIT = #{msifsFurIsFit}</if>
  100. <if test="pcPlanIsPblm != null and pcPlanIsPblm != ''">and PC_PLAN_IS_PBLM = #{pcPlanIsPblm}</if>
  101. <if test="pcQsIsPblm != null and pcQsIsPblm != ''">and PC_QS_IS_PBLM = #{pcQsIsPblm}</if>
  102. <if test="iotfsPlprsIsWk != null and iotfsPlprsIsWk != ''">and IOTFS_PLPRS_IS_WK = #{iotfsPlprsIsWk}</if>
  103. <if test="iotfsTspbfpIsWk != null and iotfsTspbfpIsWk != ''">and IOTFS_TSPBFP_IS_WK = #{iotfsTspbfpIsWk}</if>
  104. <if test="iotfsCssIsWk != null and iotfsCssIsWk != ''">and IOTFS_CSS_IS_WK = #{iotfsCssIsWk}</if>
  105. <if test="iotfsCmsIsWk != null and iotfsCmsIsWk != ''">and IOTFS_CMS_IS_WK = #{iotfsCmsIsWk}</if>
  106. <if test="note != null and note != ''">and NOTE = #{note}</if>
  107. <if test="fillUnit != null and fillUnit != ''">and FILL_UNIT = #{fillUnit}</if>
  108. <if test="fillPers != null and fillPers != ''">and FILL_PERS = #{fillPers}</if>
  109. <if test="fillChkPers != null and fillChkPers != ''">and FILL_CHK_PERS = #{fillChkPers}</if>
  110. <if test="fillTel != null and fillTel != ''">and FILL_TEL = #{fillTel}</if>
  111. <if test="fillTm != null">and FILL_TM = #{fillTm}</if>
  112. <if test="status != null and status != ''">and STATUS = #{status}</if>
  113. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</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="bisInspSamrmpRgstrSmrmpResultMap" parameterType="String" >
  119. select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP where ID = #{id}
  120. </select>
  121. <select id="getBy" resultMap="bisInspSamrmpRgstrSmrmpResultMap">
  122. select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
  123. </select>
  124. <select id="findAll" resultMap="bisInspSamrmpRgstrSmrmpResultMap">
  125. select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP
  126. </select>
  127. <select id="findList" resultMap="bisInspSamrmpRgstrSmrmpResultMap">
  128. select <include refid="table_columns" /> from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
  129. </select>
  130. <select id="selectCount" resultType="int" >
  131. select count(ID) from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
  132. </select>
  133. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp">
  134. insert into BIS_INSP_SAMRMP_RGSTR_SMRMP( <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_SAMRMP_RGSTR_SMRMP where ID = #{id}
  139. </delete>
  140. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp">
  141. delete from BIS_INSP_SAMRMP_RGSTR_SMRMP <include refid="page_where" />
  142. </delete>
  143. <update id="deleteInFlag" parameterType="java.lang.String">
  144. update BIS_INSP_SAMRMP_RGSTR_SMRMP set flag_valid = 0 where>ID = #{id}
  145. </update>
  146. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSamrmpRgstrSmrmp">
  147. update BIS_INSP_SAMRMP_RGSTR_SMRMP
  148. <trim prefix="set" suffixOverrides=",">
  149. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  150. <if test="buildUnit != null and buildUnit != ''">BUILD_UNIT = #{buildUnit},</if>
  151. <if test="aofCntlIsArv != null and aofCntlIsArv != ''">AOF_CNTL_IS_ARV = #{aofCntlIsArv},</if>
  152. <if test="aofPronIsArv != null and aofPronIsArv != ''">AOF_PRON_IS_ARV = #{aofPronIsArv},</if>
  153. <if test="aofCtcntIsArv != null and aofCtcntIsArv != ''">AOF_CTCNT_IS_ARV = #{aofCtcntIsArv},</if>
  154. <if test="cntrlPrjIsFit != null and cntrlPrjIsFit != ''">CNTRL_PRJ_IS_FIT = #{cntrlPrjIsFit},</if>
  155. <if test="cntrlLongIsFit != null and cntrlLongIsFit != ''">CNTRL_LONG_IS_FIT = #{cntrlLongIsFit},</if>
  156. <if test="msifsPiaIsFit != null and msifsPiaIsFit != ''">MSIFS_PIA_IS_FIT = #{msifsPiaIsFit},</if>
  157. <if test="msifsFurIsFit != null and msifsFurIsFit != ''">MSIFS_FUR_IS_FIT = #{msifsFurIsFit},</if>
  158. <if test="pcPlanIsPblm != null and pcPlanIsPblm != ''">PC_PLAN_IS_PBLM = #{pcPlanIsPblm},</if>
  159. <if test="pcQsIsPblm != null and pcQsIsPblm != ''">PC_QS_IS_PBLM = #{pcQsIsPblm},</if>
  160. <if test="iotfsPlprsIsWk != null and iotfsPlprsIsWk != ''">IOTFS_PLPRS_IS_WK = #{iotfsPlprsIsWk},</if>
  161. <if test="iotfsTspbfpIsWk != null and iotfsTspbfpIsWk != ''">IOTFS_TSPBFP_IS_WK = #{iotfsTspbfpIsWk},</if>
  162. <if test="iotfsCssIsWk != null and iotfsCssIsWk != ''">IOTFS_CSS_IS_WK = #{iotfsCssIsWk},</if>
  163. <if test="iotfsCmsIsWk != null and iotfsCmsIsWk != ''">IOTFS_CMS_IS_WK = #{iotfsCmsIsWk},</if>
  164. <if test="note != null and note != ''">NOTE = #{note},</if>
  165. <if test="fillUnit != null and fillUnit != ''">FILL_UNIT = #{fillUnit},</if>
  166. <if test="fillPers != null and fillPers != ''">FILL_PERS = #{fillPers},</if>
  167. <if test="fillChkPers != null and fillChkPers != ''">FILL_CHK_PERS = #{fillChkPers},</if>
  168. <if test="fillTel != null and fillTel != ''">FILL_TEL = #{fillTel},</if>
  169. <if test="fillTm != null">FILL_TM = #{fillTm},</if>
  170. <if test="status != null and status != ''">STATUS = #{status},</if>
  171. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</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.BisInspSamrmpRgstrSmrmp">
  178. update BIS_INSP_SAMRMP_RGSTR_SMRMP
  179. <trim prefix="set" suffixOverrides=",">
  180. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  181. <if test="buildUnit != null and buildUnit != ''">BUILD_UNIT = #{buildUnit},</if>
  182. <if test="aofCntlIsArv != null and aofCntlIsArv != ''">AOF_CNTL_IS_ARV = #{aofCntlIsArv},</if>
  183. <if test="aofPronIsArv != null and aofPronIsArv != ''">AOF_PRON_IS_ARV = #{aofPronIsArv},</if>
  184. <if test="aofCtcntIsArv != null and aofCtcntIsArv != ''">AOF_CTCNT_IS_ARV = #{aofCtcntIsArv},</if>
  185. <if test="cntrlPrjIsFit != null and cntrlPrjIsFit != ''">CNTRL_PRJ_IS_FIT = #{cntrlPrjIsFit},</if>
  186. <if test="cntrlLongIsFit != null and cntrlLongIsFit != ''">CNTRL_LONG_IS_FIT = #{cntrlLongIsFit},</if>
  187. <if test="msifsPiaIsFit != null and msifsPiaIsFit != ''">MSIFS_PIA_IS_FIT = #{msifsPiaIsFit},</if>
  188. <if test="msifsFurIsFit != null and msifsFurIsFit != ''">MSIFS_FUR_IS_FIT = #{msifsFurIsFit},</if>
  189. <if test="pcPlanIsPblm != null and pcPlanIsPblm != ''">PC_PLAN_IS_PBLM = #{pcPlanIsPblm},</if>
  190. <if test="pcQsIsPblm != null and pcQsIsPblm != ''">PC_QS_IS_PBLM = #{pcQsIsPblm},</if>
  191. <if test="iotfsPlprsIsWk != null and iotfsPlprsIsWk != ''">IOTFS_PLPRS_IS_WK = #{iotfsPlprsIsWk},</if>
  192. <if test="iotfsTspbfpIsWk != null and iotfsTspbfpIsWk != ''">IOTFS_TSPBFP_IS_WK = #{iotfsTspbfpIsWk},</if>
  193. <if test="iotfsCssIsWk != null and iotfsCssIsWk != ''">IOTFS_CSS_IS_WK = #{iotfsCssIsWk},</if>
  194. <if test="iotfsCmsIsWk != null and iotfsCmsIsWk != ''">IOTFS_CMS_IS_WK = #{iotfsCmsIsWk},</if>
  195. <if test="note != null and note != ''">NOTE = #{note},</if>
  196. <if test="fillUnit != null and fillUnit != ''">FILL_UNIT = #{fillUnit},</if>
  197. <if test="fillPers != null and fillPers != ''">FILL_PERS = #{fillPers},</if>
  198. <if test="fillChkPers != null and fillChkPers != ''">FILL_CHK_PERS = #{fillChkPers},</if>
  199. <if test="fillTel != null and fillTel != ''">FILL_TEL = #{fillTel},</if>
  200. <if test="fillTm != null">FILL_TM = #{fillTm},</if>
  201. <if test="status != null and status != ''">STATUS = #{status},</if>
  202. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</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>