BisInspWagaDmamInfoDao.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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.BisInspWagaDmamInfoDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo" id="bisInspWagaDmamInfoResultMap">
  5. <result property="isCoarScw" column="IS_COAR_SCW"/>
  6. <result property="isHirIrs" column="IS_HIR_IRS"/>
  7. <result property="isIafditTemtdwi" column="IS_IAFDIT_TEMTDWI"/>
  8. <result property="isPrdRm" column="IS_PRD_RM"/>
  9. <result property="isMipThopeiee" column="IS_MIP_THOPEIEE"/>
  10. <result property="isHasSmameaf" column="IS_HAS_SMAMEAF"/>
  11. <result property="isTcosmacmd" column="IS_TCOSMACMD"/>
  12. <result property="isSaamdt" column="IS_SAAMDT"/>
  13. <result property="mosmeafIsArv" column="MOSMEAF_IS_ARV"/>
  14. <result property="isDlmtSomasop" column="IS_DLMT_SOMASOP"/>
  15. <result property="somasopIsIc" column="SOMASOP_IS_IC"/>
  16. <result property="somasopIsAtetsotp" column="SOMASOP_IS_ATETSOTP"/>
  17. <result property="id" column="ID"/>
  18. <result property="rgstrId" column="RGSTR_ID"/>
  19. <result property="ctapIsCo" column="CTAP_IS_CO"/>
  20. <result property="epafcpIsEn" column="EPAFCP_IS_EN"/>
  21. <result property="safeIsCo" column="SAFE_IS_CO"/>
  22. <result property="plofmwIsH" column="PLOFMW_IS_H"/>
  23. <result property="fcemIsRes" column="FCEM_IS_RES"/>
  24. <result property="somasopIsDe" column="SOMASOP_IS_DE"/>
  25. <result property="recPersId" column="REC_PERS_ID"/>
  26. <result property="intm" column="INTM"/>
  27. <result property="uptm" column="UPTM"/>
  28. <result property="dataStat" column="DATA_STAT"/>
  29. <result property="somIsDe" column="SOM_IS_DE"/>
  30. </resultMap>
  31. <sql id="table_columns">
  32. IS_COAR_SCW,
  33. IS_HIR_IRS,
  34. IS_IAFDIT_TEMTDWI,
  35. IS_PRD_RM,
  36. IS_MIP_THOPEIEE,
  37. IS_HAS_SMAMEAF,
  38. IS_TCOSMACMD,
  39. IS_SAAMDT,
  40. MOSMEAF_IS_ARV,
  41. IS_DLMT_SOMASOP,
  42. SOMASOP_IS_IC,
  43. SOMASOP_IS_ATETSOTP,
  44. ID,
  45. RGSTR_ID,
  46. CTAP_IS_CO,
  47. EPAFCP_IS_EN,
  48. SAFE_IS_CO,
  49. PLOFMW_IS_H,
  50. FCEM_IS_RES,
  51. SOMASOP_IS_DE,
  52. REC_PERS_ID,
  53. INTM,
  54. UPTM,
  55. DATA_STAT,
  56. SOM_IS_DE
  57. </sql>
  58. <sql id="entity_properties">
  59. #{isCoarScw},
  60. #{isHirIrs},
  61. #{isIafditTemtdwi},
  62. #{isPrdRm},
  63. #{isMipThopeiee},
  64. #{isHasSmameaf},
  65. #{isTcosmacmd},
  66. #{isSaamdt},
  67. #{mosmeafIsArv},
  68. #{isDlmtSomasop},
  69. #{somasopIsIc},
  70. #{somasopIsAtetsotp},
  71. #{id},
  72. #{rgstrId},
  73. #{ctapIsCo},
  74. #{epafcpIsEn},
  75. #{safeIsCo},
  76. #{plofmwIsH},
  77. #{fcemIsRes},
  78. #{somasopIsDe},
  79. #{recPersId},
  80. #{intm},
  81. #{uptm},
  82. #{dataStat},
  83. #{somIsDe}
  84. </sql>
  85. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  86. <sql id="page_where">
  87. <trim prefix="where" prefixOverrides="and | or ">
  88. <if test="isCoarScw != null and isCoarScw != ''">and IS_COAR_SCW = #{isCoarScw}</if>
  89. <if test="isHirIrs != null and isHirIrs != ''">and IS_HIR_IRS = #{isHirIrs}</if>
  90. <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">and IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi}</if>
  91. <if test="isPrdRm != null and isPrdRm != ''">and IS_PRD_RM = #{isPrdRm}</if>
  92. <if test="isMipThopeiee != null and isMipThopeiee != ''">and IS_MIP_THOPEIEE = #{isMipThopeiee}</if>
  93. <if test="isHasSmameaf != null and isHasSmameaf != ''">and IS_HAS_SMAMEAF = #{isHasSmameaf}</if>
  94. <if test="isTcosmacmd != null and isTcosmacmd != ''">and IS_TCOSMACMD = #{isTcosmacmd}</if>
  95. <if test="isSaamdt != null and isSaamdt != ''">and IS_SAAMDT = #{isSaamdt}</if>
  96. <if test="mosmeafIsArv != null and mosmeafIsArv != ''">and MOSMEAF_IS_ARV = #{mosmeafIsArv}</if>
  97. <if test="isDlmtSomasop != null and isDlmtSomasop != ''">and IS_DLMT_SOMASOP = #{isDlmtSomasop}</if>
  98. <if test="somasopIsIc != null and somasopIsIc != ''">and SOMASOP_IS_IC = #{somasopIsIc}</if>
  99. <if test="somasopIsAtetsotp != null and somasopIsAtetsotp != ''">and SOMASOP_IS_ATETSOTP = #{somasopIsAtetsotp}</if>
  100. <if test="id != null and id != ''">and ID = #{id}</if>
  101. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  102. <if test="ctapIsCo != null and ctapIsCo != ''">and CTAP_IS_CO = #{ctapIsCo}</if>
  103. <if test="epafcpIsEn != null and epafcpIsEn != ''">and EPAFCP_IS_EN = #{epafcpIsEn}</if>
  104. <if test="safeIsCo != null and safeIsCo != ''">and SAFE_IS_CO = #{safeIsCo}</if>
  105. <if test="plofmwIsH != null and plofmwIsH != ''">and PLOFMW_IS_H = #{plofmwIsH}</if>
  106. <if test="fcemIsRes != null and fcemIsRes != ''">and FCEM_IS_RES = #{fcemIsRes}</if>
  107. <if test="somasopIsDe != null and somasopIsDe != ''">and SOMASOP_IS_DE = #{somasopIsDe}</if>
  108. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  109. <if test="intm != null">and INTM = #{intm}</if>
  110. <if test="uptm != null">and UPTM = #{uptm}</if>
  111. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  112. <if test="somIsDe != null and somIsDe != ''">and SOM_IS_DE = #{somIsDe}</if>
  113. </trim>
  114. </sql>
  115. <select id="get" resultMap="bisInspWagaDmamInfoResultMap" parameterType="String" >
  116. select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO where ID = #{id}
  117. </select>
  118. <select id="getBy" resultMap="bisInspWagaDmamInfoResultMap">
  119. select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
  120. </select>
  121. <select id="findAll" resultMap="bisInspWagaDmamInfoResultMap">
  122. select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO
  123. </select>
  124. <select id="findList" resultMap="bisInspWagaDmamInfoResultMap">
  125. select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
  126. </select>
  127. <select id="selectCount" resultType="int" >
  128. select count(ID) from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
  129. </select>
  130. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
  131. insert into BIS_INSP_WAGA_DMAM_INFO( <include refid="table_columns" /> )
  132. values ( <include refid="entity_properties" /> )
  133. </insert>
  134. <delete id="delete" parameterType="java.lang.String">
  135. delete from BIS_INSP_WAGA_DMAM_INFO where ID = #{id}
  136. </delete>
  137. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
  138. delete from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
  139. </delete>
  140. <update id="deleteInFlag" parameterType="java.lang.String">
  141. update BIS_INSP_WAGA_DMAM_INFO set flag_valid = 0 where ID = #{id}
  142. </update>
  143. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
  144. update BIS_INSP_WAGA_DMAM_INFO
  145. <trim prefix="set" suffixOverrides=",">
  146. <if test="isCoarScw != null and isHirIrs != ''">IS_COAR_SCW = #{isCoarScw},</if>
  147. <if test="isHirIrs != null and isHirIrs != ''">IS_HIR_IRS = #{isHirIrs},</if>
  148. <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi},</if>
  149. <if test="isPrdRm != null and isPrdRm != ''">IS_PRD_RM = #{isPrdRm},</if>
  150. <if test="isMipThopeiee != null and isMipThopeiee != ''">IS_MIP_THOPEIEE = #{isMipThopeiee},</if>
  151. <if test="isHasSmameaf != null and isHasSmameaf != ''">IS_HAS_SMAMEAF = #{isHasSmameaf},</if>
  152. <if test="isTcosmacmd != null and isTcosmacmd != ''">IS_TCOSMACMD = #{isTcosmacmd},</if>
  153. <if test="isSaamdt != null and isSaamdt != ''">IS_SAAMDT = #{isSaamdt},</if>
  154. <if test="mosmeafIsArv != null and mosmeafIsArv != ''">MOSMEAF_IS_ARV = #{mosmeafIsArv},</if>
  155. <if test="isDlmtSomasop != null and isDlmtSomasop != ''">IS_DLMT_SOMASOP = #{isDlmtSomasop},</if>
  156. <if test="somasopIsIc != null and somasopIsIc != ''">SOMASOP_IS_IC = #{somasopIsIc},</if>
  157. <if test="somasopIsAtetsotp != null and somasopIsAtetsotp != ''">SOMASOP_IS_ATETSOTP = #{somasopIsAtetsotp},</if>
  158. <if test="id != null and id != ''">ID = #{id},</if>
  159. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  160. <if test="ctapIsCo != null and ctapIsCo != ''">CTAP_IS_CO = #{ctapIsCo},</if>
  161. <if test="epafcpIsEn != null and epafcpIsEn != ''">EPAFCP_IS_EN = #{epafcpIsEn},</if>
  162. <if test="safeIsCo != null and safeIsCo != ''">SAFE_IS_CO = #{safeIsCo},</if>
  163. <if test="plofmwIsH != null and plofmwIsH != ''">PLOFMW_IS_H = #{plofmwIsH},</if>
  164. <if test="fcemIsRes != null and fcemIsRes != ''">FCEM_IS_RES = #{fcemIsRes},</if>
  165. <if test="somasopIsDe != null and somasopIsDe != ''">SOMASOP_IS_DE = #{somasopIsDe},</if>
  166. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  167. <if test="intm != null">INTM = #{intm},</if>
  168. <if test="uptm != null">UPTM = #{uptm},</if>
  169. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  170. <if test="somIsDe != null and somIsDe != ''">SOM_IS_DE = #{somIsDe},</if>
  171. </trim>
  172. <where>ID = #{id}</where>
  173. </update>
  174. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
  175. update BIS_INSP_WAGA_DMAM_INFO
  176. <trim prefix="set" suffixOverrides=",">
  177. <if test="isCoarScw != null and isHirIrs != ''">IS_COAR_SCW = #{isCoarScw},</if>
  178. <if test="isHirIrs != null and isHirIrs != ''">IS_HIR_IRS = #{isHirIrs},</if>
  179. <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi},</if>
  180. <if test="isPrdRm != null and isPrdRm != ''">IS_PRD_RM = #{isPrdRm},</if>
  181. <if test="isMipThopeiee != null and isMipThopeiee != ''">IS_MIP_THOPEIEE = #{isMipThopeiee},</if>
  182. <if test="isHasSmameaf != null and isHasSmameaf != ''">IS_HAS_SMAMEAF = #{isHasSmameaf},</if>
  183. <if test="isTcosmacmd != null and isTcosmacmd != ''">IS_TCOSMACMD = #{isTcosmacmd},</if>
  184. <if test="isSaamdt != null and isSaamdt != ''">IS_SAAMDT = #{isSaamdt},</if>
  185. <if test="mosmeafIsArv != null and mosmeafIsArv != ''">MOSMEAF_IS_ARV = #{mosmeafIsArv},</if>
  186. <if test="isDlmtSomasop != null and isDlmtSomasop != ''">IS_DLMT_SOMASOP = #{isDlmtSomasop},</if>
  187. <if test="somasopIsIc != null and somasopIsIc != ''">SOMASOP_IS_IC = #{somasopIsIc},</if>
  188. <if test="somasopIsAtetsotp != null and somasopIsAtetsotp != ''">SOMASOP_IS_ATETSOTP = #{somasopIsAtetsotp},</if>
  189. <if test="id != null and id != ''">ID = #{id},</if>
  190. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  191. <if test="ctapIsCo != null and ctapIsCo != ''">CTAP_IS_CO = #{ctapIsCo},</if>
  192. <if test="epafcpIsEn != null and epafcpIsEn != ''">EPAFCP_IS_EN = #{epafcpIsEn},</if>
  193. <if test="safeIsCo != null and safeIsCo != ''">SAFE_IS_CO = #{safeIsCo},</if>
  194. <if test="plofmwIsH != null and plofmwIsH != ''">PLOFMW_IS_H = #{plofmwIsH},</if>
  195. <if test="fcemIsRes != null and fcemIsRes != ''">FCEM_IS_RES = #{fcemIsRes},</if>
  196. <if test="somasopIsDe != null and somasopIsDe != ''">SOMASOP_IS_DE = #{somasopIsDe},</if>
  197. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  198. <if test="intm != null">INTM = #{intm},</if>
  199. <if test="uptm != null">UPTM = #{uptm},</if>
  200. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  201. <if test="somIsDe != null and somIsDe != ''">SOM_IS_DE = #{somIsDe},</if>
  202. </trim>
  203. <include refid="page_where"/>
  204. </update>
  205. <!-- 其他自定义SQL -->
  206. </mapper>