BisInspJspwiuWtruDao.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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.BisInspJspwiuWtruDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru" id="bisInspJspwiuWtruResultMap">
  5. <result property="isWtsvPub" column="IS_WTSV_PUB"/>
  6. <result property="isWtsvDeep" column="IS_WTSV_DEEP"/>
  7. <result property="isBldCmpchk" column="IS_BLD_CMPCHK"/>
  8. <result property="isEqtWtsv" column="IS_EQT_WTSV"/>
  9. <result property="isEqtLeak" column="IS_EQT_LEAK"/>
  10. <result property="isKeyTest" column="IS_KEY_TEST"/>
  11. <result property="isKeyIntest" column="IS_KEY_INTEST"/>
  12. <result property="isKeyUchk" column="IS_KEY_UCHK"/>
  13. <result property="isKeyIuchk" column="IS_KEY_IUCHK"/>
  14. <result property="isKeyCsvchk" column="IS_KEY_CSVCHK"/>
  15. <result property="wtsvGetDate" column="WTSV_GET_DATE"/>
  16. <result property="wtsvGetFile" column="WTSV_GET_FILE"/>
  17. <result property="isUsrNwter" column="IS_USR_NWTER"/>
  18. <result property="usrSti" column="USR_STI"/>
  19. <result property="note" column="NOTE"/>
  20. <result property="persId" column="PERS_ID"/>
  21. <result property="intm" column="INTM"/>
  22. <result property="uptm" column="UPTM"/>
  23. <result property="dataStat" column="DATA_STAT"/>
  24. <result property="id" column="ID"/>
  25. <result property="rgstrId" column="RGSTR_ID"/>
  26. <result property="wtruType" column="WTRU_TYPE"/>
  27. <result property="wtruTypeNote" column="WTRU_TYPE_NOTE"/>
  28. <result property="acur" column="ACUR"/>
  29. <result property="isInplPub" column="IS_INPL_PUB"/>
  30. <result property="isInplByo" column="IS_INPL_BYO"/>
  31. <result property="isInplNnml" column="IS_INPL_NNML"/>
  32. <result property="isMnt" column="IS_MNT"/>
  33. <result property="isSndPlan" column="IS_SND_PLAN"/>
  34. <result property="isRslMon" column="IS_RSL_MON"/>
  35. <result property="isAppAdj" column="IS_APP_ADJ"/>
  36. <result property="isUsrOver" column="IS_USR_OVER"/>
  37. <result property="isPayCost" column="IS_PAY_COST"/>
  38. <result property="isPayOcost" column="IS_PAY_OCOST"/>
  39. <result property="itpScale" column="ITP_SCALE"/>
  40. <result property="usrStnd" column="USR_STND"/>
  41. <result property="isOverUsr" column="IS_OVER_USR"/>
  42. <result property="isBldMsr" column="IS_BLD_MSR"/>
  43. <result property="isMsrMeet" column="IS_MSR_MEET"/>
  44. <result property="isMsrRun" column="IS_MSR_RUN"/>
  45. <result property="isMsrChk" column="IS_MSR_CHK"/>
  46. <result property="isMsrBook" column="IS_MSR_BOOK"/>
  47. <result property="state" column="STATE"/>
  48. </resultMap>
  49. <sql id="table_columns">
  50. IS_WTSV_PUB,
  51. IS_WTSV_DEEP,
  52. IS_BLD_CMPCHK,
  53. IS_EQT_WTSV,
  54. IS_EQT_LEAK,
  55. IS_KEY_TEST,
  56. IS_KEY_INTEST,
  57. IS_KEY_UCHK,
  58. IS_KEY_IUCHK,
  59. IS_KEY_CSVCHK,
  60. WTSV_GET_DATE,
  61. WTSV_GET_FILE,
  62. IS_USR_NWTER,
  63. USR_STI,
  64. NOTE,
  65. PERS_ID,
  66. INTM,
  67. UPTM,
  68. DATA_STAT,
  69. ID,
  70. RGSTR_ID,
  71. WTRU_TYPE,
  72. WTRU_TYPE_NOTE,
  73. ACUR,
  74. IS_INPL_PUB,
  75. IS_INPL_BYO,
  76. IS_INPL_NNML,
  77. IS_MNT,
  78. IS_SND_PLAN,
  79. IS_RSL_MON,
  80. IS_APP_ADJ,
  81. IS_USR_OVER,
  82. IS_PAY_COST,
  83. IS_PAY_OCOST,
  84. ITP_SCALE,
  85. USR_STND,
  86. IS_OVER_USR,
  87. IS_BLD_MSR,
  88. IS_MSR_MEET,
  89. IS_MSR_RUN,
  90. IS_MSR_CHK,
  91. IS_MSR_BOOK,
  92. STATE
  93. </sql>
  94. <sql id="entity_properties">
  95. #{isWtsvPub},
  96. #{isWtsvDeep},
  97. #{isBldCmpchk},
  98. #{isEqtWtsv},
  99. #{isEqtLeak},
  100. #{isKeyTest},
  101. #{isKeyIntest},
  102. #{isKeyUchk},
  103. #{isKeyIuchk},
  104. #{isKeyCsvchk},
  105. #{wtsvGetDate},
  106. #{wtsvGetFile},
  107. #{isUsrNwter},
  108. #{usrSti},
  109. #{note},
  110. #{persId},
  111. #{intm},
  112. #{uptm},
  113. #{dataStat},
  114. #{id},
  115. #{rgstrId},
  116. #{wtruType},
  117. #{wtruTypeNote},
  118. #{acur},
  119. #{isInplPub},
  120. #{isInplByo},
  121. #{isInplNnml},
  122. #{isMnt},
  123. #{isSndPlan},
  124. #{isRslMon},
  125. #{isAppAdj},
  126. #{isUsrOver},
  127. #{isPayCost},
  128. #{isPayOcost},
  129. #{itpScale},
  130. #{usrStnd},
  131. #{isOverUsr},
  132. #{isBldMsr},
  133. #{isMsrMeet},
  134. #{isMsrRun},
  135. #{isMsrChk},
  136. #{isMsrBook},
  137. #{state}
  138. </sql>
  139. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  140. <sql id="page_where">
  141. <trim prefix="where" prefixOverrides="and | or ">
  142. <if test="isWtsvPub != null and isWtsvPub != ''">and IS_WTSV_PUB = #{isWtsvPub}</if>
  143. <if test="isWtsvDeep != null and isWtsvDeep != ''">and IS_WTSV_DEEP = #{isWtsvDeep}</if>
  144. <if test="isBldCmpchk != null and isBldCmpchk != ''">and IS_BLD_CMPCHK = #{isBldCmpchk}</if>
  145. <if test="isEqtWtsv != null and isEqtWtsv != ''">and IS_EQT_WTSV = #{isEqtWtsv}</if>
  146. <if test="isEqtLeak != null and isEqtLeak != ''">and IS_EQT_LEAK = #{isEqtLeak}</if>
  147. <if test="isKeyTest != null and isKeyTest != ''">and IS_KEY_TEST = #{isKeyTest}</if>
  148. <if test="isKeyIntest != null and isKeyIntest != ''">and IS_KEY_INTEST = #{isKeyIntest}</if>
  149. <if test="isKeyUchk != null and isKeyUchk != ''">and IS_KEY_UCHK = #{isKeyUchk}</if>
  150. <if test="isKeyIuchk != null and isKeyIuchk != ''">and IS_KEY_IUCHK = #{isKeyIuchk}</if>
  151. <if test="isKeyCsvchk != null and isKeyCsvchk != ''">and IS_KEY_CSVCHK = #{isKeyCsvchk}</if>
  152. <if test="wtsvGetDate != null">and WTSV_GET_DATE = #{wtsvGetDate}</if>
  153. <if test="wtsvGetFile != null and wtsvGetFile != ''">and WTSV_GET_FILE = #{wtsvGetFile}</if>
  154. <if test="isUsrNwter != null and isUsrNwter != ''">and IS_USR_NWTER = #{isUsrNwter}</if>
  155. <if test="usrSti != null and usrSti != ''">and USR_STI = #{usrSti}</if>
  156. <if test="note != null and note != ''">and NOTE = #{note}</if>
  157. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  158. <if test="intm != null">and INTM = #{intm}</if>
  159. <if test="uptm != null">and UPTM = #{uptm}</if>
  160. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  161. <if test="id != null and id != ''">and ID = #{id}</if>
  162. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  163. <if test="wtruType != null and wtruType != ''">and WTRU_TYPE = #{wtruType}</if>
  164. <if test="wtruTypeNote != null and wtruTypeNote != ''">and WTRU_TYPE_NOTE = #{wtruTypeNote}</if>
  165. <if test="acur != null and acur != ''">and ACUR = #{acur}</if>
  166. <if test="isInplPub != null and isInplPub != ''">and IS_INPL_PUB = #{isInplPub}</if>
  167. <if test="isInplByo != null and isInplByo != ''">and IS_INPL_BYO = #{isInplByo}</if>
  168. <if test="isInplNnml != null and isInplNnml != ''">and IS_INPL_NNML = #{isInplNnml}</if>
  169. <if test="isMnt != null and isMnt != ''">and IS_MNT = #{isMnt}</if>
  170. <if test="isSndPlan != null and isSndPlan != ''">and IS_SND_PLAN = #{isSndPlan}</if>
  171. <if test="isRslMon != null and isRslMon != ''">and IS_RSL_MON = #{isRslMon}</if>
  172. <if test="isAppAdj != null and isAppAdj != ''">and IS_APP_ADJ = #{isAppAdj}</if>
  173. <if test="isUsrOver != null and isUsrOver != ''">and IS_USR_OVER = #{isUsrOver}</if>
  174. <if test="isPayCost != null and isPayCost != ''">and IS_PAY_COST = #{isPayCost}</if>
  175. <if test="isPayOcost != null and isPayOcost != ''">and IS_PAY_OCOST = #{isPayOcost}</if>
  176. <if test="itpScale != null and itpScale != ''">and ITP_SCALE = #{itpScale}</if>
  177. <if test="usrStnd != null and usrStnd != ''">and USR_STND = #{usrStnd}</if>
  178. <if test="isOverUsr != null and isOverUsr != ''">and IS_OVER_USR = #{isOverUsr}</if>
  179. <if test="isBldMsr != null and isBldMsr != ''">and IS_BLD_MSR = #{isBldMsr}</if>
  180. <if test="isMsrMeet != null and isMsrMeet != ''">and IS_MSR_MEET = #{isMsrMeet}</if>
  181. <if test="isMsrRun != null and isMsrRun != ''">and IS_MSR_RUN = #{isMsrRun}</if>
  182. <if test="isMsrChk != null and isMsrChk != ''">and IS_MSR_CHK = #{isMsrChk}</if>
  183. <if test="isMsrBook != null and isMsrBook != ''">and IS_MSR_BOOK = #{isMsrBook}</if>
  184. <if test="state != null and state != ''">and STATE = #{state}</if>
  185. </trim>
  186. </sql>
  187. <select id="get" resultMap="bisInspJspwiuWtruResultMap" parameterType="String" >
  188. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU where RGSTR_ID = #{id}
  189. </select>
  190. <select id="getBy" resultMap="bisInspJspwiuWtruResultMap">
  191. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU <include refid="page_where" />
  192. </select>
  193. <select id="findAll" resultMap="bisInspJspwiuWtruResultMap">
  194. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU
  195. </select>
  196. <select id="findList" resultMap="bisInspJspwiuWtruResultMap">
  197. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU <include refid="page_where" />
  198. </select>
  199. <select id="selectCount" resultType="int" >
  200. select count(ID) from BIS_INSP_JSPWIU_WTRU <include refid="page_where" />
  201. </select>
  202. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
  203. insert into BIS_INSP_JSPWIU_WTRU( <include refid="table_columns" /> )
  204. values ( <include refid="entity_properties" /> )
  205. </insert>
  206. <delete id="delete" parameterType="java.lang.String">
  207. update BIS_INSP_JSPWIU_WTRU set DATA_STAT='9' where ID = #{id}
  208. </delete>
  209. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
  210. delete from BIS_INSP_JSPWIU_WTRU
  211. <include refid="page_where" />
  212. </delete>
  213. <update id="deleteInFlag" parameterType="java.lang.String">
  214. update BIS_INSP_JSPWIU_WTRU set flag_valid = 0 where ID = #{id}
  215. </update>
  216. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
  217. update BIS_INSP_JSPWIU_WTRU
  218. <trim prefix="set" suffixOverrides=",">
  219. <if test="isWtsvPub != null and isWtsvPub != ''"> IS_WTSV_PUB = #{isWtsvPub},</if>
  220. <if test="isWtsvDeep != null and isWtsvDeep != ''">IS_WTSV_DEEP = #{isWtsvDeep},</if>
  221. <if test="isBldCmpchk != null and isBldCmpchk != ''">IS_BLD_CMPCHK = #{isBldCmpchk},</if>
  222. <if test="isEqtWtsv != null and isEqtWtsv != ''">IS_EQT_WTSV = #{isEqtWtsv},</if>
  223. <if test="isEqtLeak != null and isEqtLeak != ''">IS_EQT_LEAK = #{isEqtLeak},</if>
  224. <if test="isKeyTest != null and isKeyTest != ''">IS_KEY_TEST = #{isKeyTest},</if>
  225. <if test="isKeyIntest != null and isKeyIntest != ''">IS_KEY_INTEST = #{isKeyIntest},</if>
  226. <if test="isKeyUchk != null and isKeyUchk != ''">IS_KEY_UCHK = #{isKeyUchk},</if>
  227. <if test="isKeyIuchk != null and isKeyIuchk != ''">IS_KEY_IUCHK = #{isKeyIuchk},</if>
  228. <if test="isKeyCsvchk != null and isKeyCsvchk != ''">IS_KEY_CSVCHK = #{isKeyCsvchk},</if>
  229. <if test="wtsvGetDate != null">WTSV_GET_DATE = #{wtsvGetDate},</if>
  230. <if test="wtsvGetFile != null and wtsvGetFile != ''">WTSV_GET_FILE = #{wtsvGetFile},</if>
  231. <if test="isUsrNwter != null and isUsrNwter != ''">IS_USR_NWTER = #{isUsrNwter},</if>
  232. <if test="usrSti != null and usrSti != ''">USR_STI = #{usrSti},</if>
  233. <if test="note != null and note != ''">NOTE = #{note},</if>
  234. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  235. <if test="intm != null">INTM = #{intm},</if>
  236. <if test="uptm != null">UPTM = #{uptm},</if>
  237. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  238. <if test="id != null and id != ''">ID = #{id},</if>
  239. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  240. <if test="wtruType != null and wtruType != ''">WTRU_TYPE = #{wtruType},</if>
  241. <if test="wtruTypeNote != null and wtruTypeNote != ''">WTRU_TYPE_NOTE = #{wtruTypeNote},</if>
  242. <if test="acur != null and acur != ''">ACUR = #{acur},</if>
  243. <if test="isInplPub != null and isInplPub != ''">IS_INPL_PUB = #{isInplPub},</if>
  244. <if test="isInplByo != null and isInplByo != ''">IS_INPL_BYO = #{isInplByo},</if>
  245. <if test="isInplNnml != null and isInplNnml != ''">IS_INPL_NNML = #{isInplNnml},</if>
  246. <if test="isMnt != null and isMnt != ''">IS_MNT = #{isMnt},</if>
  247. <if test="isSndPlan != null and isSndPlan != ''">IS_SND_PLAN = #{isSndPlan},</if>
  248. <if test="isRslMon != null and isRslMon != ''">IS_RSL_MON = #{isRslMon},</if>
  249. <if test="isAppAdj != null and isAppAdj != ''">IS_APP_ADJ = #{isAppAdj},</if>
  250. <if test="isUsrOver != null and isUsrOver != ''">IS_USR_OVER = #{isUsrOver},</if>
  251. <if test="isPayCost != null and isPayCost != ''">IS_PAY_COST = #{isPayCost},</if>
  252. <if test="isPayOcost != null and isPayOcost != ''">IS_PAY_OCOST = #{isPayOcost},</if>
  253. <if test="itpScale != null and itpScale != ''">ITP_SCALE = #{itpScale},</if>
  254. <if test="usrStnd != null and usrStnd != ''">USR_STND = #{usrStnd},</if>
  255. <if test="isOverUsr != null and isOverUsr != ''">IS_OVER_USR = #{isOverUsr},</if>
  256. <if test="isBldMsr != null and isBldMsr != ''">IS_BLD_MSR = #{isBldMsr},</if>
  257. <if test="isMsrMeet != null and isMsrMeet != ''">IS_MSR_MEET = #{isMsrMeet},</if>
  258. <if test="isMsrRun != null and isMsrRun != ''">IS_MSR_RUN = #{isMsrRun},</if>
  259. <if test="isMsrChk != null and isMsrChk != ''">IS_MSR_CHK = #{isMsrChk},</if>
  260. <if test="isMsrBook != null and isMsrBook != ''">IS_MSR_BOOK = #{isMsrBook},</if>
  261. <if test="state != null and state != ''">STATE = #{state},</if>
  262. </trim>
  263. <where>ID = #{id}</where>
  264. </update>
  265. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
  266. update BIS_INSP_JSPWIU_WTRU
  267. <trim prefix="set" suffixOverrides=",">
  268. <if test="isWtsvPub != null and isWtsvPub != ''"> IS_WTSV_PUB = #{isWtsvPub},</if>
  269. <if test="isWtsvDeep != null and isWtsvDeep != ''">IS_WTSV_DEEP = #{isWtsvDeep},</if>
  270. <if test="isBldCmpchk != null and isBldCmpchk != ''">IS_BLD_CMPCHK = #{isBldCmpchk},</if>
  271. <if test="isEqtWtsv != null and isEqtWtsv != ''">IS_EQT_WTSV = #{isEqtWtsv},</if>
  272. <if test="isEqtLeak != null and isEqtLeak != ''">IS_EQT_LEAK = #{isEqtLeak},</if>
  273. <if test="isKeyTest != null and isKeyTest != ''">IS_KEY_TEST = #{isKeyTest},</if>
  274. <if test="isKeyIntest != null and isKeyIntest != ''">IS_KEY_INTEST = #{isKeyIntest},</if>
  275. <if test="isKeyUchk != null and isKeyUchk != ''">IS_KEY_UCHK = #{isKeyUchk},</if>
  276. <if test="isKeyIuchk != null and isKeyIuchk != ''">IS_KEY_IUCHK = #{isKeyIuchk},</if>
  277. <if test="isKeyCsvchk != null and isKeyCsvchk != ''">IS_KEY_CSVCHK = #{isKeyCsvchk},</if>
  278. <if test="wtsvGetDate != null">WTSV_GET_DATE = #{wtsvGetDate},</if>
  279. <if test="wtsvGetFile != null and wtsvGetFile != ''">WTSV_GET_FILE = #{wtsvGetFile},</if>
  280. <if test="isUsrNwter != null and isUsrNwter != ''">IS_USR_NWTER = #{isUsrNwter},</if>
  281. <if test="usrSti != null and usrSti != ''">USR_STI = #{usrSti},</if>
  282. <if test="note != null and note != ''">NOTE = #{note},</if>
  283. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  284. <if test="intm != null">INTM = #{intm},</if>
  285. <if test="uptm != null">UPTM = #{uptm},</if>
  286. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  287. <if test="id != null and id != ''">ID = #{id},</if>
  288. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  289. <if test="wtruType != null and wtruType != ''">WTRU_TYPE = #{wtruType},</if>
  290. <if test="wtruTypeNote != null and wtruTypeNote != ''">WTRU_TYPE_NOTE = #{wtruTypeNote},</if>
  291. <if test="acur != null and acur != ''">ACUR = #{acur},</if>
  292. <if test="isInplPub != null and isInplPub != ''">IS_INPL_PUB = #{isInplPub},</if>
  293. <if test="isInplByo != null and isInplByo != ''">IS_INPL_BYO = #{isInplByo},</if>
  294. <if test="isInplNnml != null and isInplNnml != ''">IS_INPL_NNML = #{isInplNnml},</if>
  295. <if test="isMnt != null and isMnt != ''">IS_MNT = #{isMnt},</if>
  296. <if test="isSndPlan != null and isSndPlan != ''">IS_SND_PLAN = #{isSndPlan},</if>
  297. <if test="isRslMon != null and isRslMon != ''">IS_RSL_MON = #{isRslMon},</if>
  298. <if test="isAppAdj != null and isAppAdj != ''">IS_APP_ADJ = #{isAppAdj},</if>
  299. <if test="isUsrOver != null and isUsrOver != ''">IS_USR_OVER = #{isUsrOver},</if>
  300. <if test="isPayCost != null and isPayCost != ''">IS_PAY_COST = #{isPayCost},</if>
  301. <if test="isPayOcost != null and isPayOcost != ''">IS_PAY_OCOST = #{isPayOcost},</if>
  302. <if test="itpScale != null and itpScale != ''">ITP_SCALE = #{itpScale},</if>
  303. <if test="usrStnd != null and usrStnd != ''">USR_STND = #{usrStnd},</if>
  304. <if test="isOverUsr != null and isOverUsr != ''">IS_OVER_USR = #{isOverUsr},</if>
  305. <if test="isBldMsr != null and isBldMsr != ''">IS_BLD_MSR = #{isBldMsr},</if>
  306. <if test="isMsrMeet != null and isMsrMeet != ''">IS_MSR_MEET = #{isMsrMeet},</if>
  307. <if test="isMsrRun != null and isMsrRun != ''">IS_MSR_RUN = #{isMsrRun},</if>
  308. <if test="isMsrChk != null and isMsrChk != ''">IS_MSR_CHK = #{isMsrChk},</if>
  309. <if test="isMsrBook != null and isMsrBook != ''">IS_MSR_BOOK = #{isMsrBook},</if>
  310. <if test="state != null and state != ''">STATE = #{state},</if>
  311. </trim>
  312. <include refid="page_where" />
  313. </update>
  314. <!-- 其他自定义SQL -->
  315. </mapper>