da_lqwhxx_SqlMap.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd" >
  3. <sqlMap namespace="da_lqwhxx" >
  4. <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.da.dataobject.DaLqwhxx" >
  5. <!--
  6. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  7. This element was generated on Fri May 23 16:56:30 CST 2014.
  8. -->
  9. <result column="ID" property="id" jdbcType="INTEGER" />
  10. <result column="LQID" property="lqid" jdbcType="INTEGER" />
  11. <result column="LQMC" property="lqmc" jdbcType="VARCHAR" />
  12. <result column="FSSJ" property="fssj" jdbcType="TIMESTAMP" />
  13. <result column="ZLS" property="zls" jdbcType="DECIMAL" />
  14. <result column="RLS" property="rls" jdbcType="DECIMAL" />
  15. <result column="RLPJTZ" property="rlpjtz" jdbcType="DECIMAL" />
  16. <result column="SCS" property="scs" jdbcType="DECIMAL" />
  17. <result column="SCPJTZ" property="scpjtz" jdbcType="DECIMAL" />
  18. <result column="GLS" property="gls" jdbcType="DECIMAL" />
  19. <result column="GLPJTZ" property="glpjtz" jdbcType="DECIMAL" />
  20. <result column="SWS" property="sws" jdbcType="DECIMAL" />
  21. <result column="SWPJTZ" property="swpjtz" jdbcType="DECIMAL" />
  22. <result column="TTS" property="tts" jdbcType="DECIMAL" />
  23. <result column="TTPJTZ" property="ttpjtz" jdbcType="DECIMAL" />
  24. <result column="CLS" property="cls" jdbcType="DECIMAL" />
  25. <result column="CLPJTZ" property="clpjtz" jdbcType="DECIMAL" />
  26. <result column="CZ" property="cz" jdbcType="VARCHAR" />
  27. <result column="GLY" property="gly" jdbcType="VARCHAR" />
  28. <result column="XGR" property="xgr" jdbcType="VARCHAR" />
  29. <result column="XGSJ" property="xgsj" jdbcType="TIMESTAMP" />
  30. <result column="ZFBZ" property="zfbz" jdbcType="INTEGER" />
  31. </resultMap>
  32. <sql id="ibatorgenerated_Example_Where_Clause" >
  33. <!--
  34. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  35. This element was generated on Fri May 23 16:56:30 CST 2014.
  36. -->
  37. <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
  38. <isEqual property="oredCriteria[].valid" compareValue="true" >
  39. (
  40. <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
  41. $oredCriteria[].criteriaWithoutValue[]$
  42. </iterate>
  43. <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
  44. $oredCriteria[].criteriaWithSingleValue[].condition$
  45. #oredCriteria[].criteriaWithSingleValue[].value#
  46. </iterate>
  47. <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
  48. $oredCriteria[].criteriaWithListValue[].condition$
  49. <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
  50. #oredCriteria[].criteriaWithListValue[].values[]#
  51. </iterate>
  52. </iterate>
  53. <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
  54. $oredCriteria[].criteriaWithBetweenValue[].condition$
  55. #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
  56. #oredCriteria[].criteriaWithBetweenValue[].values[1]#
  57. </iterate>
  58. )
  59. </isEqual>
  60. </iterate>
  61. </sql>
  62. <select id="ibatorgenerated_selectByExample" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.da.dataobject.DaLqwhxxExample" >
  63. <!--
  64. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  65. This element was generated on Fri May 23 16:56:30 CST 2014.
  66. -->
  67. select ID, LQID, LQMC, FSSJ, ZLS, RLS, RLPJTZ, SCS, SCPJTZ, GLS, GLPJTZ, SWS, SWPJTZ, TTS,
  68. TTPJTZ, CLS, CLPJTZ, CZ, GLY, XGR, XGSJ, ZFBZ
  69. from da_lqwhxx
  70. <isParameterPresent >
  71. <include refid="da_lqwhxx.ibatorgenerated_Example_Where_Clause" />
  72. <isNotNull property="orderByClause" >
  73. order by $orderByClause$
  74. </isNotNull>
  75. <isGreaterEqual property="start" compareValue="0" >
  76. limit $start$ , $limit$
  77. </isGreaterEqual>
  78. </isParameterPresent>
  79. </select>
  80. <select id="ibatorgenerated_selectByPrimaryKey" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.da.dataobject.DaLqwhxx" >
  81. <!--
  82. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  83. This element was generated on Fri May 23 16:56:30 CST 2014.
  84. -->
  85. select ID, LQID, LQMC, FSSJ, ZLS, RLS, RLPJTZ, SCS, SCPJTZ, GLS, GLPJTZ, SWS, SWPJTZ, TTS,
  86. TTPJTZ, CLS, CLPJTZ, CZ, GLY, XGR, XGSJ, ZFBZ
  87. from da_lqwhxx
  88. where ID = #id:INTEGER#
  89. </select>
  90. <delete id="ibatorgenerated_deleteByPrimaryKey" parameterClass="com.huimv.da.dataobject.DaLqwhxx" >
  91. <!--
  92. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  93. This element was generated on Fri May 23 16:56:30 CST 2014.
  94. -->
  95. delete from da_lqwhxx
  96. where ID = #id:INTEGER#
  97. </delete>
  98. <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.da.dataobject.DaLqwhxxExample" >
  99. <!--
  100. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  101. This element was generated on Fri May 23 16:56:30 CST 2014.
  102. -->
  103. delete from da_lqwhxx
  104. <include refid="da_lqwhxx.ibatorgenerated_Example_Where_Clause" />
  105. </delete>
  106. <insert id="ibatorgenerated_insert" parameterClass="com.huimv.da.dataobject.DaLqwhxx" >
  107. <!--
  108. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  109. This element was generated on Fri May 23 16:56:30 CST 2014.
  110. -->
  111. insert into da_lqwhxx (ID, LQID, LQMC, FSSJ, ZLS, RLS, RLPJTZ, SCS, SCPJTZ, GLS, GLPJTZ, SWS,
  112. SWPJTZ, TTS, TTPJTZ, CLS, CLPJTZ, CZ, GLY, XGR, XGSJ, ZFBZ)
  113. values (#id:INTEGER#, #lqid:INTEGER#, #lqmc:VARCHAR#, #fssj:TIMESTAMP#, #zls:DECIMAL#,
  114. #rls:DECIMAL#, #rlpjtz:DECIMAL#, #scs:DECIMAL#, #scpjtz:DECIMAL#, #gls:DECIMAL#,
  115. #glpjtz:DECIMAL#, #sws:DECIMAL#, #swpjtz:DECIMAL#, #tts:DECIMAL#, #ttpjtz:DECIMAL#,
  116. #cls:DECIMAL#, #clpjtz:DECIMAL#, #cz:VARCHAR#, #gly:VARCHAR#, #xgr:VARCHAR#, #xgsj:TIMESTAMP#,
  117. #zfbz:INTEGER#)
  118. </insert>
  119. <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.da.dataobject.DaLqwhxx" >
  120. <!--
  121. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  122. This element was generated on Fri May 23 16:56:30 CST 2014.
  123. -->
  124. insert into da_lqwhxx
  125. <dynamic prepend="(" >
  126. <isNotNull prepend="," property="id" >
  127. ID
  128. </isNotNull>
  129. <isNotNull prepend="," property="lqid" >
  130. LQID
  131. </isNotNull>
  132. <isNotNull prepend="," property="lqmc" >
  133. LQMC
  134. </isNotNull>
  135. <isNotNull prepend="," property="fssj" >
  136. FSSJ
  137. </isNotNull>
  138. <isNotNull prepend="," property="zls" >
  139. ZLS
  140. </isNotNull>
  141. <isNotNull prepend="," property="rls" >
  142. RLS
  143. </isNotNull>
  144. <isNotNull prepend="," property="rlpjtz" >
  145. RLPJTZ
  146. </isNotNull>
  147. <isNotNull prepend="," property="scs" >
  148. SCS
  149. </isNotNull>
  150. <isNotNull prepend="," property="scpjtz" >
  151. SCPJTZ
  152. </isNotNull>
  153. <isNotNull prepend="," property="gls" >
  154. GLS
  155. </isNotNull>
  156. <isNotNull prepend="," property="glpjtz" >
  157. GLPJTZ
  158. </isNotNull>
  159. <isNotNull prepend="," property="sws" >
  160. SWS
  161. </isNotNull>
  162. <isNotNull prepend="," property="swpjtz" >
  163. SWPJTZ
  164. </isNotNull>
  165. <isNotNull prepend="," property="tts" >
  166. TTS
  167. </isNotNull>
  168. <isNotNull prepend="," property="ttpjtz" >
  169. TTPJTZ
  170. </isNotNull>
  171. <isNotNull prepend="," property="cls" >
  172. CLS
  173. </isNotNull>
  174. <isNotNull prepend="," property="clpjtz" >
  175. CLPJTZ
  176. </isNotNull>
  177. <isNotNull prepend="," property="cz" >
  178. CZ
  179. </isNotNull>
  180. <isNotNull prepend="," property="gly" >
  181. GLY
  182. </isNotNull>
  183. <isNotNull prepend="," property="xgr" >
  184. XGR
  185. </isNotNull>
  186. <isNotNull prepend="," property="xgsj" >
  187. XGSJ
  188. </isNotNull>
  189. <isNotNull prepend="," property="zfbz" >
  190. ZFBZ
  191. </isNotNull>
  192. )
  193. </dynamic>
  194. values
  195. <dynamic prepend="(" >
  196. <isNotNull prepend="," property="id" >
  197. #id:INTEGER#
  198. </isNotNull>
  199. <isNotNull prepend="," property="lqid" >
  200. #lqid:INTEGER#
  201. </isNotNull>
  202. <isNotNull prepend="," property="lqmc" >
  203. #lqmc:VARCHAR#
  204. </isNotNull>
  205. <isNotNull prepend="," property="fssj" >
  206. #fssj:TIMESTAMP#
  207. </isNotNull>
  208. <isNotNull prepend="," property="zls" >
  209. #zls:DECIMAL#
  210. </isNotNull>
  211. <isNotNull prepend="," property="rls" >
  212. #rls:DECIMAL#
  213. </isNotNull>
  214. <isNotNull prepend="," property="rlpjtz" >
  215. #rlpjtz:DECIMAL#
  216. </isNotNull>
  217. <isNotNull prepend="," property="scs" >
  218. #scs:DECIMAL#
  219. </isNotNull>
  220. <isNotNull prepend="," property="scpjtz" >
  221. #scpjtz:DECIMAL#
  222. </isNotNull>
  223. <isNotNull prepend="," property="gls" >
  224. #gls:DECIMAL#
  225. </isNotNull>
  226. <isNotNull prepend="," property="glpjtz" >
  227. #glpjtz:DECIMAL#
  228. </isNotNull>
  229. <isNotNull prepend="," property="sws" >
  230. #sws:DECIMAL#
  231. </isNotNull>
  232. <isNotNull prepend="," property="swpjtz" >
  233. #swpjtz:DECIMAL#
  234. </isNotNull>
  235. <isNotNull prepend="," property="tts" >
  236. #tts:DECIMAL#
  237. </isNotNull>
  238. <isNotNull prepend="," property="ttpjtz" >
  239. #ttpjtz:DECIMAL#
  240. </isNotNull>
  241. <isNotNull prepend="," property="cls" >
  242. #cls:DECIMAL#
  243. </isNotNull>
  244. <isNotNull prepend="," property="clpjtz" >
  245. #clpjtz:DECIMAL#
  246. </isNotNull>
  247. <isNotNull prepend="," property="cz" >
  248. #cz:VARCHAR#
  249. </isNotNull>
  250. <isNotNull prepend="," property="gly" >
  251. #gly:VARCHAR#
  252. </isNotNull>
  253. <isNotNull prepend="," property="xgr" >
  254. #xgr:VARCHAR#
  255. </isNotNull>
  256. <isNotNull prepend="," property="xgsj" >
  257. #xgsj:TIMESTAMP#
  258. </isNotNull>
  259. <isNotNull prepend="," property="zfbz" >
  260. #zfbz:INTEGER#
  261. </isNotNull>
  262. )
  263. </dynamic>
  264. </insert>
  265. <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.da.dataobject.DaLqwhxxExample" resultClass="java.lang.Integer" >
  266. <!--
  267. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  268. This element was generated on Fri May 23 16:56:30 CST 2014.
  269. -->
  270. select count(*) from da_lqwhxx as wh
  271. <include refid="da_lqwhxx.ibatorgenerated_Example_Where_Clause" />
  272. </select>
  273. <update id="ibatorgenerated_updateByExampleSelective" >
  274. <!--
  275. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  276. This element was generated on Fri May 23 16:56:30 CST 2014.
  277. -->
  278. update da_lqwhxx
  279. <dynamic prepend="set" >
  280. <isNotNull prepend="," property="record.id" >
  281. ID = #record.id:INTEGER#
  282. </isNotNull>
  283. <isNotNull prepend="," property="record.lqid" >
  284. LQID = #record.lqid:INTEGER#
  285. </isNotNull>
  286. <isNotNull prepend="," property="record.lqmc" >
  287. LQMC = #record.lqmc:VARCHAR#
  288. </isNotNull>
  289. <isNotNull prepend="," property="record.fssj" >
  290. FSSJ = #record.fssj:TIMESTAMP#
  291. </isNotNull>
  292. <isNotNull prepend="," property="record.zls" >
  293. ZLS = #record.zls:DECIMAL#
  294. </isNotNull>
  295. <isNotNull prepend="," property="record.rls" >
  296. RLS = #record.rls:DECIMAL#
  297. </isNotNull>
  298. <isNotNull prepend="," property="record.rlpjtz" >
  299. RLPJTZ = #record.rlpjtz:DECIMAL#
  300. </isNotNull>
  301. <isNotNull prepend="," property="record.scs" >
  302. SCS = #record.scs:DECIMAL#
  303. </isNotNull>
  304. <isNotNull prepend="," property="record.scpjtz" >
  305. SCPJTZ = #record.scpjtz:DECIMAL#
  306. </isNotNull>
  307. <isNotNull prepend="," property="record.gls" >
  308. GLS = #record.gls:DECIMAL#
  309. </isNotNull>
  310. <isNotNull prepend="," property="record.glpjtz" >
  311. GLPJTZ = #record.glpjtz:DECIMAL#
  312. </isNotNull>
  313. <isNotNull prepend="," property="record.sws" >
  314. SWS = #record.sws:DECIMAL#
  315. </isNotNull>
  316. <isNotNull prepend="," property="record.swpjtz" >
  317. SWPJTZ = #record.swpjtz:DECIMAL#
  318. </isNotNull>
  319. <isNotNull prepend="," property="record.tts" >
  320. TTS = #record.tts:DECIMAL#
  321. </isNotNull>
  322. <isNotNull prepend="," property="record.ttpjtz" >
  323. TTPJTZ = #record.ttpjtz:DECIMAL#
  324. </isNotNull>
  325. <isNotNull prepend="," property="record.cls" >
  326. CLS = #record.cls:DECIMAL#
  327. </isNotNull>
  328. <isNotNull prepend="," property="record.clpjtz" >
  329. CLPJTZ = #record.clpjtz:DECIMAL#
  330. </isNotNull>
  331. <isNotNull prepend="," property="record.cz" >
  332. CZ = #record.cz:VARCHAR#
  333. </isNotNull>
  334. <isNotNull prepend="," property="record.gly" >
  335. GLY = #record.gly:VARCHAR#
  336. </isNotNull>
  337. <isNotNull prepend="," property="record.xgr" >
  338. XGR = #record.xgr:VARCHAR#
  339. </isNotNull>
  340. <isNotNull prepend="," property="record.xgsj" >
  341. XGSJ = #record.xgsj:TIMESTAMP#
  342. </isNotNull>
  343. <isNotNull prepend="," property="record.zfbz" >
  344. ZFBZ = #record.zfbz:INTEGER#
  345. </isNotNull>
  346. </dynamic>
  347. <isParameterPresent >
  348. <include refid="da_lqwhxx.ibatorgenerated_Example_Where_Clause" />
  349. </isParameterPresent>
  350. </update>
  351. <update id="ibatorgenerated_updateByExample" >
  352. <!--
  353. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  354. This element was generated on Fri May 23 16:56:30 CST 2014.
  355. -->
  356. update da_lqwhxx
  357. set ID = #record.id:INTEGER#,
  358. LQID = #record.lqid:INTEGER#,
  359. LQMC = #record.lqmc:VARCHAR#,
  360. FSSJ = #record.fssj:TIMESTAMP#,
  361. ZLS = #record.zls:DECIMAL#,
  362. RLS = #record.rls:DECIMAL#,
  363. RLPJTZ = #record.rlpjtz:DECIMAL#,
  364. SCS = #record.scs:DECIMAL#,
  365. SCPJTZ = #record.scpjtz:DECIMAL#,
  366. GLS = #record.gls:DECIMAL#,
  367. GLPJTZ = #record.glpjtz:DECIMAL#,
  368. SWS = #record.sws:DECIMAL#,
  369. SWPJTZ = #record.swpjtz:DECIMAL#,
  370. TTS = #record.tts:DECIMAL#,
  371. TTPJTZ = #record.ttpjtz:DECIMAL#,
  372. CLS = #record.cls:DECIMAL#,
  373. CLPJTZ = #record.clpjtz:DECIMAL#,
  374. CZ = #record.cz:VARCHAR#,
  375. GLY = #record.gly:VARCHAR#,
  376. XGR = #record.xgr:VARCHAR#,
  377. XGSJ = #record.xgsj:TIMESTAMP#,
  378. ZFBZ = #record.zfbz:INTEGER#
  379. <isParameterPresent >
  380. <include refid="da_lqwhxx.ibatorgenerated_Example_Where_Clause" />
  381. </isParameterPresent>
  382. </update>
  383. <update id="ibatorgenerated_updateByPrimaryKeySelective" parameterClass="com.huimv.da.dataobject.DaLqwhxx" >
  384. <!--
  385. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  386. This element was generated on Fri May 23 16:56:30 CST 2014.
  387. -->
  388. update da_lqwhxx
  389. <dynamic prepend="set" >
  390. <isNotNull prepend="," property="lqid" >
  391. LQID = #lqid:INTEGER#
  392. </isNotNull>
  393. <isNotNull prepend="," property="lqmc" >
  394. LQMC = #lqmc:VARCHAR#
  395. </isNotNull>
  396. <isNotNull prepend="," property="fssj" >
  397. FSSJ = #fssj:TIMESTAMP#
  398. </isNotNull>
  399. <isNotNull prepend="," property="zls" >
  400. ZLS = #zls:DECIMAL#
  401. </isNotNull>
  402. <isNotNull prepend="," property="rls" >
  403. RLS = #rls:DECIMAL#
  404. </isNotNull>
  405. <isNotNull prepend="," property="rlpjtz" >
  406. RLPJTZ = #rlpjtz:DECIMAL#
  407. </isNotNull>
  408. <isNotNull prepend="," property="scs" >
  409. SCS = #scs:DECIMAL#
  410. </isNotNull>
  411. <isNotNull prepend="," property="scpjtz" >
  412. SCPJTZ = #scpjtz:DECIMAL#
  413. </isNotNull>
  414. <isNotNull prepend="," property="gls" >
  415. GLS = #gls:DECIMAL#
  416. </isNotNull>
  417. <isNotNull prepend="," property="glpjtz" >
  418. GLPJTZ = #glpjtz:DECIMAL#
  419. </isNotNull>
  420. <isNotNull prepend="," property="sws" >
  421. SWS = #sws:DECIMAL#
  422. </isNotNull>
  423. <isNotNull prepend="," property="swpjtz" >
  424. SWPJTZ = #swpjtz:DECIMAL#
  425. </isNotNull>
  426. <isNotNull prepend="," property="tts" >
  427. TTS = #tts:DECIMAL#
  428. </isNotNull>
  429. <isNotNull prepend="," property="ttpjtz" >
  430. TTPJTZ = #ttpjtz:DECIMAL#
  431. </isNotNull>
  432. <isNotNull prepend="," property="cls" >
  433. CLS = #cls:DECIMAL#
  434. </isNotNull>
  435. <isNotNull prepend="," property="clpjtz" >
  436. CLPJTZ = #clpjtz:DECIMAL#
  437. </isNotNull>
  438. <isNotNull prepend="," property="cz" >
  439. CZ = #cz:VARCHAR#
  440. </isNotNull>
  441. <isNotNull prepend="," property="gly" >
  442. GLY = #gly:VARCHAR#
  443. </isNotNull>
  444. <isNotNull prepend="," property="xgr" >
  445. XGR = #xgr:VARCHAR#
  446. </isNotNull>
  447. <isNotNull prepend="," property="xgsj" >
  448. XGSJ = #xgsj:TIMESTAMP#
  449. </isNotNull>
  450. <isNotNull prepend="," property="zfbz" >
  451. ZFBZ = #zfbz:INTEGER#
  452. </isNotNull>
  453. </dynamic>
  454. where ID = #id:INTEGER#
  455. </update>
  456. <update id="ibatorgenerated_updateByPrimaryKey" parameterClass="com.huimv.da.dataobject.DaLqwhxx" >
  457. <!--
  458. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  459. This element was generated on Fri May 23 16:56:30 CST 2014.
  460. -->
  461. update da_lqwhxx
  462. set LQID = #lqid:INTEGER#,
  463. LQMC = #lqmc:VARCHAR#,
  464. FSSJ = #fssj:TIMESTAMP#,
  465. ZLS = #zls:DECIMAL#,
  466. RLS = #rls:DECIMAL#,
  467. RLPJTZ = #rlpjtz:DECIMAL#,
  468. SCS = #scs:DECIMAL#,
  469. SCPJTZ = #scpjtz:DECIMAL#,
  470. GLS = #gls:DECIMAL#,
  471. GLPJTZ = #glpjtz:DECIMAL#,
  472. SWS = #sws:DECIMAL#,
  473. SWPJTZ = #swpjtz:DECIMAL#,
  474. TTS = #tts:DECIMAL#,
  475. TTPJTZ = #ttpjtz:DECIMAL#,
  476. CLS = #cls:DECIMAL#,
  477. CLPJTZ = #clpjtz:DECIMAL#,
  478. CZ = #cz:VARCHAR#,
  479. GLY = #gly:VARCHAR#,
  480. XGR = #xgr:VARCHAR#,
  481. XGSJ = #xgsj:TIMESTAMP#,
  482. ZFBZ = #zfbz:INTEGER#
  483. where ID = #id:INTEGER#
  484. </update>
  485. <!-- 栏期维护列表 -->
  486. <select id="ibatorgenerated_selectMCZSLQLQWHByExample" resultClass="com.huimv.da.dataobject.DaLqwhxx" parameterClass="com.huimv.da.dataobject.DaLqwhxxExample" >
  487. <!-- select da_lqwhxx.ID, da_lqwhxx.LQID, da_lqda.LQMC, da_lqwhxx.FSSJ, da_lqwhxx.RLS, da_lqwhxx.RLPJTZ, da_lqwhxx.ZLS, da_lqwhxx.SCS, da_lqwhxx.SCPJTZ, da_lqwhxx.GLS, da_lqwhxx.GLPJTZ, da_lqwhxx.SWS, da_lqwhxx.SWPJTZ, da_lqwhxx.CLS, da_lqwhxx.CLPJTZ,
  488. da_lqwhxx.TTS, da_lqwhxx.TTPJTZ, da_lqwhxx.CZ, da_lqwhxx.GLY, da_lqwhxx.XGR, da_lqwhxx.XGSJ, da_lqwhxx.ZFBZ, da_lqda.lqmc, da_zsda.zsmc, da_mcda.mcmc
  489. from da_lqwhxx
  490. inner join da_lqda
  491. inner join da_zsda
  492. inner join da_mcda
  493. on da_lqwhxx.lqid = da_lqda.id and da_lqda.zsid = da_zsda.id and da_zsda.mcid = da_mcda.id -->
  494. SELECT wh.ID, wh.LQID, wh.FSSJ, wh.ZLS, wh.RLS, wh.RLPJTZ, wh.SCS, wh.SCPJTZ, wh.GLS, wh.GLPJTZ, wh.SWS, wh.SWPJTZ, wh.TTS, wh.TTPJTZ,
  495. wh.CLS, wh.CLPJTZ, wh.TTS, wh.TTPJTZ, wh.CZ, wh.GLY, wh.XGR, wh.XGSJ, wh.ZFBZ, lq.LQMC AS LQMC, zs.ZSMC AS ZSMC, mc.MCMC AS MCMC
  496. FROM da_lqwhxx AS wh
  497. LEFT JOIN da_lqda lq ON lq.ID = wh.LQID AND lq.ZFBZ = 0
  498. LEFT JOIN da_zsda zs ON zs.ID = lq.ZSID AND zs.ZFBZ = 0
  499. LEFT JOIN da_mcda mc ON mc.ID = zs.MCID AND mc.ZFBZ = 0
  500. <isParameterPresent >
  501. <include refid="da_lqwhxx.ibatorgenerated_Example_Where_Clause" />
  502. <isNotNull property="orderByClause" >
  503. order by $orderByClause$
  504. </isNotNull>
  505. <isGreaterEqual property="start" compareValue="0" >
  506. limit $start$ , $limit$
  507. </isGreaterEqual>
  508. </isParameterPresent>
  509. </select>
  510. <!-- 动物数目 -->
  511. <select id="dws.select.lqwhxx.by.lqid" parameterClass="java.lang.Integer" resultClass="com.huimv.busi.da.dto.DaDwsDTO">
  512. SELECT
  513. CASE WHEN sum(sws) IS NULL THEN 0 ELSE SUM(sws) END as sumsws,
  514. CASE WHEN sum(scs) IS NULL THEN 0 ELSE SUM(scs) END as sumscs,
  515. CASE WHEN sum(gls) IS NULL THEN 0 ELSE SUM(gls) END as sumgls,
  516. CASE WHEN sum(rls) IS NULL THEN 0 ELSE SUM(rls) END as sumrls,
  517. CASE WHEN sum(tts) IS NULL THEN 0 ELSE SUM(tts) END as sumtts,
  518. CASE WHEN sum(cls) IS NULL THEN 0 ELSE SUM(cls) END as sumcls,
  519. CASE WHEN (SUM(rls*rlpjtz)/sum(rls)) IS NULL THEN 0 ELSE (SUM(rls*rlpjtz)/sum(rls)) END as zrlpjtz,
  520. CASE WHEN (sum(rls) - sum(sws) - sum(scs)-sum(gls) - sum(tts) - sum(cls)) IS NULL THEN 0 ELSE
  521. (sum(rls) - sum(sws) - sum(scs)-sum(gls) - sum(tts) - sum(cls)) END as sumzls
  522. FROM da_lqwhxx where lqid = #lqid:INTEGER# and ZFBZ = 0
  523. </select>
  524. <!-- 发生时间受限条件下的动物数目 -->
  525. <select id="dws.select.lqwhxx.by.lqid.fssj" parameterClass="com.huimv.da.dataobject.DaLqwhxx" resultClass="com.huimv.busi.da.dto.DaDwsDTO">
  526. SELECT
  527. CASE WHEN sum(sws) IS NULL THEN 0 ELSE SUM(sws) END as sumsws,
  528. CASE WHEN sum(scs) IS NULL THEN 0 ELSE SUM(scs) END as sumscs,
  529. CASE WHEN sum(gls) IS NULL THEN 0 ELSE SUM(gls) END as sumgls,
  530. CASE WHEN sum(rls) IS NULL THEN 0 ELSE SUM(rls) END as sumrls,
  531. CASE WHEN sum(tts) IS NULL THEN 0 ELSE SUM(tts) END as sumtts,
  532. CASE WHEN sum(cls) IS NULL THEN 0 ELSE SUM(cls) END as sumcls,
  533. CASE WHEN (SUM(rls*rlpjtz)/sum(rls)) IS NULL THEN 0 ELSE (SUM(rls*rlpjtz)/sum(rls)) END as zrlpjtz,
  534. CASE WHEN (sum(rls) - sum(sws) - sum(scs)-sum(gls) - sum(tts) - sum(cls)) IS NULL THEN 0 ELSE
  535. (sum(rls) - sum(sws) - sum(scs)-sum(gls) - sum(tts) - sum(cls)) END as sumzls
  536. FROM da_lqwhxx
  537. <dynamic prepend="WHERE" >
  538. <isNotNull prepend="and" property="lqid" >
  539. LQID = #lqid:INTEGER#
  540. </isNotNull>
  541. <isNotNull prepend="and" property="fssj" >
  542. <![CDATA[
  543. FSSJ <= #fssj:TIMESTAMP#
  544. ]]>
  545. </isNotNull>
  546. <isNotNull prepend="and" property="zfbz" >
  547. ZFBZ = #zfbz:INTEGER#
  548. </isNotNull>
  549. </dynamic>
  550. </select>
  551. <!-- 栏期维护日志 -->
  552. <select id="id.select.lqwhxx.by.lqid" parameterClass="java.lang.Integer" resultClass="com.huimv.da.dataobject.DaLqwhxx">
  553. <!-- SELECT id FROM da_lqwhxx where lqid = #lqid:INTEGER# and ZFBZ = 0 order by xgsj desc limit 0,1 -->
  554. SELECT * FROM da_lqwhxx where lqid = #lqid:INTEGER# and ZFBZ = 0 order by xgsj desc limit 0,1
  555. </select>
  556. <!-- 更新栏期维护日志 -->
  557. <update id="zls.update.lqwhxx.by.id" parameterClass="java.lang.Integer">
  558. update da_lqwhxx set zls = #zls:INTEGER# where id = #id:INTEGER# and ZFBZ = 0
  559. </update>
  560. </sqlMap>