BisInspWintRgstrChkInDao.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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.BisInspWintRgstrChkInDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn" id="bisInspWintRgstrChkInResultMap">
  5. <result property="ptwrgtWdpaIsTrue" column="PTWRGT_WDPA_IS_TRUE" />
  6. <result property="awiRgtIsTrue" column="AWI_RGT_IS_TRUE" />
  7. <result property="wintNoChkInfo" column="WINT_NO_CHK_INFO" />
  8. <result property="wintNoChkInfoOth" column="WINT_NO_CHK_INFO_OTH" />
  9. <result property="isHasWip" column="IS_HAS_WIP" />
  10. <result property="awiiryIsAwtpaow" column="AWIIRY_IS_AWTPAOW" />
  11. <result property="wintIsIomamf" column="WINT_IS_IOMAMF" />
  12. <result property="mamfIsRun" column="MAMF_IS_RUN" />
  13. <result property="isHasOthPblm" column="IS_HAS_OTH_PBLM" />
  14. <result property="status" column="STATUS"/>
  15. <result property="recPersId" column="REC_PERS_ID" />
  16. <result property="intm" column="INTM" />
  17. <result property="uptm" column="UPTM" />
  18. <result property="id" column="ID" />
  19. <result property="rgstrId" column="RGSTR_ID" />
  20. <result property="wintIsChkIn" column="WINT_IS_CHK_IN" />
  21. <result property="ltcoswstwiIsTrue" column="LTCOSWSTWI_IS_TRUE" />
  22. <result property="wtimamfIsTrue" column="WTIMAMF_IS_TRUE" />
  23. <result property="mtnoomfIsTrue" column="MTNOOMF_IS_TRUE" />
  24. <result property="awdphboIsTrue" column="AWDPHBO_IS_TRUE" />
  25. <result property="ltcoswstwiType" column="LTCOSWSTWI_TYPE" />
  26. <result property="isRun" column="IS_RUN" />
  27. </resultMap>
  28. <sql id="table_columns">
  29. WIP_NO_TYPE,
  30. LTCOSWSTWI_TYPE,
  31. PTWRGT_WDPA_IS_TRUE,
  32. AWI_RGT_IS_TRUE,
  33. WINT_NO_CHK_INFO,
  34. WINT_NO_CHK_INFO_OTH,
  35. IS_HAS_WIP,
  36. AWIIRY_IS_AWTPAOW,
  37. WINT_IS_IOMAMF,
  38. MAMF_IS_RUN,
  39. IS_HAS_OTH_PBLM,
  40. STATUS,
  41. REC_PERS_ID,
  42. INTM,
  43. UPTM,
  44. ID,
  45. RGSTR_ID,
  46. WINT_IS_CHK_IN,
  47. LTCOSWSTWI_IS_TRUE,
  48. WTIMAMF_IS_TRUE,
  49. MTNOOMF_IS_TRUE,
  50. AWDPHBO_IS_TRUE,
  51. IS_RUN
  52. </sql>
  53. <sql id="entity_properties">
  54. #{wipNoType},
  55. #{ltcoswstwiType},
  56. #{ptwrgtWdpaIsTrue},
  57. #{awiRgtIsTrue},
  58. #{wintNoChkInfo},
  59. #{wintNoChkInfoOth},
  60. #{isHasWip},
  61. #{awiiryIsAwtpaow},
  62. #{wintIsIomamf},
  63. #{mamfIsRun},
  64. #{isHasOthPblm},
  65. #{status},
  66. #{recPersId},
  67. #{intm},
  68. #{uptm},
  69. #{id},
  70. #{rgstrId},
  71. #{wintIsChkIn},
  72. #{ltcoswstwiIsTrue},
  73. #{wtimamfIsTrue},
  74. #{mtnoomfIsTrue},
  75. #{awdphboIsTrue},
  76. #{isRun}
  77. </sql>
  78. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  79. <sql id="page_where">
  80. <trim prefix="where" prefixOverrides="and | or ">
  81. <if test="ltcoswstwiType != null and ltcoswstwiType != ''">and LTCOSWSTWI_TYPE = #{ltcoswstwiType}</if>
  82. <if test="awiRgtIsTrue != null and awiRgtIsTrue != ''">and AWI_RGT_IS_TRUE = #{awiRgtIsTrue}</if>
  83. <if test="wintNoChkInfo != null and wintNoChkInfo != ''">and WINT_NO_CHK_INFO = #{wintNoChkInfo}</if>
  84. <if test="wintNoChkInfoOth != null and wintNoChkInfoOth != ''">and WINT_NO_CHK_INFO_OTH = #{wintNoChkInfoOth}</if>
  85. <if test="isHasWip != null and isHasWip != ''">and IS_HAS_WIP = #{isHasWip}</if>
  86. <if test="awiiryIsAwtpaow != null and awiiryIsAwtpaow != ''">and AWIIRY_IS_AWTPAOW = #{awiiryIsAwtpaow}</if>
  87. <if test="wintIsIomamf != null and wintIsIomamf != ''">and WINT_IS_IOMAMF = #{wintIsIomamf}</if>
  88. <if test="mamfIsRun != null and mamfIsRun != ''">and MAMF_IS_RUN = #{mamfIsRun}</if>
  89. <if test="isHasOthPblm != null and isHasOthPblm != ''">and IS_HAS_OTH_PBLM = #{isHasOthPblm}</if>
  90. <if test="status != null and status != ''">and STATUS = #{status}</if>
  91. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  92. <if test="intm != null">and INTM = #{intm}</if>
  93. <if test="uptm != null">and UPTM = #{uptm}</if>
  94. <if test="id != null and id != ''">and ID = #{id}</if>
  95. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  96. <if test="wintIsChkIn != null and wintIsChkIn != ''">and WINT_IS_CHK_IN = #{wintIsChkIn}</if>
  97. <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">and LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue}</if>
  98. <if test="wtimamfIsTrue != null and wtimamfIsTrue != ''">and WTIMAMF_IS_TRUE = #{wtimamfIsTrue}</if>
  99. <if test="mtnoomfIsTrue != null and mtnoomfIsTrue != ''">and MTNOOMF_IS_TRUE = #{mtnoomfIsTrue}</if>
  100. <if test="awdphboIsTrue != null and awdphboIsTrue != ''">and AWDPHBO_IS_TRUE = #{awdphboIsTrue}</if>
  101. </trim>
  102. </sql>
  103. <select id="get" resultMap="bisInspWintRgstrChkInResultMap" parameterType="String" >
  104. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN where ID = #{id}
  105. </select>
  106. <select id="getBy" resultMap="bisInspWintRgstrChkInResultMap">
  107. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
  108. </select>
  109. <select id="findAll" resultMap="bisInspWintRgstrChkInResultMap">
  110. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN
  111. </select>
  112. <select id="findList" resultMap="bisInspWintRgstrChkInResultMap">
  113. select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
  114. </select>
  115. <select id="selectCount" resultType="int" >
  116. select count(ID) from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
  117. </select>
  118. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
  119. insert into BIS_INSP_WINT_RGSTR_CHK_IN( <include refid="table_columns" /> )
  120. values ( <include refid="entity_properties" /> )
  121. </insert>
  122. <delete id="delete" parameterType="java.lang.String">
  123. delete from BIS_INSP_WINT_RGSTR_CHK_IN where ID = #{id}
  124. </delete>
  125. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
  126. delete from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
  127. </delete>
  128. <update id="deleteInFlag" parameterType="java.lang.String">
  129. update BIS_INSP_WINT_RGSTR_CHK_IN set flag_valid = 0 where>ID = #{id}
  130. </update>
  131. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
  132. update BIS_INSP_WINT_RGSTR_CHK_IN
  133. <trim prefix="set" suffixOverrides=",">
  134. <if test="wipNoType != null and wipNoType != ''">WIP_NO_TYPE = #{wipNoType},</if>
  135. <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
  136. <if test="awiRgtIsTrue != null and awiRgtIsTrue != ''">AWI_RGT_IS_TRUE = #{awiRgtIsTrue},</if>
  137. <if test="wintNoChkInfo != null and wintNoChkInfo != ''">WINT_NO_CHK_INFO = #{wintNoChkInfo},</if>
  138. <if test="wintNoChkInfoOth != null and wintNoChkInfoOth != ''">WINT_NO_CHK_INFO_OTH = #{wintNoChkInfoOth},</if>
  139. <if test="isHasWip != null and isHasWip != ''">IS_HAS_WIP = #{isHasWip},</if>
  140. <if test="awiiryIsAwtpaow != null and awiiryIsAwtpaow != ''">AWIIRY_IS_AWTPAOW = #{awiiryIsAwtpaow},</if>
  141. <if test="wintIsIomamf != null and wintIsIomamf != ''">WINT_IS_IOMAMF = #{wintIsIomamf},</if>
  142. <if test="mamfIsRun != null and mamfIsRun != ''">MAMF_IS_RUN = #{mamfIsRun},</if>
  143. <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
  144. <if test="status != null and status != ''">STATUS = #{status},</if>
  145. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  146. <if test="intm != null">INTM = #{intm},</if>
  147. <if test="uptm != null">UPTM = #{uptm},</if>
  148. <if test="id != null and id != ''">ID = #{id},</if>
  149. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  150. <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
  151. <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
  152. <if test="wtimamfIsTrue != null and wtimamfIsTrue != ''">WTIMAMF_IS_TRUE = #{wtimamfIsTrue},</if>
  153. <if test="mtnoomfIsTrue != null and mtnoomfIsTrue != ''">MTNOOMF_IS_TRUE = #{mtnoomfIsTrue},</if>
  154. <if test="awdphboIsTrue != null and awdphboIsTrue != ''">AWDPHBO_IS_TRUE = #{awdphboIsTrue},</if>
  155. <if test="isRun != null and isRun != ''">IS_RUN = #{isRun},</if>
  156. </trim>
  157. <where>ID = #{id}</where>
  158. </update>
  159. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
  160. update BIS_INSP_WINT_RGSTR_CHK_IN
  161. <trim prefix="set" suffixOverrides=",">
  162. <if test="wipNoType != null and wipNoType != ''">WIP_NO_TYPE = #{wipNoType},</if>
  163. <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
  164. <if test="awiRgtIsTrue != null and awiRgtIsTrue != ''">AWI_RGT_IS_TRUE = #{awiRgtIsTrue},</if>
  165. <if test="wintNoChkInfo != null and wintNoChkInfo != ''">WINT_NO_CHK_INFO = #{wintNoChkInfo},</if>
  166. <if test="wintNoChkInfoOth != null and wintNoChkInfoOth != ''">WINT_NO_CHK_INFO_OTH = #{wintNoChkInfoOth},</if>
  167. <if test="isHasWip != null and isHasWip != ''">IS_HAS_WIP = #{isHasWip},</if>
  168. <if test="awiiryIsAwtpaow != null and awiiryIsAwtpaow != ''">AWIIRY_IS_AWTPAOW = #{awiiryIsAwtpaow},</if>
  169. <if test="wintIsIomamf != null and wintIsIomamf != ''">WINT_IS_IOMAMF = #{wintIsIomamf},</if>
  170. <if test="mamfIsRun != null and mamfIsRun != ''">MAMF_IS_RUN = #{mamfIsRun},</if>
  171. <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
  172. <if test="status != null and status != ''">STATUS = #{status},</if>
  173. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  174. <if test="intm != null">INTM = #{intm},</if>
  175. <if test="uptm != null">UPTM = #{uptm},</if>
  176. <if test="id != null and id != ''">ID = #{id},</if>
  177. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  178. <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
  179. <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
  180. <if test="wtimamfIsTrue != null and wtimamfIsTrue != ''">WTIMAMF_IS_TRUE = #{wtimamfIsTrue},</if>
  181. <if test="mtnoomfIsTrue != null and mtnoomfIsTrue != ''">MTNOOMF_IS_TRUE = #{mtnoomfIsTrue},</if>
  182. <if test="awdphboIsTrue != null and awdphboIsTrue != ''">AWDPHBO_IS_TRUE = #{awdphboIsTrue},</if>
  183. </trim>
  184. <include refid="page_where" />
  185. </update>
  186. <!-- 其他自定义SQL -->
  187. </mapper>