BisInspWagaSafeManageDao.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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.BisInspWagaSafeManageDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage" id="bisInspWagaSafeManageResultMap">
  5. <result property="copIsAfaporar" column="COP_IS_AFAPORAR"/>
  6. <result property="isAttdiaacopotscdCo" column="IS_ATTDIAACOPOTSCD_CO"/>
  7. <result property="isBldGodsaei" column="IS_BLD_GODSAEI"/>
  8. <result property="isFillGowlar" column="IS_FILL_GOWLAR"/>
  9. <result property="isStfEp" column="IS_STF_EP"/>
  10. <result property="isApplyRor" column="IS_APPLY_ROR"/>
  11. <result property="isStfFcpSafcwhbpip" column="IS_STF_FCP_SAFCWHBPIP"/>
  12. <result property="isBldDsifsamdr" column="IS_BLD_DSIFSAMDR"/>
  13. <result property="isRorFcaes" column="IS_ROR_FCAES"/>
  14. <result property="isCofaatr" column="IS_COFAATR"/>
  15. <result property="saoiotopbtmhaIsMend" column="SAOIOTOPBTMHA_IS_MEND"/>
  16. <result property="isBldEmtpgaltu" column="IS_BLD_EMTPGALTU"/>
  17. <result property="isPutEdtrorsas" column="IS_PUT_EDTRORSAS"/>
  18. <result property="gahIsCosiatr" column="GAH_IS_COSIATR"/>
  19. <result property="isApplyCami" column="IS_APPLY_CAMI"/>
  20. <result property="isUpReg" column="IS_UP_REG"/>
  21. <result property="isStfTmir" column="IS_STF_TMIR"/>
  22. <result property="isEnctFallGoms" column="IS_ENCT_FALL_GOMS"/>
  23. <result property="kpmsOptcIsExp" column="KPMS_OPTC_IS_EXP"/>
  24. <result property="isStfCop" column="IS_STF_COP"/>
  25. <result property="id" column="ID"/>
  26. <result property="rgstrId" column="RGSTR_ID"/>
  27. <result property="ctapInfo" column="CTAP_INFO"/>
  28. <result property="epafcpIsH" column="EPAFCP_IS_H"/>
  29. <result property="safeIsH" column="SAFE_IS_H"/>
  30. <result property="lmSafetyIsCo" column="LM_SAFETY_IS_CO"/>
  31. <result property="sSafetyIsCo" column="S_SAFETY_IS_CO"/>
  32. <result property="tofCIs" column="TOF_C_IS"/>
  33. <result property="restmIsAd" column="RESTM_IS_AD"/>
  34. <result property="recPersId" column="REC_PERS_ID"/>
  35. <result property="intm" column="INTM"/>
  36. <result property="uptm" column="UPTM"/>
  37. <result property="dataStat" column="DATA_STAT"/>
  38. <result property="isThreeOrFour" column="IS_THREE_OR_FOUR"/>
  39. </resultMap>
  40. <sql id="table_columns">
  41. COP_IS_AFAPORAR,
  42. IS_ATTDIAACOPOTSCD_CO,
  43. IS_BLD_GODSAEI,
  44. IS_FILL_GOWLAR,
  45. IS_STF_EP,
  46. IS_APPLY_ROR,
  47. IS_STF_FCP_SAFCWHBPIP,
  48. IS_BLD_DSIFSAMDR,
  49. IS_ROR_FCAES,
  50. IS_COFAATR,
  51. SAOIOTOPBTMHA_IS_MEND,
  52. IS_BLD_EMTPGALTU,
  53. IS_PUT_EDTRORSAS,
  54. GAH_IS_COSIATR,
  55. IS_APPLY_CAMI,
  56. IS_UP_REG,
  57. IS_STF_TMIR,
  58. IS_ENCT_FALL_GOMS,
  59. KPMS_OPTC_IS_EXP,
  60. IS_STF_COP,
  61. ID,
  62. RGSTR_ID,
  63. CTAP_INFO,
  64. EPAFCP_IS_H,
  65. SAFE_IS_H,
  66. LM_SAFETY_IS_CO,
  67. S_SAFETY_IS_CO,
  68. TOF_C_IS,
  69. RESTM_IS_AD,
  70. REC_PERS_ID,
  71. INTM,
  72. UPTM,
  73. DATA_STAT,
  74. IS_THREE_OR_FOUR
  75. </sql>
  76. <sql id="entity_properties">
  77. #{copIsAfaporar},
  78. #{isAttdiaacopotscdCo},
  79. #{isBldGodsaei},
  80. #{isFillGowlar},
  81. #{isStfEp},
  82. #{isApplyRor},
  83. #{isStfFcpSafcwhbpip},
  84. #{isBldDsifsamdr},
  85. #{isRorFcaes},
  86. #{isCofaatr},
  87. #{saoiotopbtmhaIsMend},
  88. #{isBldEmtpgaltu},
  89. #{isPutEdtrorsas},
  90. #{gahIsCosiatr},
  91. #{isApplyCami},
  92. #{isUpReg},
  93. #{isStfTmir},
  94. #{isEnctFallGoms},
  95. #{kpmsOptcIsExp},
  96. #{isStfCop},
  97. #{id},
  98. #{rgstrId},
  99. #{ctapInfo},
  100. #{epafcpIsH},
  101. #{safeIsH},
  102. #{lmSafetyIsCo},
  103. #{sSafetyIsCo},
  104. #{tofCIs},
  105. #{restmIsAd},
  106. #{recPersId},
  107. #{intm},
  108. #{uptm},
  109. #{dataStat},
  110. #{isThreeOrFour}
  111. </sql>
  112. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  113. <sql id="page_where">
  114. <trim prefix="where" prefixOverrides="and | or ">
  115. <if test="copIsAfaporar != null and copIsAfaporar != ''">and COP_IS_AFAPORAR = #{copIsAfaporar}</if>
  116. <if test="isAttdiaacopotscdCo != null and isAttdiaacopotscdCo != ''">and IS_ATTDIAACOPOTSCD_CO = #{isAttdiaacopotscdCo}</if>
  117. <if test="isBldGodsaei != null and isBldGodsaei != ''">and IS_BLD_GODSAEI = #{isBldGodsaei}</if>
  118. <if test="isFillGowlar != null and isFillGowlar != ''">and IS_FILL_GOWLAR = #{isFillGowlar}</if>
  119. <if test="isStfEp != null and isStfEp != ''">and IS_STF_EP = #{isStfEp}</if>
  120. <if test="isApplyRor != null and isApplyRor != ''">and IS_APPLY_ROR = #{isApplyRor}</if>
  121. <if test="isStfFcpSafcwhbpip != null and isStfFcpSafcwhbpip != ''">and IS_STF_FCP_SAFCWHBPIP = #{isStfFcpSafcwhbpip}</if>
  122. <if test="isBldDsifsamdr != null and isBldDsifsamdr != ''">and IS_BLD_DSIFSAMDR = #{isBldDsifsamdr}</if>
  123. <if test="isRorFcaes != null and isRorFcaes != ''">and IS_ROR_FCAES = #{isRorFcaes}</if>
  124. <if test="isCofaatr != null and isCofaatr != ''">and IS_COFAATR = #{isCofaatr}</if>
  125. <if test="saoiotopbtmhaIsMend != null and saoiotopbtmhaIsMend != ''">and SAOIOTOPBTMHA_IS_MEND = #{saoiotopbtmhaIsMend}</if>
  126. <if test="isBldEmtpgaltu != null and isBldEmtpgaltu != ''">and IS_BLD_EMTPGALTU = #{isBldEmtpgaltu}</if>
  127. <if test="isPutEdtrorsas != null and isPutEdtrorsas != ''">and IS_PUT_EDTRORSAS = #{isPutEdtrorsas}</if>
  128. <if test="gahIsCosiatr != null and gahIsCosiatr != ''">and GAH_IS_COSIATR = #{gahIsCosiatr}</if>
  129. <if test="isApplyCami != null and isApplyCami != ''">and IS_APPLY_CAMI = #{isApplyCami}</if>
  130. <if test="isUpReg != null and isUpReg != ''">and IS_UP_REG = #{isUpReg}</if>
  131. <if test="isStfTmir != null and isStfTmir != ''">and IS_STF_TMIR = #{isStfTmir}</if>
  132. <if test="isEnctFallGoms != null and isEnctFallGoms != ''">and IS_ENCT_FALL_GOMS = #{isEnctFallGoms}</if>
  133. <if test="kpmsOptcIsExp != null and kpmsOptcIsExp != ''">and KPMS_OPTC_IS_EXP = #{kpmsOptcIsExp}</if>
  134. <if test="isStfCop != null and isStfCop != ''">and IS_STF_COP = #{isStfCop}</if>
  135. <if test="id != null and id != ''">and ID = #{id}</if>
  136. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  137. <if test="ctapInfo != null and ctapInfo != ''">and CTAP_INFO = #{ctapInfo}</if>
  138. <if test="epafcpIsH != null and epafcpIsH != ''">and EPAFCP_IS_H = #{epafcpIsH}</if>
  139. <if test="safeIsH != null and safeIsH != ''">and SAFE_IS_H = #{safeIsH}</if>
  140. <if test="lmSafetyIsCo != null and lmSafetyIsCo != ''">and LM_SAFETY_IS_CO = #{lmSafetyIsCo}</if>
  141. <if test="sSafetyIsCo != null and sSafetyIsCo != ''">and S_SAFETY_IS_CO = #{sSafetyIsCo}</if>
  142. <if test="tofCIs != null and tofCIs != ''">and TOF_C_IS = #{tofCIs}</if>
  143. <if test="restmIsAd != null and restmIsAd != ''">and RESTM_IS_AD = #{restmIsAd}</if>
  144. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  145. <if test="intm != null">and INTM = #{intm}</if>
  146. <if test="uptm != null">and UPTM = #{uptm}</if>
  147. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  148. <if test="isThreeOrFour != null and isThreeOrFour != ''">and IS_THREE_OR_FOUR = #{isThreeOrFour}</if>
  149. </trim>
  150. </sql>
  151. <select id="get" resultMap="bisInspWagaSafeManageResultMap" parameterType="String" >
  152. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE where ID = #{id}
  153. </select>
  154. <select id="getBy" resultMap="bisInspWagaSafeManageResultMap">
  155. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
  156. </select>
  157. <select id="findAll" resultMap="bisInspWagaSafeManageResultMap">
  158. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE
  159. </select>
  160. <select id="findList" resultMap="bisInspWagaSafeManageResultMap">
  161. select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
  162. </select>
  163. <select id="selectCount" resultType="int" >
  164. select count(ID) from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
  165. </select>
  166. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
  167. insert into BIS_INSP_WAGA_SAFE_MANAGE( <include refid="table_columns" /> )
  168. values ( <include refid="entity_properties" /> )
  169. </insert>
  170. <delete id="delete" parameterType="java.lang.String">
  171. delete from BIS_INSP_WAGA_SAFE_MANAGE where ID = #{id}
  172. </delete>
  173. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
  174. delete from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
  175. </delete>
  176. <update id="deleteInFlag" parameterType="java.lang.String">
  177. update BIS_INSP_WAGA_SAFE_MANAGE set flag_valid = 0 where ID = #{id}
  178. </update>
  179. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
  180. update BIS_INSP_WAGA_SAFE_MANAGE
  181. <trim prefix="set" suffixOverrides=",">
  182. <if test="copIsAfaporar != null and copIsAfaporar != ''">COP_IS_AFAPORAR = #{copIsAfaporar},</if>
  183. <if test="isAttdiaacopotscdCo != null and isAttdiaacopotscdCo != ''">IS_ATTDIAACOPOTSCD_CO = #{isAttdiaacopotscdCo},</if>
  184. <if test="isBldGodsaei != null and isBldGodsaei != ''">IS_BLD_GODSAEI = #{isBldGodsaei},</if>
  185. <if test="isFillGowlar != null and isFillGowlar != ''">IS_FILL_GOWLAR = #{isFillGowlar},</if>
  186. <if test="isStfEp != null and isStfEp != ''">IS_STF_EP = #{isStfEp},</if>
  187. <if test="isApplyRor != null and isApplyRor != ''">IS_APPLY_ROR = #{isApplyRor},</if>
  188. <if test="isStfFcpSafcwhbpip != null and isStfFcpSafcwhbpip != ''">IS_STF_FCP_SAFCWHBPIP = #{isStfFcpSafcwhbpip},</if>
  189. <if test="isBldDsifsamdr != null and isBldDsifsamdr != ''">IS_BLD_DSIFSAMDR = #{isBldDsifsamdr},</if>
  190. <if test="isRorFcaes != null and isRorFcaes != ''">IS_ROR_FCAES = #{isRorFcaes},</if>
  191. <if test="isCofaatr != null and isCofaatr != ''">IS_COFAATR = #{isCofaatr},</if>
  192. <if test="saoiotopbtmhaIsMend != null and saoiotopbtmhaIsMend != ''">SAOIOTOPBTMHA_IS_MEND = #{saoiotopbtmhaIsMend},</if>
  193. <if test="isBldEmtpgaltu != null and isBldEmtpgaltu != ''">IS_BLD_EMTPGALTU = #{isBldEmtpgaltu},</if>
  194. <if test="isPutEdtrorsas != null and isPutEdtrorsas != ''">IS_PUT_EDTRORSAS = #{isPutEdtrorsas},</if>
  195. <if test="gahIsCosiatr != null and gahIsCosiatr != ''">GAH_IS_COSIATR = #{gahIsCosiatr},</if>
  196. <if test="isApplyCami != null and isApplyCami != ''">IS_APPLY_CAMI = #{isApplyCami},</if>
  197. <if test="isUpReg != null and isUpReg != ''">IS_UP_REG = #{isUpReg},</if>
  198. <if test="isStfTmir != null and isStfTmir != ''">IS_STF_TMIR = #{isStfTmir},</if>
  199. <if test="isEnctFallGoms != null and isEnctFallGoms != ''">IS_ENCT_FALL_GOMS = #{isEnctFallGoms},</if>
  200. <if test="kpmsOptcIsExp != null and kpmsOptcIsExp != ''">KPMS_OPTC_IS_EXP = #{kpmsOptcIsExp},</if>
  201. <if test="isStfCop != null and isStfCop != ''">IS_STF_COP = #{isStfCop},</if>
  202. <if test="id != null and id != ''">ID = #{id},</if>
  203. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  204. <if test="ctapInfo != null and ctapInfo != ''">CTAP_INFO = #{ctapInfo},</if>
  205. <if test="epafcpIsH != null and epafcpIsH != ''">EPAFCP_IS_H = #{epafcpIsH},</if>
  206. <if test="safeIsH != null and safeIsH != ''">SAFE_IS_H = #{safeIsH},</if>
  207. <if test="lmSafetyIsCo != null and lmSafetyIsCo != ''">LM_SAFETY_IS_CO = #{lmSafetyIsCo},</if>
  208. <if test="sSafetyIsCo != null and sSafetyIsCo != ''">S_SAFETY_IS_CO = #{sSafetyIsCo},</if>
  209. <if test="tofCIs != null and tofCIs != ''">TOF_C_IS = #{tofCIs},</if>
  210. <if test="restmIsAd != null and restmIsAd != ''">RESTM_IS_AD = #{restmIsAd},</if>
  211. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  212. <if test="intm != null">INTM = #{intm},</if>
  213. <if test="uptm != null">UPTM = #{uptm},</if>
  214. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  215. <if test="isThreeOrFour != null and isThreeOrFour != ''">IS_THREE_OR_FOUR = #{isThreeOrFour},</if>
  216. </trim>
  217. <where>ID = #{id}</where>
  218. </update>
  219. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
  220. update BIS_INSP_WAGA_SAFE_MANAGE
  221. <trim prefix="set" suffixOverrides=",">
  222. <if test="copIsAfaporar != null and copIsAfaporar != ''">COP_IS_AFAPORAR = #{copIsAfaporar},</if>
  223. <if test="isAttdiaacopotscdCo != null and isAttdiaacopotscdCo != ''">IS_ATTDIAACOPOTSCD_CO = #{isAttdiaacopotscdCo},</if>
  224. <if test="isBldGodsaei != null and isBldGodsaei != ''">IS_BLD_GODSAEI = #{isBldGodsaei},</if>
  225. <if test="isFillGowlar != null and isFillGowlar != ''">IS_FILL_GOWLAR = #{isFillGowlar},</if>
  226. <if test="isStfEp != null and isStfEp != ''">IS_STF_EP = #{isStfEp},</if>
  227. <if test="isApplyRor != null and isApplyRor != ''">IS_APPLY_ROR = #{isApplyRor},</if>
  228. <if test="isStfFcpSafcwhbpip != null and isStfFcpSafcwhbpip != ''">IS_STF_FCP_SAFCWHBPIP = #{isStfFcpSafcwhbpip},</if>
  229. <if test="isBldDsifsamdr != null and isBldDsifsamdr != ''">IS_BLD_DSIFSAMDR = #{isBldDsifsamdr},</if>
  230. <if test="isRorFcaes != null and isRorFcaes != ''">IS_ROR_FCAES = #{isRorFcaes},</if>
  231. <if test="isCofaatr != null and isCofaatr != ''">IS_COFAATR = #{isCofaatr},</if>
  232. <if test="saoiotopbtmhaIsMend != null and saoiotopbtmhaIsMend != ''">SAOIOTOPBTMHA_IS_MEND = #{saoiotopbtmhaIsMend},</if>
  233. <if test="isBldEmtpgaltu != null and isBldEmtpgaltu != ''">IS_BLD_EMTPGALTU = #{isBldEmtpgaltu},</if>
  234. <if test="isPutEdtrorsas != null and isPutEdtrorsas != ''">IS_PUT_EDTRORSAS = #{isPutEdtrorsas},</if>
  235. <if test="gahIsCosiatr != null and gahIsCosiatr != ''">GAH_IS_COSIATR = #{gahIsCosiatr},</if>
  236. <if test="isApplyCami != null and isApplyCami != ''">IS_APPLY_CAMI = #{isApplyCami},</if>
  237. <if test="isUpReg != null and isUpReg != ''">IS_UP_REG = #{isUpReg},</if>
  238. <if test="isStfTmir != null and isStfTmir != ''">IS_STF_TMIR = #{isStfTmir},</if>
  239. <if test="isEnctFallGoms != null and isEnctFallGoms != ''">IS_ENCT_FALL_GOMS = #{isEnctFallGoms},</if>
  240. <if test="kpmsOptcIsExp != null and kpmsOptcIsExp != ''">KPMS_OPTC_IS_EXP = #{kpmsOptcIsExp},</if>
  241. <if test="isStfCop != null and isStfCop != ''">IS_STF_COP = #{isStfCop},</if>
  242. <if test="id != null and id != ''">ID = #{id},</if>
  243. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  244. <if test="ctapInfo != null and ctapInfo != ''">CTAP_INFO = #{ctapInfo},</if>
  245. <if test="epafcpIsH != null and epafcpIsH != ''">EPAFCP_IS_H = #{epafcpIsH},</if>
  246. <if test="safeIsH != null and safeIsH != ''">SAFE_IS_H = #{safeIsH},</if>
  247. <if test="lmSafetyIsCo != null and lmSafetyIsCo != ''">LM_SAFETY_IS_CO = #{lmSafetyIsCo},</if>
  248. <if test="sSafetyIsCo != null and sSafetyIsCo != ''">S_SAFETY_IS_CO = #{sSafetyIsCo},</if>
  249. <if test="tofCIs != null and tofCIs != ''">TOF_C_IS = #{tofCIs},</if>
  250. <if test="restmIsAd != null and restmIsAd != ''">RESTM_IS_AD = #{restmIsAd},</if>
  251. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  252. <if test="intm != null">INTM = #{intm},</if>
  253. <if test="uptm != null">UPTM = #{uptm},</if>
  254. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  255. <if test="isThreeOrFour != null and isThreeOrFour != ''">IS_THREE_OR_FOUR = #{isThreeOrFour},</if>
  256. </trim>
  257. <include refid="page_where" />
  258. </update>
  259. <!-- 其他自定义SQL -->
  260. </mapper>