TacPawpBioesPeDao.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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.TacPawpBioesPeDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBioesPe" id="tacPawpBioesPeResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="sgIsFnd" column="SG_IS_FND"/>
  8. <result property="paIsPm" column="PA_IS_PM"/>
  9. <result property="eomsIsPm" column="EOMS_IS_PM"/>
  10. <result property="srsIsBld" column="SRS_IS_BLD"/>
  11. <result property="srsIsWkbl" column="SRS_IS_WKBL"/>
  12. <result property="esppIsCmpl" column="ESPP_IS_CMPL"/>
  13. <result property="esppIsRpt" column="ESPP_IS_RPT"/>
  14. <result property="woerpfpsaIsCmpl" column="WOERPFPSA_IS_CMPL"/>
  15. <result property="woerpfpsaIsRpt" column="WOERPFPSA_IS_RPT"/>
  16. <result property="spcppwgrIsChk" column="SPCPPWGR_IS_CHK"/>
  17. <result property="spcppwgrIsRpt" column="SPCPPWGR_IS_RPT"/>
  18. <result property="dwobwcIsRpt" column="DWOBWC_IS_RPT"/>
  19. <result property="cpIsBld" column="CP_IS_BLD"/>
  20. <result property="mmIsSt" column="MM_IS_ST"/>
  21. <result property="mmIsRpt" column="MM_IS_RPT"/>
  22. <result property="note" column="NOTE"/>
  23. <result property="persId" column="PERS_ID"/>
  24. <result property="intm" column="INTM"/>
  25. <result property="uptm" column="UPTM"/>
  26. <result property="dataStat" column="DATA_STAT"/>
  27. </resultMap>
  28. <sql id="table_columns">
  29. ID,
  30. RGSTR_ID,
  31. SG_IS_FND,
  32. PA_IS_PM,
  33. EOMS_IS_PM,
  34. SRS_IS_BLD,
  35. SRS_IS_WKBL,
  36. ESPP_IS_CMPL,
  37. ESPP_IS_RPT,
  38. WOERPFPSA_IS_CMPL,
  39. WOERPFPSA_IS_RPT,
  40. SPCPPWGR_IS_CHK,
  41. SPCPPWGR_IS_RPT,
  42. DWOBWC_IS_RPT,
  43. CP_IS_BLD,
  44. MM_IS_ST,
  45. MM_IS_RPT,
  46. NOTE,
  47. PERS_ID,
  48. INTM,
  49. UPTM,
  50. DATA_STAT
  51. </sql>
  52. <sql id="entity_properties">
  53. #{id},
  54. #{rgstrId},
  55. #{sgIsFnd},
  56. #{paIsPm},
  57. #{eomsIsPm},
  58. #{srsIsBld},
  59. #{srsIsWkbl},
  60. #{esppIsCmpl},
  61. #{esppIsRpt},
  62. #{woerpfpsaIsCmpl},
  63. #{woerpfpsaIsRpt},
  64. #{spcppwgrIsChk},
  65. #{spcppwgrIsRpt},
  66. #{dwobwcIsRpt},
  67. #{cpIsBld},
  68. #{mmIsSt},
  69. #{mmIsRpt},
  70. #{note},
  71. #{persId},
  72. #{intm},
  73. #{uptm},
  74. #{dataStat}
  75. </sql>
  76. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  77. <sql id="page_where">
  78. <trim prefix="where" prefixOverrides="and | or ">
  79. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  80. <if test="sgIsFnd != null and sgIsFnd != ''">and SG_IS_FND = #{sgIsFnd}</if>
  81. <if test="paIsPm != null and paIsPm != ''">and PA_IS_PM = #{paIsPm}</if>
  82. <if test="eomsIsPm != null and eomsIsPm != ''">and EOMS_IS_PM = #{eomsIsPm}</if>
  83. <if test="srsIsBld != null and srsIsBld != ''">and SRS_IS_BLD = #{srsIsBld}</if>
  84. <if test="srsIsWkbl != null and srsIsWkbl != ''">and SRS_IS_WKBL = #{srsIsWkbl}</if>
  85. <if test="esppIsCmpl != null and esppIsCmpl != ''">and ESPP_IS_CMPL = #{esppIsCmpl}</if>
  86. <if test="esppIsRpt != null and esppIsRpt != ''">and ESPP_IS_RPT = #{esppIsRpt}</if>
  87. <if test="woerpfpsaIsCmpl != null and woerpfpsaIsCmpl != ''">and WOERPFPSA_IS_CMPL = #{woerpfpsaIsCmpl}</if>
  88. <if test="woerpfpsaIsRpt != null and woerpfpsaIsRpt != ''">and WOERPFPSA_IS_RPT = #{woerpfpsaIsRpt}</if>
  89. <if test="spcppwgrIsChk != null and spcppwgrIsChk != ''">and SPCPPWGR_IS_CHK = #{spcppwgrIsChk}</if>
  90. <if test="spcppwgrIsRpt != null and spcppwgrIsRpt != ''">and SPCPPWGR_IS_RPT = #{spcppwgrIsRpt}</if>
  91. <if test="dwobwcIsRpt != null and dwobwcIsRpt != ''">and DWOBWC_IS_RPT = #{dwobwcIsRpt}</if>
  92. <if test="cpIsBld != null and cpIsBld != ''">and CP_IS_BLD = #{cpIsBld}</if>
  93. <if test="mmIsSt != null and mmIsSt != ''">and MM_IS_ST = #{mmIsSt}</if>
  94. <if test="mmIsRpt != null and mmIsRpt != ''">and MM_IS_RPT = #{mmIsRpt}</if>
  95. <if test="note != null and note != ''">and NOTE = #{note}</if>
  96. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  97. <if test="intm != null">and INTM = #{intm}</if>
  98. <if test="uptm != null">and UPTM = #{uptm}</if>
  99. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  100. </trim>
  101. </sql>
  102. <select id="get" resultMap="tacPawpBioesPeResultMap" parameterType="String">
  103. select
  104. <include refid="table_columns"/>
  105. from TAC_PAWP_BIOES_PE where ID = #{id}
  106. </select>
  107. <select id="getBy" resultMap="tacPawpBioesPeResultMap">
  108. select
  109. <include refid="table_columns"/>
  110. from TAC_PAWP_BIOES_PE
  111. <include refid="page_where"/>
  112. </select>
  113. <select id="findAll" resultMap="tacPawpBioesPeResultMap">
  114. select
  115. <include refid="table_columns"/>
  116. from TAC_PAWP_BIOES_PE
  117. </select>
  118. <select id="findList" resultMap="tacPawpBioesPeResultMap">
  119. select
  120. <include refid="table_columns"/>
  121. from TAC_PAWP_BIOES_PE
  122. <include refid="page_where"/>
  123. </select>
  124. <select id="selectCount" resultType="int">
  125. select count(ID) from TAC_PAWP_BIOES_PE
  126. <include refid="page_where"/>
  127. </select>
  128. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesPe">
  129. insert into TAC_PAWP_BIOES_PE(
  130. <include refid="table_columns"/>
  131. )
  132. values (
  133. <include refid="entity_properties"/>
  134. )
  135. </insert>
  136. <delete id="delete" parameterType="java.lang.String">
  137. delete from TAC_PAWP_BIOES_PE where ID = #{id}
  138. </delete>
  139. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesPe">
  140. delete from TAC_PAWP_BIOES_PE
  141. <include refid="page_where"/>
  142. </delete>
  143. <update id="deleteInFlag" parameterType="java.lang.String">
  144. update TAC_PAWP_BIOES_PE set flag_valid = 0 where ID = #{id}
  145. </update>
  146. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesPe">
  147. update TAC_PAWP_BIOES_PE
  148. <trim prefix="set" suffixOverrides=",">
  149. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  150. <if test="sgIsFnd != null and sgIsFnd != ''">SG_IS_FND = #{sgIsFnd},</if>
  151. <if test="paIsPm != null and paIsPm != ''">PA_IS_PM = #{paIsPm},</if>
  152. <if test="eomsIsPm != null and eomsIsPm != ''">EOMS_IS_PM = #{eomsIsPm},</if>
  153. <if test="srsIsBld != null and srsIsBld != ''">SRS_IS_BLD = #{srsIsBld},</if>
  154. <if test="srsIsWkbl != null and srsIsWkbl != ''">SRS_IS_WKBL = #{srsIsWkbl},</if>
  155. <if test="esppIsCmpl != null and esppIsCmpl != ''">ESPP_IS_CMPL = #{esppIsCmpl},</if>
  156. <if test="esppIsRpt != null and esppIsRpt != ''">ESPP_IS_RPT = #{esppIsRpt},</if>
  157. <if test="woerpfpsaIsCmpl != null and woerpfpsaIsCmpl != ''">WOERPFPSA_IS_CMPL = #{woerpfpsaIsCmpl},</if>
  158. <if test="woerpfpsaIsRpt != null and woerpfpsaIsRpt != ''">WOERPFPSA_IS_RPT = #{woerpfpsaIsRpt},</if>
  159. <if test="spcppwgrIsChk != null and spcppwgrIsChk != ''">SPCPPWGR_IS_CHK = #{spcppwgrIsChk},</if>
  160. <if test="spcppwgrIsRpt != null and spcppwgrIsRpt != ''">SPCPPWGR_IS_RPT = #{spcppwgrIsRpt},</if>
  161. <if test="dwobwcIsRpt != null and dwobwcIsRpt != ''">DWOBWC_IS_RPT = #{dwobwcIsRpt},</if>
  162. <if test="cpIsBld != null and cpIsBld != ''">CP_IS_BLD = #{cpIsBld},</if>
  163. <if test="mmIsSt != null and mmIsSt != ''">MM_IS_ST = #{mmIsSt},</if>
  164. <if test="mmIsRpt != null and mmIsRpt != ''">MM_IS_RPT = #{mmIsRpt},</if>
  165. <if test="note != null">NOTE = #{note},</if>
  166. <if test="persId != null and persId != ''">PERS_ID = #{persId},</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. </trim>
  171. <where>ID = #{id}</where>
  172. </update>
  173. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBioesPe">
  174. update TAC_PAWP_BIOES_PE
  175. <trim prefix="set" suffixOverrides=",">
  176. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  177. <if test="sgIsFnd != null and sgIsFnd != ''">SG_IS_FND = #{sgIsFnd},</if>
  178. <if test="paIsPm != null and paIsPm != ''">PA_IS_PM = #{paIsPm},</if>
  179. <if test="eomsIsPm != null and eomsIsPm != ''">EOMS_IS_PM = #{eomsIsPm},</if>
  180. <if test="srsIsBld != null and srsIsBld != ''">SRS_IS_BLD = #{srsIsBld},</if>
  181. <if test="srsIsWkbl != null and srsIsWkbl != ''">SRS_IS_WKBL = #{srsIsWkbl},</if>
  182. <if test="esppIsCmpl != null and esppIsCmpl != ''">ESPP_IS_CMPL = #{esppIsCmpl},</if>
  183. <if test="esppIsRpt != null and esppIsRpt != ''">ESPP_IS_RPT = #{esppIsRpt},</if>
  184. <if test="woerpfpsaIsCmpl != null and woerpfpsaIsCmpl != ''">WOERPFPSA_IS_CMPL = #{woerpfpsaIsCmpl},</if>
  185. <if test="woerpfpsaIsRpt != null and woerpfpsaIsRpt != ''">WOERPFPSA_IS_RPT = #{woerpfpsaIsRpt},</if>
  186. <if test="spcppwgrIsChk != null and spcppwgrIsChk != ''">SPCPPWGR_IS_CHK = #{spcppwgrIsChk},</if>
  187. <if test="spcppwgrIsRpt != null and spcppwgrIsRpt != ''">SPCPPWGR_IS_RPT = #{spcppwgrIsRpt},</if>
  188. <if test="dwobwcIsRpt != null and dwobwcIsRpt != ''">DWOBWC_IS_RPT = #{dwobwcIsRpt},</if>
  189. <if test="cpIsBld != null and cpIsBld != ''">CP_IS_BLD = #{cpIsBld},</if>
  190. <if test="mmIsSt != null and mmIsSt != ''">MM_IS_ST = #{mmIsSt},</if>
  191. <if test="mmIsRpt != null and mmIsRpt != ''">MM_IS_RPT = #{mmIsRpt},</if>
  192. <if test="note != null">NOTE = #{note},</if>
  193. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  194. <if test="intm != null">INTM = #{intm},</if>
  195. <if test="uptm != null">UPTM = #{uptm},</if>
  196. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  197. </trim>
  198. <include refid="page_where"/>
  199. </update>
  200. <!-- 其他自定义SQL -->
  201. </mapper>