e2dfcb0a6687d88e159f52c040c13deb90b7c25e.svn-base 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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.BisInspWagaSapRgstrDamIfDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaSapRgstrDamIf" id="bisInspWagaSapRgstrDamIfResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isCoarScw" column="IS_COAR_SCW"/>
  8. <result property="isHirIrs" column="IS_HIR_IRS"/>
  9. <result property="isIafditTemtdwi" column="IS_IAFDIT_TEMTDWI"/>
  10. <result property="isPrdRm" column="IS_PRD_RM"/>
  11. <result property="isMipThopeiee" column="IS_MIP_THOPEIEE"/>
  12. <result property="socIsDe" column="SOC_IS_DE"/>
  13. <result property="socIsIc" column="SOC_IS_IC"/>
  14. <result property="socIsAtetsotp" column="SOC_IS_ATETSOTP"/>
  15. <result property="sopIsDe" column="SOP_IS_DE"/>
  16. <result property="sopIsIc" column="SOP_IS_IC"/>
  17. <result property="sopIsAtetsotp" column="SOP_IS_ATETSOTP"/>
  18. <result property="recPersId" column="REC_PERS_ID"/>
  19. <result property="intm" column="INTM"/>
  20. <result property="uptm" column="UPTM"/>
  21. <result property="status" column="STATUS"/>
  22. <result property="msIsFaiMsftoolp" column="MS_IS_FAI_MSFTOOLP"/>
  23. </resultMap>
  24. <sql id="table_columns">
  25. ID,
  26. RGSTR_ID,
  27. IS_COAR_SCW,
  28. IS_HIR_IRS,
  29. IS_IAFDIT_TEMTDWI,
  30. IS_PRD_RM,
  31. IS_MIP_THOPEIEE,
  32. SOC_IS_DE,
  33. SOC_IS_IC,
  34. SOC_IS_ATETSOTP,
  35. SOP_IS_DE,
  36. SOP_IS_IC,
  37. SOP_IS_ATETSOTP,
  38. REC_PERS_ID,
  39. INTM,
  40. UPTM,
  41. STATUS,
  42. MS_IS_FAI_MSFTOOLP
  43. </sql>
  44. <sql id="entity_properties">
  45. #{id},
  46. #{rgstrId},
  47. #{isCoarScw},
  48. #{isHirIrs},
  49. #{isIafditTemtdwi},
  50. #{isPrdRm},
  51. #{isMipThopeiee},
  52. #{socIsDe},
  53. #{socIsIc},
  54. #{socIsAtetsotp},
  55. #{sopIsDe},
  56. #{sopIsIc},
  57. #{sopIsAtetsotp},
  58. #{recPersId},
  59. #{intm},
  60. #{uptm},
  61. #{status},
  62. #{msIsFaiMsftoolp}
  63. </sql>
  64. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  65. <sql id="page_where">
  66. <trim prefix="where" prefixOverrides="and | or ">
  67. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  68. <if test="isCoarScw != null and isCoarScw != ''">and IS_COAR_SCW = #{isCoarScw}</if>
  69. <if test="isHirIrs != null and isHirIrs != ''">and IS_HIR_IRS = #{isHirIrs}</if>
  70. <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">and IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi}</if>
  71. <if test="isPrdRm != null and isPrdRm != ''">and IS_PRD_RM = #{isPrdRm}</if>
  72. <if test="isMipThopeiee != null and isMipThopeiee != ''">and IS_MIP_THOPEIEE = #{isMipThopeiee}</if>
  73. <if test="socIsDe != null and socIsDe != ''">and SOC_IS_DE = #{socIsDe}</if>
  74. <if test="socIsIc != null and socIsIc != ''">and SOC_IS_IC = #{socIsIc}</if>
  75. <if test="socIsAtetsotp != null and socIsAtetsotp != ''">and SOC_IS_ATETSOTP = #{socIsAtetsotp}</if>
  76. <if test="sopIsDe != null and sopIsDe != ''">and SOP_IS_DE = #{sopIsDe}</if>
  77. <if test="sopIsIc != null and sopIsIc != ''">and SOP_IS_IC = #{sopIsIc}</if>
  78. <if test="sopIsAtetsotp != null and sopIsAtetsotp != ''">and SOP_IS_ATETSOTP = #{sopIsAtetsotp}</if>
  79. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  80. <if test="intm != null">and INTM = #{intm}</if>
  81. <if test="uptm != null">and UPTM = #{uptm}</if>
  82. <if test="status != null and status != ''">and STATUS = #{status}</if>
  83. <if test="msIsFaiMsftoolp != null and msIsFaiMsftoolp != ''">and MS_IS_FAI_MSFTOOLP = #{msIsFaiMsftoolp}</if>
  84. </trim>
  85. </sql>
  86. <select id="get" resultMap="bisInspWagaSapRgstrDamIfResultMap" parameterType="String" >
  87. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAP_RGSTR_DAM_IF where ID = #{id}
  88. </select>
  89. <select id="getBy" resultMap="bisInspWagaSapRgstrDamIfResultMap">
  90. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAP_RGSTR_DAM_IF <include refid="page_where" />
  91. </select>
  92. <select id="findAll" resultMap="bisInspWagaSapRgstrDamIfResultMap">
  93. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAP_RGSTR_DAM_IF
  94. </select>
  95. <select id="findList" resultMap="bisInspWagaSapRgstrDamIfResultMap">
  96. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAP_RGSTR_DAM_IF <include refid="page_where" />
  97. </select>
  98. <select id="selectCount" resultType="int" >
  99. select count(ID) from BIS_INSP_WAGA_SAP_RGSTR_DAM_IF <include refid="page_where" />
  100. </select>
  101. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSapRgstrDamIf">
  102. insert into BIS_INSP_WAGA_SAP_RGSTR_DAM_IF( <include refid="table_columns" /> )
  103. values ( <include refid="entity_properties" /> )
  104. </insert>
  105. <delete id="delete" parameterType="java.lang.String">
  106. update BIS_INSP_WAGA_SAP_RGSTR_DAM_IF set DATA_STAT='9' where ID = #{id}
  107. </delete>
  108. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSapRgstrDamIf">
  109. update BIS_INSP_WAGA_SAP_RGSTR_DAM_IF set DATA_STAT='9' <include refid="page_where" />
  110. </delete>
  111. <update id="deleteInFlag" parameterType="java.lang.String">
  112. update BIS_INSP_WAGA_SAP_RGSTR_DAM_IF set DATA_STAT = '9' where ID = #{id}
  113. </update>
  114. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSapRgstrDamIf">
  115. update BIS_INSP_WAGA_SAP_RGSTR_DAM_IF
  116. <trim prefix="set" suffixOverrides=",">
  117. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  118. <if test="isCoarScw != null and isCoarScw != ''">IS_COAR_SCW = #{isCoarScw},</if>
  119. <if test="isHirIrs != null and isHirIrs != ''">IS_HIR_IRS = #{isHirIrs},</if>
  120. <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi},</if>
  121. <if test="isPrdRm != null and isPrdRm != ''">IS_PRD_RM = #{isPrdRm},</if>
  122. <if test="isMipThopeiee != null and isMipThopeiee != ''">IS_MIP_THOPEIEE = #{isMipThopeiee},</if>
  123. <if test="socIsDe != null and socIsDe != ''">SOC_IS_DE = #{socIsDe},</if>
  124. <if test="socIsIc != null and socIsIc != ''">SOC_IS_IC = #{socIsIc},</if>
  125. <if test="socIsAtetsotp != null and socIsAtetsotp != ''">SOC_IS_ATETSOTP = #{socIsAtetsotp},</if>
  126. <if test="sopIsDe != null and sopIsDe != ''">SOP_IS_DE = #{sopIsDe},</if>
  127. <if test="sopIsIc != null and sopIsIc != ''">SOP_IS_IC = #{sopIsIc},</if>
  128. <if test="sopIsAtetsotp != null and sopIsAtetsotp != ''">SOP_IS_ATETSOTP = #{sopIsAtetsotp},</if>
  129. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  130. <if test="intm != null">INTM = #{intm},</if>
  131. <if test="uptm != null">UPTM = #{uptm},</if>
  132. <if test="status != null and status != ''">STATUS = #{status},</if>
  133. <if test="msIsFaiMsftoolp != null and msIsFaiMsftoolp != ''">MS_IS_FAI_MSFTOOLP = #{msIsFaiMsftoolp},</if>
  134. </trim>
  135. <where>ID = #{id}</where>
  136. </update>
  137. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSapRgstrDamIf">
  138. update BIS_INSP_WAGA_SAP_RGSTR_DAM_IF
  139. <trim prefix="set" suffixOverrides=",">
  140. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  141. <if test="isCoarScw != null and isCoarScw != ''">IS_COAR_SCW = #{isCoarScw},</if>
  142. <if test="isHirIrs != null and isHirIrs != ''">IS_HIR_IRS = #{isHirIrs},</if>
  143. <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi},</if>
  144. <if test="isPrdRm != null and isPrdRm != ''">IS_PRD_RM = #{isPrdRm},</if>
  145. <if test="isMipThopeiee != null and isMipThopeiee != ''">IS_MIP_THOPEIEE = #{isMipThopeiee},</if>
  146. <if test="socIsDe != null and socIsDe != ''">SOC_IS_DE = #{socIsDe},</if>
  147. <if test="socIsIc != null and socIsIc != ''">SOC_IS_IC = #{socIsIc},</if>
  148. <if test="socIsAtetsotp != null and socIsAtetsotp != ''">SOC_IS_ATETSOTP = #{socIsAtetsotp},</if>
  149. <if test="sopIsDe != null and sopIsDe != ''">SOP_IS_DE = #{sopIsDe},</if>
  150. <if test="sopIsIc != null and sopIsIc != ''">SOP_IS_IC = #{sopIsIc},</if>
  151. <if test="sopIsAtetsotp != null and sopIsAtetsotp != ''">SOP_IS_ATETSOTP = #{sopIsAtetsotp},</if>
  152. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  153. <if test="intm != null">INTM = #{intm},</if>
  154. <if test="uptm != null">UPTM = #{uptm},</if>
  155. <if test="status != null and status != ''">STATUS = #{status},</if>
  156. <if test="msIsFaiMsftoolp != null and msIsFaiMsftoolp != ''">MS_IS_FAI_MSFTOOLP = #{msIsFaiMsftoolp},</if>
  157. </trim>
  158. <include refid="page_where" />
  159. </update>
  160. <!-- 其他自定义SQL -->
  161. <delete id="deleteByRgstrId">
  162. delete from BIS_INSP_WAGA_SAP_RGSTR_DAM_IF where RGSTR_ID = #{rgstrId}
  163. </delete>
  164. <select id="getWagaSapRgstrDamIfInfoByRgstrId" resultMap="bisInspWagaSapRgstrDamIfResultMap">
  165. select
  166. <include refid="table_columns"/>
  167. from BIS_INSP_WAGA_SAP_RGSTR_DAM_IF where RGSTR_ID = #{rgstrId}
  168. </select>
  169. </mapper>