BisInspWiuRgstrApprInfoDao.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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.BisInspWiuRgstrApprInfoDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo" id="bisInspWiuRgstrApprInfoResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isHasUaotpwpPblm" column="IS_HAS_UAOTPWP_PBLM"/>
  8. <result property="isHasEaotpwpPblm" column="IS_HAS_EAOTPWP_PBLM"/>
  9. <result property="isCtropwrdar" column="IS_CTROPWRDAR"/>
  10. <result property="isCoaowipofar" column="IS_COAOWIPOFAR"/>
  11. <result property="isTariNwdplpCwaai" column="IS_TARI_NWDPLP_CWAAI"/>
  12. <result property="isTiawdpWduatr" column="IS_TIAWDP_WDUATR"/>
  13. <result property="isSsbcWduwdpeAl" column="IS_SSBC_WDUWDPE_AL"/>
  14. <result property="isTwcslis" column="IS_TWCSLIS"/>
  15. <result property="isCwrfatr" column="IS_CWRFATR"/>
  16. <result property="isTmceAacwdpCwrlar" column="IS_TMCE_AACWDP_CWRLAR"/>
  17. <result property="recPersId" column="REC_PERS_ID"/>
  18. <result property="inTm" column="IN_TM"/>
  19. <result property="upTm" column="UP_TM"/>
  20. <result property="dataStat" column="DATA_STAT"/>
  21. </resultMap>
  22. <sql id="table_columns">
  23. ID,
  24. RGSTR_ID,
  25. IS_HAS_UAOTPWP_PBLM,
  26. IS_HAS_EAOTPWP_PBLM,
  27. IS_CTROPWRDAR,
  28. IS_COAOWIPOFAR,
  29. IS_TARI_NWDPLP_CWAAI,
  30. IS_TIAWDP_WDUATR,
  31. IS_SSBC_WDUWDPE_AL,
  32. IS_TWCSLIS,
  33. IS_CWRFATR,
  34. IS_TMCE_AACWDP_CWRLAR,
  35. REC_PERS_ID,
  36. IN_TM,
  37. UP_TM,
  38. DATA_STAT
  39. </sql>
  40. <sql id="entity_properties">
  41. #{id},
  42. #{rgstrId},
  43. #{isHasUaotpwpPblm},
  44. #{isHasEaotpwpPblm},
  45. #{isCtropwrdar},
  46. #{isCoaowipofar},
  47. #{isTariNwdplpCwaai},
  48. #{isTiawdpWduatr},
  49. #{isSsbcWduwdpeAl},
  50. #{isTwcslis},
  51. #{isCwrfatr},
  52. #{isTmceAacwdpCwrlar},
  53. #{recPersId},
  54. #{inTm},
  55. #{upTm},
  56. #{dataStat}
  57. </sql>
  58. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  59. <sql id="page_where">
  60. <trim prefix="where" prefixOverrides="and | or ">
  61. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  62. <if test="isHasUaotpwpPblm != null and isHasUaotpwpPblm != ''">and IS_HAS_UAOTPWP_PBLM = #{isHasUaotpwpPblm}</if>
  63. <if test="isHasEaotpwpPblm != null and isHasEaotpwpPblm != ''">and IS_HAS_EAOTPWP_PBLM = #{isHasEaotpwpPblm}</if>
  64. <if test="isCtropwrdar != null and isCtropwrdar != ''">and IS_CTROPWRDAR = #{isCtropwrdar}</if>
  65. <if test="isCoaowipofar != null and isCoaowipofar != ''">and IS_COAOWIPOFAR = #{isCoaowipofar}</if>
  66. <if test="isTariNwdplpCwaai != null and isTariNwdplpCwaai != ''">and IS_TARI_NWDPLP_CWAAI = #{isTariNwdplpCwaai}</if>
  67. <if test="isTiawdpWduatr != null and isTiawdpWduatr != ''">and IS_TIAWDP_WDUATR = #{isTiawdpWduatr}</if>
  68. <if test="isSsbcWduwdpeAl != null and isSsbcWduwdpeAl != ''">and IS_SSBC_WDUWDPE_AL = #{isSsbcWduwdpeAl}</if>
  69. <if test="isTwcslis != null and isTwcslis != ''">and IS_TWCSLIS = #{isTwcslis}</if>
  70. <if test="isCwrfatr != null and isCwrfatr != ''">and IS_CWRFATR = #{isCwrfatr}</if>
  71. <if test="isTmceAacwdpCwrlar != null and isTmceAacwdpCwrlar != ''">and IS_TMCE_AACWDP_CWRLAR = #{isTmceAacwdpCwrlar}</if>
  72. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  73. <if test="inTm != null">and IN_TM = #{inTm}</if>
  74. <if test="upTm != null">and UP_TM = #{upTm}</if>
  75. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  76. </trim>
  77. </sql>
  78. <select id="get" resultMap="bisInspWiuRgstrApprInfoResultMap" parameterType="String" >
  79. select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO where ID = #{id}
  80. </select>
  81. <select id="getBy" resultMap="bisInspWiuRgstrApprInfoResultMap">
  82. select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
  83. </select>
  84. <select id="findAll" resultMap="bisInspWiuRgstrApprInfoResultMap">
  85. select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO
  86. </select>
  87. <select id="findList" resultMap="bisInspWiuRgstrApprInfoResultMap">
  88. select <include refid="table_columns" /> from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
  89. </select>
  90. <select id="selectCount" resultType="int" >
  91. select count(ID) from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
  92. </select>
  93. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
  94. insert into BIS_INSP_WIU_RGSTR_APPR_INFO( <include refid="table_columns" /> )
  95. values ( <include refid="entity_properties" /> )
  96. </insert>
  97. <delete id="delete" parameterType="java.lang.String">
  98. delete from BIS_INSP_WIU_RGSTR_APPR_INFO where ID = #{id}
  99. </delete>
  100. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
  101. delete from BIS_INSP_WIU_RGSTR_APPR_INFO <include refid="page_where" />
  102. </delete>
  103. <update id="deleteInFlag" parameterType="java.lang.String">
  104. update BIS_INSP_WIU_RGSTR_APPR_INFO set flag_valid = 0 where ID = #{id}
  105. </update>
  106. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
  107. update BIS_INSP_WIU_RGSTR_APPR_INFO
  108. <trim prefix="set" suffixOverrides=",">
  109. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  110. <if test="isHasUaotpwpPblm != null and isHasUaotpwpPblm != ''">IS_HAS_UAOTPWP_PBLM = #{isHasUaotpwpPblm},</if>
  111. <if test="isHasEaotpwpPblm != null and isHasEaotpwpPblm != ''">IS_HAS_EAOTPWP_PBLM = #{isHasEaotpwpPblm},</if>
  112. <if test="isCtropwrdar != null and isCtropwrdar != ''">IS_CTROPWRDAR = #{isCtropwrdar},</if>
  113. <if test="isCoaowipofar != null and isCoaowipofar != ''">IS_COAOWIPOFAR = #{isCoaowipofar},</if>
  114. <if test="isTariNwdplpCwaai != null and isTariNwdplpCwaai != ''">IS_TARI_NWDPLP_CWAAI = #{isTariNwdplpCwaai},</if>
  115. <if test="isTiawdpWduatr != null and isTiawdpWduatr != ''">IS_TIAWDP_WDUATR = #{isTiawdpWduatr},</if>
  116. <if test="isSsbcWduwdpeAl != null and isSsbcWduwdpeAl != ''">IS_SSBC_WDUWDPE_AL = #{isSsbcWduwdpeAl},</if>
  117. <if test="isTwcslis != null and isTwcslis != ''">IS_TWCSLIS = #{isTwcslis},</if>
  118. <if test="isCwrfatr != null and isCwrfatr != ''">IS_CWRFATR = #{isCwrfatr},</if>
  119. <if test="isTmceAacwdpCwrlar != null and isTmceAacwdpCwrlar != ''">IS_TMCE_AACWDP_CWRLAR = #{isTmceAacwdpCwrlar},</if>
  120. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  121. <if test="inTm != null">IN_TM = #{inTm},</if>
  122. <if test="upTm != null">UP_TM = #{upTm},</if>
  123. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  124. </trim>
  125. <where>ID = #{id}</where>
  126. </update>
  127. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiuRgstrApprInfo">
  128. update BIS_INSP_WIU_RGSTR_APPR_INFO
  129. <trim prefix="set" suffixOverrides=",">
  130. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  131. <if test="isHasUaotpwpPblm != null and isHasUaotpwpPblm != ''">IS_HAS_UAOTPWP_PBLM = #{isHasUaotpwpPblm},</if>
  132. <if test="isHasEaotpwpPblm != null and isHasEaotpwpPblm != ''">IS_HAS_EAOTPWP_PBLM = #{isHasEaotpwpPblm},</if>
  133. <if test="isCtropwrdar != null and isCtropwrdar != ''">IS_CTROPWRDAR = #{isCtropwrdar},</if>
  134. <if test="isCoaowipofar != null and isCoaowipofar != ''">IS_COAOWIPOFAR = #{isCoaowipofar},</if>
  135. <if test="isTariNwdplpCwaai != null and isTariNwdplpCwaai != ''">IS_TARI_NWDPLP_CWAAI = #{isTariNwdplpCwaai},</if>
  136. <if test="isTiawdpWduatr != null and isTiawdpWduatr != ''">IS_TIAWDP_WDUATR = #{isTiawdpWduatr},</if>
  137. <if test="isSsbcWduwdpeAl != null and isSsbcWduwdpeAl != ''">IS_SSBC_WDUWDPE_AL = #{isSsbcWduwdpeAl},</if>
  138. <if test="isTwcslis != null and isTwcslis != ''">IS_TWCSLIS = #{isTwcslis},</if>
  139. <if test="isCwrfatr != null and isCwrfatr != ''">IS_CWRFATR = #{isCwrfatr},</if>
  140. <if test="isTmceAacwdpCwrlar != null and isTmceAacwdpCwrlar != ''">IS_TMCE_AACWDP_CWRLAR = #{isTmceAacwdpCwrlar},</if>
  141. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  142. <if test="inTm != null">IN_TM = #{inTm},</if>
  143. <if test="upTm != null">UP_TM = #{upTm},</if>
  144. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  145. </trim>
  146. <include refid="page_where" />
  147. </update>
  148. <!-- 其他自定义SQL -->
  149. </mapper>