sj_weatherdata_SqlMap.xml 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  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="sj_weatherdata" >
  4. <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.sj.dataobject.SjWeatherData" >
  5. <!--
  6. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  7. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  8. -->
  9. <result column="ID" property="id" jdbcType="INTEGER" />
  10. <result column="YHID" property="yhid" jdbcType="INTEGER" />
  11. <result column="IP" property="ip" jdbcType="VARCHAR" />
  12. <result column="savetime" property="savetime" jdbcType="TIMESTAMP" />
  13. <result column="provCity" property="provcity" jdbcType="VARCHAR" />
  14. <result column="cityName" property="cityname" jdbcType="VARCHAR" />
  15. <result column="cityCode" property="citycode" jdbcType="INTEGER" />
  16. <result column="fbTime" property="fbtime" jdbcType="TIMESTAMP" />
  17. <result column="currTemp" property="currtemp" jdbcType="VARCHAR" />
  18. <result column="currWind" property="currwind" jdbcType="VARCHAR" />
  19. <result column="currWet" property="currwet" jdbcType="VARCHAR" />
  20. <result column="currAir" property="currair" jdbcType="VARCHAR" />
  21. <result column="currZwx" property="currzwx" jdbcType="VARCHAR" />
  22. <result column="firstDate" property="firstdate" jdbcType="VARCHAR" />
  23. <result column="firstTemp" property="firsttemp" jdbcType="VARCHAR" />
  24. <result column="firstWind" property="firstwind" jdbcType="VARCHAR" />
  25. <result column="firstIcon1" property="firsticon1" jdbcType="VARCHAR" />
  26. <result column="firstIcon2" property="firsticon2" jdbcType="VARCHAR" />
  27. <result column="seconDate" property="secondate" jdbcType="VARCHAR" />
  28. <result column="seconTemp" property="secontemp" jdbcType="VARCHAR" />
  29. <result column="seconWind" property="seconwind" jdbcType="VARCHAR" />
  30. <result column="seconIcon1" property="seconicon1" jdbcType="VARCHAR" />
  31. <result column="seconIcon2" property="seconicon2" jdbcType="VARCHAR" />
  32. <result column="thirdDate" property="thirddate" jdbcType="VARCHAR" />
  33. <result column="thirdTemp" property="thirdtemp" jdbcType="VARCHAR" />
  34. <result column="thirdWind" property="thirdwind" jdbcType="VARCHAR" />
  35. <result column="thirdIcon1" property="thirdicon1" jdbcType="VARCHAR" />
  36. <result column="thirdIcon2" property="thirdicon2" jdbcType="VARCHAR" />
  37. <result column="fourthDate" property="fourthdate" jdbcType="VARCHAR" />
  38. <result column="fourthTemp" property="fourthtemp" jdbcType="VARCHAR" />
  39. <result column="fourthWind" property="fourthwind" jdbcType="VARCHAR" />
  40. <result column="fourthIcon1" property="fourthicon1" jdbcType="VARCHAR" />
  41. <result column="fourthIcon2" property="fourthicon2" jdbcType="VARCHAR" />
  42. <result column="fifthDate" property="fifthdate" jdbcType="VARCHAR" />
  43. <result column="fifthTemp" property="fifthtemp" jdbcType="VARCHAR" />
  44. <result column="fifthWind" property="fifthwind" jdbcType="VARCHAR" />
  45. <result column="fifthIcon1" property="fifthicon1" jdbcType="VARCHAR" />
  46. <result column="fifthIcon2" property="fifthicon2" jdbcType="VARCHAR" />
  47. </resultMap>
  48. <resultMap id="ibatorgenerated_ResultMapWithBLOBs" class="com.huimv.sj.dataobject.SjWeatherData" extends="sj_weatherdata.ibatorgenerated_BaseResultMap" >
  49. <!--
  50. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  51. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  52. -->
  53. <result column="currZs" property="currzs" jdbcType="LONGVARCHAR" />
  54. </resultMap>
  55. <sql id="ibatorgenerated_Example_Where_Clause" >
  56. <!--
  57. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  58. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  59. -->
  60. <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
  61. <isEqual property="oredCriteria[].valid" compareValue="true" >
  62. (
  63. <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
  64. $oredCriteria[].criteriaWithoutValue[]$
  65. </iterate>
  66. <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
  67. $oredCriteria[].criteriaWithSingleValue[].condition$
  68. #oredCriteria[].criteriaWithSingleValue[].value#
  69. </iterate>
  70. <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
  71. $oredCriteria[].criteriaWithListValue[].condition$
  72. <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
  73. #oredCriteria[].criteriaWithListValue[].values[]#
  74. </iterate>
  75. </iterate>
  76. <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
  77. $oredCriteria[].criteriaWithBetweenValue[].condition$
  78. #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
  79. #oredCriteria[].criteriaWithBetweenValue[].values[1]#
  80. </iterate>
  81. )
  82. </isEqual>
  83. </iterate>
  84. </sql>
  85. <select id="ibatorgenerated_selectByExampleWithBLOBs" resultMap="ibatorgenerated_ResultMapWithBLOBs" parameterClass="com.huimv.sj.dataobject.SjWeatherDataExample" >
  86. <!--
  87. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  88. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  89. -->
  90. select ID, YHID, IP, savetime, provCity, cityName, cityCode, fbTime, currTemp, currWind,
  91. currWet, currAir, currZwx, firstDate, firstTemp, firstWind, firstIcon1, firstIcon2, seconDate,
  92. seconTemp, seconWind, seconIcon1, seconIcon2, thirdDate, thirdTemp, thirdWind, thirdIcon1,
  93. thirdIcon2, fourthDate, fourthTemp, fourthWind, fourthIcon1, fourthIcon2, fifthDate,
  94. fifthTemp, fifthWind, fifthIcon1, fifthIcon2, currZs
  95. from sj_weatherdata
  96. <isParameterPresent >
  97. <include refid="sj_weatherdata.ibatorgenerated_Example_Where_Clause" />
  98. <isNotNull property="orderByClause" >
  99. order by $orderByClause$
  100. </isNotNull>
  101. </isParameterPresent>
  102. </select>
  103. <select id="ibatorgenerated_selectByExample" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.sj.dataobject.SjWeatherDataExample" >
  104. <!--
  105. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  106. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  107. -->
  108. select ID, YHID, IP, savetime, provCity, cityName, cityCode, fbTime, currTemp, currWind,
  109. currWet, currAir, currZwx, firstDate, firstTemp, firstWind, firstIcon1, firstIcon2, seconDate,
  110. seconTemp, seconWind, seconIcon1, seconIcon2, thirdDate, thirdTemp, thirdWind, thirdIcon1,
  111. thirdIcon2, fourthDate, fourthTemp, fourthWind, fourthIcon1, fourthIcon2, fifthDate,
  112. fifthTemp, fifthWind, fifthIcon1, fifthIcon2
  113. from sj_weatherdata
  114. <isParameterPresent >
  115. <include refid="sj_weatherdata.ibatorgenerated_Example_Where_Clause" />
  116. <isNotNull property="orderByClause" >
  117. order by $orderByClause$
  118. </isNotNull>
  119. <isGreaterEqual property="start" compareValue="0" >
  120. limit $start$ , $limit$
  121. </isGreaterEqual>
  122. </isParameterPresent>
  123. </select>
  124. <select id="ibatorgenerated_selectByPrimaryKey" resultMap="ibatorgenerated_ResultMapWithBLOBs" parameterClass="com.huimv.sj.dataobject.SjWeatherData" >
  125. <!--
  126. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  127. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  128. -->
  129. select ID, YHID, IP, savetime, provCity, cityName, cityCode, fbTime, currTemp, currWind,
  130. currWet, currAir, currZwx, firstDate, firstTemp, firstWind, firstIcon1, firstIcon2, seconDate,
  131. seconTemp, seconWind, seconIcon1, seconIcon2, thirdDate, thirdTemp, thirdWind, thirdIcon1,
  132. thirdIcon2, fourthDate, fourthTemp, fourthWind, fourthIcon1, fourthIcon2, fifthDate,
  133. fifthTemp, fifthWind, fifthIcon1, fifthIcon2, currZs
  134. from sj_weatherdata
  135. where ID = #id:INTEGER#
  136. </select>
  137. <delete id="ibatorgenerated_deleteByPrimaryKey" parameterClass="com.huimv.sj.dataobject.SjWeatherData" >
  138. <!--
  139. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  140. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  141. -->
  142. delete from sj_weatherdata
  143. where ID = #id:INTEGER#
  144. </delete>
  145. <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.sj.dataobject.SjWeatherDataExample" >
  146. <!--
  147. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  148. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  149. -->
  150. delete from sj_weatherdata
  151. <include refid="sj_weatherdata.ibatorgenerated_Example_Where_Clause" />
  152. </delete>
  153. <insert id="ibatorgenerated_insert" parameterClass="com.huimv.sj.dataobject.SjWeatherData" >
  154. <!--
  155. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  156. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  157. -->
  158. insert into sj_weatherdata (ID, YHID, IP, savetime, provCity, cityName, cityCode, fbTime,
  159. currTemp, currWind, currWet, currAir, currZwx, firstDate, firstTemp, firstWind, firstIcon1,
  160. firstIcon2, seconDate, seconTemp, seconWind, seconIcon1, seconIcon2, thirdDate, thirdTemp,
  161. thirdWind, thirdIcon1, thirdIcon2, fourthDate, fourthTemp, fourthWind, fourthIcon1,
  162. fourthIcon2, fifthDate, fifthTemp, fifthWind, fifthIcon1, fifthIcon2, currZs)
  163. values (#id:INTEGER#, #yhid:INTEGER#, #ip:VARCHAR#, #savetime:TIMESTAMP#, #provcity:VARCHAR#,
  164. #cityname:VARCHAR#, #citycode:INTEGER#, #fbtime:TIMESTAMP#, #currtemp:VARCHAR#,
  165. #currwind:VARCHAR#, #currwet:VARCHAR#, #currair:VARCHAR#, #currzwx:VARCHAR#,
  166. #firstdate:VARCHAR#, #firsttemp:VARCHAR#, #firstwind:VARCHAR#, #firsticon1:VARCHAR#,
  167. #firsticon2:VARCHAR#, #secondate:VARCHAR#, #secontemp:VARCHAR#, #seconwind:VARCHAR#,
  168. #seconicon1:VARCHAR#, #seconicon2:VARCHAR#, #thirddate:VARCHAR#, #thirdtemp:VARCHAR#,
  169. #thirdwind:VARCHAR#, #thirdicon1:VARCHAR#, #thirdicon2:VARCHAR#, #fourthdate:VARCHAR#,
  170. #fourthtemp:VARCHAR#, #fourthwind:VARCHAR#, #fourthicon1:VARCHAR#, #fourthicon2:VARCHAR#,
  171. #fifthdate:VARCHAR#, #fifthtemp:VARCHAR#, #fifthwind:VARCHAR#, #fifthicon1:VARCHAR#,
  172. #fifthicon2:VARCHAR#, #currzs:LONGVARCHAR#)
  173. </insert>
  174. <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.sj.dataobject.SjWeatherData" >
  175. <!--
  176. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  177. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  178. -->
  179. insert into sj_weatherdata
  180. <dynamic prepend="(" >
  181. <isNotNull prepend="," property="id" >
  182. ID
  183. </isNotNull>
  184. <isNotNull prepend="," property="yhid" >
  185. YHID
  186. </isNotNull>
  187. <isNotNull prepend="," property="ip" >
  188. IP
  189. </isNotNull>
  190. <isNotNull prepend="," property="savetime" >
  191. savetime
  192. </isNotNull>
  193. <isNotNull prepend="," property="provcity" >
  194. provCity
  195. </isNotNull>
  196. <isNotNull prepend="," property="cityname" >
  197. cityName
  198. </isNotNull>
  199. <isNotNull prepend="," property="citycode" >
  200. cityCode
  201. </isNotNull>
  202. <isNotNull prepend="," property="fbtime" >
  203. fbTime
  204. </isNotNull>
  205. <isNotNull prepend="," property="currtemp" >
  206. currTemp
  207. </isNotNull>
  208. <isNotNull prepend="," property="currwind" >
  209. currWind
  210. </isNotNull>
  211. <isNotNull prepend="," property="currwet" >
  212. currWet
  213. </isNotNull>
  214. <isNotNull prepend="," property="currair" >
  215. currAir
  216. </isNotNull>
  217. <isNotNull prepend="," property="currzwx" >
  218. currZwx
  219. </isNotNull>
  220. <isNotNull prepend="," property="firstdate" >
  221. firstDate
  222. </isNotNull>
  223. <isNotNull prepend="," property="firsttemp" >
  224. firstTemp
  225. </isNotNull>
  226. <isNotNull prepend="," property="firstwind" >
  227. firstWind
  228. </isNotNull>
  229. <isNotNull prepend="," property="firsticon1" >
  230. firstIcon1
  231. </isNotNull>
  232. <isNotNull prepend="," property="firsticon2" >
  233. firstIcon2
  234. </isNotNull>
  235. <isNotNull prepend="," property="secondate" >
  236. seconDate
  237. </isNotNull>
  238. <isNotNull prepend="," property="secontemp" >
  239. seconTemp
  240. </isNotNull>
  241. <isNotNull prepend="," property="seconwind" >
  242. seconWind
  243. </isNotNull>
  244. <isNotNull prepend="," property="seconicon1" >
  245. seconIcon1
  246. </isNotNull>
  247. <isNotNull prepend="," property="seconicon2" >
  248. seconIcon2
  249. </isNotNull>
  250. <isNotNull prepend="," property="thirddate" >
  251. thirdDate
  252. </isNotNull>
  253. <isNotNull prepend="," property="thirdtemp" >
  254. thirdTemp
  255. </isNotNull>
  256. <isNotNull prepend="," property="thirdwind" >
  257. thirdWind
  258. </isNotNull>
  259. <isNotNull prepend="," property="thirdicon1" >
  260. thirdIcon1
  261. </isNotNull>
  262. <isNotNull prepend="," property="thirdicon2" >
  263. thirdIcon2
  264. </isNotNull>
  265. <isNotNull prepend="," property="fourthdate" >
  266. fourthDate
  267. </isNotNull>
  268. <isNotNull prepend="," property="fourthtemp" >
  269. fourthTemp
  270. </isNotNull>
  271. <isNotNull prepend="," property="fourthwind" >
  272. fourthWind
  273. </isNotNull>
  274. <isNotNull prepend="," property="fourthicon1" >
  275. fourthIcon1
  276. </isNotNull>
  277. <isNotNull prepend="," property="fourthicon2" >
  278. fourthIcon2
  279. </isNotNull>
  280. <isNotNull prepend="," property="fifthdate" >
  281. fifthDate
  282. </isNotNull>
  283. <isNotNull prepend="," property="fifthtemp" >
  284. fifthTemp
  285. </isNotNull>
  286. <isNotNull prepend="," property="fifthwind" >
  287. fifthWind
  288. </isNotNull>
  289. <isNotNull prepend="," property="fifthicon1" >
  290. fifthIcon1
  291. </isNotNull>
  292. <isNotNull prepend="," property="fifthicon2" >
  293. fifthIcon2
  294. </isNotNull>
  295. <isNotNull prepend="," property="currzs" >
  296. currZs
  297. </isNotNull>
  298. )
  299. </dynamic>
  300. values
  301. <dynamic prepend="(" >
  302. <isNotNull prepend="," property="id" >
  303. #id:INTEGER#
  304. </isNotNull>
  305. <isNotNull prepend="," property="yhid" >
  306. #yhid:INTEGER#
  307. </isNotNull>
  308. <isNotNull prepend="," property="ip" >
  309. #ip:VARCHAR#
  310. </isNotNull>
  311. <isNotNull prepend="," property="savetime" >
  312. #savetime:TIMESTAMP#
  313. </isNotNull>
  314. <isNotNull prepend="," property="provcity" >
  315. #provcity:VARCHAR#
  316. </isNotNull>
  317. <isNotNull prepend="," property="cityname" >
  318. #cityname:VARCHAR#
  319. </isNotNull>
  320. <isNotNull prepend="," property="citycode" >
  321. #citycode:INTEGER#
  322. </isNotNull>
  323. <isNotNull prepend="," property="fbtime" >
  324. #fbtime:TIMESTAMP#
  325. </isNotNull>
  326. <isNotNull prepend="," property="currtemp" >
  327. #currtemp:VARCHAR#
  328. </isNotNull>
  329. <isNotNull prepend="," property="currwind" >
  330. #currwind:VARCHAR#
  331. </isNotNull>
  332. <isNotNull prepend="," property="currwet" >
  333. #currwet:VARCHAR#
  334. </isNotNull>
  335. <isNotNull prepend="," property="currair" >
  336. #currair:VARCHAR#
  337. </isNotNull>
  338. <isNotNull prepend="," property="currzwx" >
  339. #currzwx:VARCHAR#
  340. </isNotNull>
  341. <isNotNull prepend="," property="firstdate" >
  342. #firstdate:VARCHAR#
  343. </isNotNull>
  344. <isNotNull prepend="," property="firsttemp" >
  345. #firsttemp:VARCHAR#
  346. </isNotNull>
  347. <isNotNull prepend="," property="firstwind" >
  348. #firstwind:VARCHAR#
  349. </isNotNull>
  350. <isNotNull prepend="," property="firsticon1" >
  351. #firsticon1:VARCHAR#
  352. </isNotNull>
  353. <isNotNull prepend="," property="firsticon2" >
  354. #firsticon2:VARCHAR#
  355. </isNotNull>
  356. <isNotNull prepend="," property="secondate" >
  357. #secondate:VARCHAR#
  358. </isNotNull>
  359. <isNotNull prepend="," property="secontemp" >
  360. #secontemp:VARCHAR#
  361. </isNotNull>
  362. <isNotNull prepend="," property="seconwind" >
  363. #seconwind:VARCHAR#
  364. </isNotNull>
  365. <isNotNull prepend="," property="seconicon1" >
  366. #seconicon1:VARCHAR#
  367. </isNotNull>
  368. <isNotNull prepend="," property="seconicon2" >
  369. #seconicon2:VARCHAR#
  370. </isNotNull>
  371. <isNotNull prepend="," property="thirddate" >
  372. #thirddate:VARCHAR#
  373. </isNotNull>
  374. <isNotNull prepend="," property="thirdtemp" >
  375. #thirdtemp:VARCHAR#
  376. </isNotNull>
  377. <isNotNull prepend="," property="thirdwind" >
  378. #thirdwind:VARCHAR#
  379. </isNotNull>
  380. <isNotNull prepend="," property="thirdicon1" >
  381. #thirdicon1:VARCHAR#
  382. </isNotNull>
  383. <isNotNull prepend="," property="thirdicon2" >
  384. #thirdicon2:VARCHAR#
  385. </isNotNull>
  386. <isNotNull prepend="," property="fourthdate" >
  387. #fourthdate:VARCHAR#
  388. </isNotNull>
  389. <isNotNull prepend="," property="fourthtemp" >
  390. #fourthtemp:VARCHAR#
  391. </isNotNull>
  392. <isNotNull prepend="," property="fourthwind" >
  393. #fourthwind:VARCHAR#
  394. </isNotNull>
  395. <isNotNull prepend="," property="fourthicon1" >
  396. #fourthicon1:VARCHAR#
  397. </isNotNull>
  398. <isNotNull prepend="," property="fourthicon2" >
  399. #fourthicon2:VARCHAR#
  400. </isNotNull>
  401. <isNotNull prepend="," property="fifthdate" >
  402. #fifthdate:VARCHAR#
  403. </isNotNull>
  404. <isNotNull prepend="," property="fifthtemp" >
  405. #fifthtemp:VARCHAR#
  406. </isNotNull>
  407. <isNotNull prepend="," property="fifthwind" >
  408. #fifthwind:VARCHAR#
  409. </isNotNull>
  410. <isNotNull prepend="," property="fifthicon1" >
  411. #fifthicon1:VARCHAR#
  412. </isNotNull>
  413. <isNotNull prepend="," property="fifthicon2" >
  414. #fifthicon2:VARCHAR#
  415. </isNotNull>
  416. <isNotNull prepend="," property="currzs" >
  417. #currzs:LONGVARCHAR#
  418. </isNotNull>
  419. )
  420. </dynamic>
  421. </insert>
  422. <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.sj.dataobject.SjWeatherDataExample" resultClass="java.lang.Integer" >
  423. <!--
  424. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  425. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  426. -->
  427. select count(*) from sj_weatherdata
  428. <include refid="sj_weatherdata.ibatorgenerated_Example_Where_Clause" />
  429. </select>
  430. <update id="ibatorgenerated_updateByExampleSelective" >
  431. <!--
  432. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  433. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  434. -->
  435. update sj_weatherdata
  436. <dynamic prepend="set" >
  437. <isNotNull prepend="," property="record.id" >
  438. ID = #record.id:INTEGER#
  439. </isNotNull>
  440. <isNotNull prepend="," property="record.yhid" >
  441. YHID = #record.yhid:INTEGER#
  442. </isNotNull>
  443. <isNotNull prepend="," property="record.ip" >
  444. IP = #record.ip:VARCHAR#
  445. </isNotNull>
  446. <isNotNull prepend="," property="record.savetime" >
  447. savetime = #record.savetime:TIMESTAMP#
  448. </isNotNull>
  449. <isNotNull prepend="," property="record.provcity" >
  450. provCity = #record.provcity:VARCHAR#
  451. </isNotNull>
  452. <isNotNull prepend="," property="record.cityname" >
  453. cityName = #record.cityname:VARCHAR#
  454. </isNotNull>
  455. <isNotNull prepend="," property="record.citycode" >
  456. cityCode = #record.citycode:INTEGER#
  457. </isNotNull>
  458. <isNotNull prepend="," property="record.fbtime" >
  459. fbTime = #record.fbtime:TIMESTAMP#
  460. </isNotNull>
  461. <isNotNull prepend="," property="record.currtemp" >
  462. currTemp = #record.currtemp:VARCHAR#
  463. </isNotNull>
  464. <isNotNull prepend="," property="record.currwind" >
  465. currWind = #record.currwind:VARCHAR#
  466. </isNotNull>
  467. <isNotNull prepend="," property="record.currwet" >
  468. currWet = #record.currwet:VARCHAR#
  469. </isNotNull>
  470. <isNotNull prepend="," property="record.currair" >
  471. currAir = #record.currair:VARCHAR#
  472. </isNotNull>
  473. <isNotNull prepend="," property="record.currzwx" >
  474. currZwx = #record.currzwx:VARCHAR#
  475. </isNotNull>
  476. <isNotNull prepend="," property="record.firstdate" >
  477. firstDate = #record.firstdate:VARCHAR#
  478. </isNotNull>
  479. <isNotNull prepend="," property="record.firsttemp" >
  480. firstTemp = #record.firsttemp:VARCHAR#
  481. </isNotNull>
  482. <isNotNull prepend="," property="record.firstwind" >
  483. firstWind = #record.firstwind:VARCHAR#
  484. </isNotNull>
  485. <isNotNull prepend="," property="record.firsticon1" >
  486. firstIcon1 = #record.firsticon1:VARCHAR#
  487. </isNotNull>
  488. <isNotNull prepend="," property="record.firsticon2" >
  489. firstIcon2 = #record.firsticon2:VARCHAR#
  490. </isNotNull>
  491. <isNotNull prepend="," property="record.secondate" >
  492. seconDate = #record.secondate:VARCHAR#
  493. </isNotNull>
  494. <isNotNull prepend="," property="record.secontemp" >
  495. seconTemp = #record.secontemp:VARCHAR#
  496. </isNotNull>
  497. <isNotNull prepend="," property="record.seconwind" >
  498. seconWind = #record.seconwind:VARCHAR#
  499. </isNotNull>
  500. <isNotNull prepend="," property="record.seconicon1" >
  501. seconIcon1 = #record.seconicon1:VARCHAR#
  502. </isNotNull>
  503. <isNotNull prepend="," property="record.seconicon2" >
  504. seconIcon2 = #record.seconicon2:VARCHAR#
  505. </isNotNull>
  506. <isNotNull prepend="," property="record.thirddate" >
  507. thirdDate = #record.thirddate:VARCHAR#
  508. </isNotNull>
  509. <isNotNull prepend="," property="record.thirdtemp" >
  510. thirdTemp = #record.thirdtemp:VARCHAR#
  511. </isNotNull>
  512. <isNotNull prepend="," property="record.thirdwind" >
  513. thirdWind = #record.thirdwind:VARCHAR#
  514. </isNotNull>
  515. <isNotNull prepend="," property="record.thirdicon1" >
  516. thirdIcon1 = #record.thirdicon1:VARCHAR#
  517. </isNotNull>
  518. <isNotNull prepend="," property="record.thirdicon2" >
  519. thirdIcon2 = #record.thirdicon2:VARCHAR#
  520. </isNotNull>
  521. <isNotNull prepend="," property="record.fourthdate" >
  522. fourthDate = #record.fourthdate:VARCHAR#
  523. </isNotNull>
  524. <isNotNull prepend="," property="record.fourthtemp" >
  525. fourthTemp = #record.fourthtemp:VARCHAR#
  526. </isNotNull>
  527. <isNotNull prepend="," property="record.fourthwind" >
  528. fourthWind = #record.fourthwind:VARCHAR#
  529. </isNotNull>
  530. <isNotNull prepend="," property="record.fourthicon1" >
  531. fourthIcon1 = #record.fourthicon1:VARCHAR#
  532. </isNotNull>
  533. <isNotNull prepend="," property="record.fourthicon2" >
  534. fourthIcon2 = #record.fourthicon2:VARCHAR#
  535. </isNotNull>
  536. <isNotNull prepend="," property="record.fifthdate" >
  537. fifthDate = #record.fifthdate:VARCHAR#
  538. </isNotNull>
  539. <isNotNull prepend="," property="record.fifthtemp" >
  540. fifthTemp = #record.fifthtemp:VARCHAR#
  541. </isNotNull>
  542. <isNotNull prepend="," property="record.fifthwind" >
  543. fifthWind = #record.fifthwind:VARCHAR#
  544. </isNotNull>
  545. <isNotNull prepend="," property="record.fifthicon1" >
  546. fifthIcon1 = #record.fifthicon1:VARCHAR#
  547. </isNotNull>
  548. <isNotNull prepend="," property="record.fifthicon2" >
  549. fifthIcon2 = #record.fifthicon2:VARCHAR#
  550. </isNotNull>
  551. <isNotNull prepend="," property="record.currzs" >
  552. currZs = #record.currzs:LONGVARCHAR#
  553. </isNotNull>
  554. </dynamic>
  555. <isParameterPresent >
  556. <include refid="sj_weatherdata.ibatorgenerated_Example_Where_Clause" />
  557. </isParameterPresent>
  558. </update>
  559. <update id="ibatorgenerated_updateByExampleWithBLOBs" >
  560. <!--
  561. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  562. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  563. -->
  564. update sj_weatherdata
  565. set ID = #record.id:INTEGER#,
  566. YHID = #record.yhid:INTEGER#,
  567. IP = #record.ip:VARCHAR#,
  568. savetime = #record.savetime:TIMESTAMP#,
  569. provCity = #record.provcity:VARCHAR#,
  570. cityName = #record.cityname:VARCHAR#,
  571. cityCode = #record.citycode:INTEGER#,
  572. fbTime = #record.fbtime:TIMESTAMP#,
  573. currTemp = #record.currtemp:VARCHAR#,
  574. currWind = #record.currwind:VARCHAR#,
  575. currWet = #record.currwet:VARCHAR#,
  576. currAir = #record.currair:VARCHAR#,
  577. currZwx = #record.currzwx:VARCHAR#,
  578. firstDate = #record.firstdate:VARCHAR#,
  579. firstTemp = #record.firsttemp:VARCHAR#,
  580. firstWind = #record.firstwind:VARCHAR#,
  581. firstIcon1 = #record.firsticon1:VARCHAR#,
  582. firstIcon2 = #record.firsticon2:VARCHAR#,
  583. seconDate = #record.secondate:VARCHAR#,
  584. seconTemp = #record.secontemp:VARCHAR#,
  585. seconWind = #record.seconwind:VARCHAR#,
  586. seconIcon1 = #record.seconicon1:VARCHAR#,
  587. seconIcon2 = #record.seconicon2:VARCHAR#,
  588. thirdDate = #record.thirddate:VARCHAR#,
  589. thirdTemp = #record.thirdtemp:VARCHAR#,
  590. thirdWind = #record.thirdwind:VARCHAR#,
  591. thirdIcon1 = #record.thirdicon1:VARCHAR#,
  592. thirdIcon2 = #record.thirdicon2:VARCHAR#,
  593. fourthDate = #record.fourthdate:VARCHAR#,
  594. fourthTemp = #record.fourthtemp:VARCHAR#,
  595. fourthWind = #record.fourthwind:VARCHAR#,
  596. fourthIcon1 = #record.fourthicon1:VARCHAR#,
  597. fourthIcon2 = #record.fourthicon2:VARCHAR#,
  598. fifthDate = #record.fifthdate:VARCHAR#,
  599. fifthTemp = #record.fifthtemp:VARCHAR#,
  600. fifthWind = #record.fifthwind:VARCHAR#,
  601. fifthIcon1 = #record.fifthicon1:VARCHAR#,
  602. fifthIcon2 = #record.fifthicon2:VARCHAR#,
  603. currZs = #record.currzs:LONGVARCHAR#
  604. <isParameterPresent >
  605. <include refid="sj_weatherdata.ibatorgenerated_Example_Where_Clause" />
  606. </isParameterPresent>
  607. </update>
  608. <update id="ibatorgenerated_updateByExample" >
  609. <!--
  610. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  611. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  612. -->
  613. update sj_weatherdata
  614. set ID = #record.id:INTEGER#,
  615. YHID = #record.yhid:INTEGER#,
  616. IP = #record.ip:VARCHAR#,
  617. savetime = #record.savetime:TIMESTAMP#,
  618. provCity = #record.provcity:VARCHAR#,
  619. cityName = #record.cityname:VARCHAR#,
  620. cityCode = #record.citycode:INTEGER#,
  621. fbTime = #record.fbtime:TIMESTAMP#,
  622. currTemp = #record.currtemp:VARCHAR#,
  623. currWind = #record.currwind:VARCHAR#,
  624. currWet = #record.currwet:VARCHAR#,
  625. currAir = #record.currair:VARCHAR#,
  626. currZwx = #record.currzwx:VARCHAR#,
  627. firstDate = #record.firstdate:VARCHAR#,
  628. firstTemp = #record.firsttemp:VARCHAR#,
  629. firstWind = #record.firstwind:VARCHAR#,
  630. firstIcon1 = #record.firsticon1:VARCHAR#,
  631. firstIcon2 = #record.firsticon2:VARCHAR#,
  632. seconDate = #record.secondate:VARCHAR#,
  633. seconTemp = #record.secontemp:VARCHAR#,
  634. seconWind = #record.seconwind:VARCHAR#,
  635. seconIcon1 = #record.seconicon1:VARCHAR#,
  636. seconIcon2 = #record.seconicon2:VARCHAR#,
  637. thirdDate = #record.thirddate:VARCHAR#,
  638. thirdTemp = #record.thirdtemp:VARCHAR#,
  639. thirdWind = #record.thirdwind:VARCHAR#,
  640. thirdIcon1 = #record.thirdicon1:VARCHAR#,
  641. thirdIcon2 = #record.thirdicon2:VARCHAR#,
  642. fourthDate = #record.fourthdate:VARCHAR#,
  643. fourthTemp = #record.fourthtemp:VARCHAR#,
  644. fourthWind = #record.fourthwind:VARCHAR#,
  645. fourthIcon1 = #record.fourthicon1:VARCHAR#,
  646. fourthIcon2 = #record.fourthicon2:VARCHAR#,
  647. fifthDate = #record.fifthdate:VARCHAR#,
  648. fifthTemp = #record.fifthtemp:VARCHAR#,
  649. fifthWind = #record.fifthwind:VARCHAR#,
  650. fifthIcon1 = #record.fifthicon1:VARCHAR#,
  651. fifthIcon2 = #record.fifthicon2:VARCHAR#
  652. <isParameterPresent >
  653. <include refid="sj_weatherdata.ibatorgenerated_Example_Where_Clause" />
  654. </isParameterPresent>
  655. </update>
  656. <update id="ibatorgenerated_updateByPrimaryKeySelective" parameterClass="com.huimv.sj.dataobject.SjWeatherData" >
  657. <!--
  658. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  659. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  660. -->
  661. update sj_weatherdata
  662. <dynamic prepend="set" >
  663. <isNotNull prepend="," property="yhid" >
  664. YHID = #yhid:INTEGER#
  665. </isNotNull>
  666. <isNotNull prepend="," property="ip" >
  667. IP = #ip:VARCHAR#
  668. </isNotNull>
  669. <isNotNull prepend="," property="savetime" >
  670. savetime = #savetime:TIMESTAMP#
  671. </isNotNull>
  672. <isNotNull prepend="," property="provcity" >
  673. provCity = #provcity:VARCHAR#
  674. </isNotNull>
  675. <isNotNull prepend="," property="cityname" >
  676. cityName = #cityname:VARCHAR#
  677. </isNotNull>
  678. <isNotNull prepend="," property="citycode" >
  679. cityCode = #citycode:INTEGER#
  680. </isNotNull>
  681. <isNotNull prepend="," property="fbtime" >
  682. fbTime = #fbtime:TIMESTAMP#
  683. </isNotNull>
  684. <isNotNull prepend="," property="currtemp" >
  685. currTemp = #currtemp:VARCHAR#
  686. </isNotNull>
  687. <isNotNull prepend="," property="currwind" >
  688. currWind = #currwind:VARCHAR#
  689. </isNotNull>
  690. <isNotNull prepend="," property="currwet" >
  691. currWet = #currwet:VARCHAR#
  692. </isNotNull>
  693. <isNotNull prepend="," property="currair" >
  694. currAir = #currair:VARCHAR#
  695. </isNotNull>
  696. <isNotNull prepend="," property="currzwx" >
  697. currZwx = #currzwx:VARCHAR#
  698. </isNotNull>
  699. <isNotNull prepend="," property="firstdate" >
  700. firstDate = #firstdate:VARCHAR#
  701. </isNotNull>
  702. <isNotNull prepend="," property="firsttemp" >
  703. firstTemp = #firsttemp:VARCHAR#
  704. </isNotNull>
  705. <isNotNull prepend="," property="firstwind" >
  706. firstWind = #firstwind:VARCHAR#
  707. </isNotNull>
  708. <isNotNull prepend="," property="firsticon1" >
  709. firstIcon1 = #firsticon1:VARCHAR#
  710. </isNotNull>
  711. <isNotNull prepend="," property="firsticon2" >
  712. firstIcon2 = #firsticon2:VARCHAR#
  713. </isNotNull>
  714. <isNotNull prepend="," property="secondate" >
  715. seconDate = #secondate:VARCHAR#
  716. </isNotNull>
  717. <isNotNull prepend="," property="secontemp" >
  718. seconTemp = #secontemp:VARCHAR#
  719. </isNotNull>
  720. <isNotNull prepend="," property="seconwind" >
  721. seconWind = #seconwind:VARCHAR#
  722. </isNotNull>
  723. <isNotNull prepend="," property="seconicon1" >
  724. seconIcon1 = #seconicon1:VARCHAR#
  725. </isNotNull>
  726. <isNotNull prepend="," property="seconicon2" >
  727. seconIcon2 = #seconicon2:VARCHAR#
  728. </isNotNull>
  729. <isNotNull prepend="," property="thirddate" >
  730. thirdDate = #thirddate:VARCHAR#
  731. </isNotNull>
  732. <isNotNull prepend="," property="thirdtemp" >
  733. thirdTemp = #thirdtemp:VARCHAR#
  734. </isNotNull>
  735. <isNotNull prepend="," property="thirdwind" >
  736. thirdWind = #thirdwind:VARCHAR#
  737. </isNotNull>
  738. <isNotNull prepend="," property="thirdicon1" >
  739. thirdIcon1 = #thirdicon1:VARCHAR#
  740. </isNotNull>
  741. <isNotNull prepend="," property="thirdicon2" >
  742. thirdIcon2 = #thirdicon2:VARCHAR#
  743. </isNotNull>
  744. <isNotNull prepend="," property="fourthdate" >
  745. fourthDate = #fourthdate:VARCHAR#
  746. </isNotNull>
  747. <isNotNull prepend="," property="fourthtemp" >
  748. fourthTemp = #fourthtemp:VARCHAR#
  749. </isNotNull>
  750. <isNotNull prepend="," property="fourthwind" >
  751. fourthWind = #fourthwind:VARCHAR#
  752. </isNotNull>
  753. <isNotNull prepend="," property="fourthicon1" >
  754. fourthIcon1 = #fourthicon1:VARCHAR#
  755. </isNotNull>
  756. <isNotNull prepend="," property="fourthicon2" >
  757. fourthIcon2 = #fourthicon2:VARCHAR#
  758. </isNotNull>
  759. <isNotNull prepend="," property="fifthdate" >
  760. fifthDate = #fifthdate:VARCHAR#
  761. </isNotNull>
  762. <isNotNull prepend="," property="fifthtemp" >
  763. fifthTemp = #fifthtemp:VARCHAR#
  764. </isNotNull>
  765. <isNotNull prepend="," property="fifthwind" >
  766. fifthWind = #fifthwind:VARCHAR#
  767. </isNotNull>
  768. <isNotNull prepend="," property="fifthicon1" >
  769. fifthIcon1 = #fifthicon1:VARCHAR#
  770. </isNotNull>
  771. <isNotNull prepend="," property="fifthicon2" >
  772. fifthIcon2 = #fifthicon2:VARCHAR#
  773. </isNotNull>
  774. <isNotNull prepend="," property="currzs" >
  775. currZs = #currzs:LONGVARCHAR#
  776. </isNotNull>
  777. </dynamic>
  778. where ID = #id:INTEGER#
  779. </update>
  780. <update id="ibatorgenerated_updateByPrimaryKeyWithBLOBs" parameterClass="com.huimv.sj.dataobject.SjWeatherData" >
  781. <!--
  782. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  783. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  784. -->
  785. update sj_weatherdata
  786. set YHID = #yhid:INTEGER#,
  787. IP = #ip:VARCHAR#,
  788. savetime = #savetime:TIMESTAMP#,
  789. provCity = #provcity:VARCHAR#,
  790. cityName = #cityname:VARCHAR#,
  791. cityCode = #citycode:INTEGER#,
  792. fbTime = #fbtime:TIMESTAMP#,
  793. currTemp = #currtemp:VARCHAR#,
  794. currWind = #currwind:VARCHAR#,
  795. currWet = #currwet:VARCHAR#,
  796. currAir = #currair:VARCHAR#,
  797. currZwx = #currzwx:VARCHAR#,
  798. firstDate = #firstdate:VARCHAR#,
  799. firstTemp = #firsttemp:VARCHAR#,
  800. firstWind = #firstwind:VARCHAR#,
  801. firstIcon1 = #firsticon1:VARCHAR#,
  802. firstIcon2 = #firsticon2:VARCHAR#,
  803. seconDate = #secondate:VARCHAR#,
  804. seconTemp = #secontemp:VARCHAR#,
  805. seconWind = #seconwind:VARCHAR#,
  806. seconIcon1 = #seconicon1:VARCHAR#,
  807. seconIcon2 = #seconicon2:VARCHAR#,
  808. thirdDate = #thirddate:VARCHAR#,
  809. thirdTemp = #thirdtemp:VARCHAR#,
  810. thirdWind = #thirdwind:VARCHAR#,
  811. thirdIcon1 = #thirdicon1:VARCHAR#,
  812. thirdIcon2 = #thirdicon2:VARCHAR#,
  813. fourthDate = #fourthdate:VARCHAR#,
  814. fourthTemp = #fourthtemp:VARCHAR#,
  815. fourthWind = #fourthwind:VARCHAR#,
  816. fourthIcon1 = #fourthicon1:VARCHAR#,
  817. fourthIcon2 = #fourthicon2:VARCHAR#,
  818. fifthDate = #fifthdate:VARCHAR#,
  819. fifthTemp = #fifthtemp:VARCHAR#,
  820. fifthWind = #fifthwind:VARCHAR#,
  821. fifthIcon1 = #fifthicon1:VARCHAR#,
  822. fifthIcon2 = #fifthicon2:VARCHAR#,
  823. currZs = #currzs:LONGVARCHAR#
  824. where ID = #id:INTEGER#
  825. </update>
  826. <update id="ibatorgenerated_updateByPrimaryKey" parameterClass="com.huimv.sj.dataobject.SjWeatherData" >
  827. <!--
  828. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  829. This element was generated on Thu Jan 22 15:06:33 CST 2015.
  830. -->
  831. update sj_weatherdata
  832. set YHID = #yhid:INTEGER#,
  833. IP = #ip:VARCHAR#,
  834. savetime = #savetime:TIMESTAMP#,
  835. provCity = #provcity:VARCHAR#,
  836. cityName = #cityname:VARCHAR#,
  837. cityCode = #citycode:INTEGER#,
  838. fbTime = #fbtime:TIMESTAMP#,
  839. currTemp = #currtemp:VARCHAR#,
  840. currWind = #currwind:VARCHAR#,
  841. currWet = #currwet:VARCHAR#,
  842. currAir = #currair:VARCHAR#,
  843. currZwx = #currzwx:VARCHAR#,
  844. firstDate = #firstdate:VARCHAR#,
  845. firstTemp = #firsttemp:VARCHAR#,
  846. firstWind = #firstwind:VARCHAR#,
  847. firstIcon1 = #firsticon1:VARCHAR#,
  848. firstIcon2 = #firsticon2:VARCHAR#,
  849. seconDate = #secondate:VARCHAR#,
  850. seconTemp = #secontemp:VARCHAR#,
  851. seconWind = #seconwind:VARCHAR#,
  852. seconIcon1 = #seconicon1:VARCHAR#,
  853. seconIcon2 = #seconicon2:VARCHAR#,
  854. thirdDate = #thirddate:VARCHAR#,
  855. thirdTemp = #thirdtemp:VARCHAR#,
  856. thirdWind = #thirdwind:VARCHAR#,
  857. thirdIcon1 = #thirdicon1:VARCHAR#,
  858. thirdIcon2 = #thirdicon2:VARCHAR#,
  859. fourthDate = #fourthdate:VARCHAR#,
  860. fourthTemp = #fourthtemp:VARCHAR#,
  861. fourthWind = #fourthwind:VARCHAR#,
  862. fourthIcon1 = #fourthicon1:VARCHAR#,
  863. fourthIcon2 = #fourthicon2:VARCHAR#,
  864. fifthDate = #fifthdate:VARCHAR#,
  865. fifthTemp = #fifthtemp:VARCHAR#,
  866. fifthWind = #fifthwind:VARCHAR#,
  867. fifthIcon1 = #fifthicon1:VARCHAR#,
  868. fifthIcon2 = #fifthicon2:VARCHAR#
  869. where ID = #id:INTEGER#
  870. </update>
  871. </sqlMap>