TVentilationMapper.xml 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  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="com.chinaitop.depot.intelligent.ventilation.mapper.TVentilationMapper" >
  4. <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  9. -->
  10. <id column="id" property="id" jdbcType="VARCHAR" />
  11. <result column="org_id" property="orgId" jdbcType="VARCHAR" />
  12. <result column="v_cf_code" property="vCfCode" jdbcType="VARCHAR" />
  13. <result column="operation_id" property="operationId" jdbcType="VARCHAR" />
  14. <result column="v_dev_name" property="vDevName" jdbcType="VARCHAR" />
  15. <result column="v_device_code" property="vDeviceCode" jdbcType="VARCHAR" />
  16. <result column="v_pattern" property="vPattern" jdbcType="VARCHAR" />
  17. <result column="v_start_time" property="vStartTime" jdbcType="TIMESTAMP" />
  18. <result column="v_end_time" property="vEndTime" jdbcType="TIMESTAMP" />
  19. <result column="v_distinguish_state" property="vDistinguishState" jdbcType="INTEGER" />
  20. <result column="v_state" property="vState" jdbcType="INTEGER" />
  21. <result column="v_update_person" property="vUpdatePerson" jdbcType="VARCHAR" />
  22. <result column="data_source" property="dataSource" jdbcType="VARCHAR" />
  23. <result column="v_update_time" property="vUpdateTime" jdbcType="TIMESTAMP" />
  24. <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
  25. <result column="zhdl" property="zhdl" jdbcType="VARCHAR" />
  26. <result column="zydyjdqw" property="zydyjdqw" jdbcType="VARCHAR" />
  27. <result column="zydyjdpjqs" property="zydyjdpjqs" jdbcType="VARCHAR" />
  28. <result column="zydyjdtfqpjlw" property="zydyjdtfqpjlw" jdbcType="VARCHAR" />
  29. <result column="zydyjdzysc" property="zydyjdzysc" jdbcType="VARCHAR" />
  30. <result column="zydejdqw" property="zydejdqw" jdbcType="VARCHAR" />
  31. <result column="zydejdpjqs" property="zydejdpjqs" jdbcType="VARCHAR" />
  32. <result column="zydejdtfqpjlw" property="zydejdtfqpjlw" jdbcType="VARCHAR" />
  33. <result column="zydejdzysc" property="zydejdzysc" jdbcType="VARCHAR" />
  34. <result column="zydsjdqw" property="zydsjdqw" jdbcType="VARCHAR" />
  35. <result column="zydsjdpjqs" property="zydsjdpjqs" jdbcType="VARCHAR" />
  36. <result column="zydsjdtfqpjlw" property="zydsjdtfqpjlw" jdbcType="VARCHAR" />
  37. <result column="zydsjdzysc" property="zydsjdzysc" jdbcType="VARCHAR" />
  38. <result column="zydsijdqw" property="zydsijdqw" jdbcType="VARCHAR" />
  39. <result column="zydsijdpjqs" property="zydsijdpjqs" jdbcType="VARCHAR" />
  40. <result column="zydsijdtfqpjlw" property="zydsijdtfqpjlw" jdbcType="VARCHAR" />
  41. <result column="zydsijdzysc" property="zydsijdzysc" jdbcType="VARCHAR" />
  42. <result column="zyqpjlw" property="zyqpjlw" jdbcType="VARCHAR" />
  43. <result column="jshpjlw" property="jshpjlw" jdbcType="VARCHAR" />
  44. <result column="jwfd" property="jwfd" jdbcType="VARCHAR" />
  45. <result column="dljwnh" property="dljwnh" jdbcType="VARCHAR" />
  46. <result column="sslssl" property="sslssl" jdbcType="VARCHAR" />
  47. <result column="bsxgpjjg" property="bsxgpjjg" jdbcType="VARCHAR" />
  48. <result column="tfjwjyxpjzc" property="tfjwjyxpjzc" jdbcType="VARCHAR" />
  49. <result column="tfjwjyxpjsc" property="tfjwjyxpjsc" jdbcType="VARCHAR" />
  50. <result column="tfjwjyxpjzjc" property="tfjwjyxpjzjc" jdbcType="VARCHAR" />
  51. <result column="tfjwjyxpjxc" property="tfjwjyxpjxc" jdbcType="VARCHAR" />
  52. <result column="zyqpjsf" property="zyqpjsf" jdbcType="VARCHAR" />
  53. <result column="zyhpjsf" property="zyhpjsf" jdbcType="VARCHAR" />
  54. <result column="jsfd" property="jsfd" jdbcType="VARCHAR" />
  55. <result column="dljsnh" property="dljsnh" jdbcType="VARCHAR" />
  56. <result column="tfjsjyxfxzc" property="tfjsjyxfxzc" jdbcType="VARCHAR" />
  57. <result column="tfjsjyxfxsc" property="tfjsjyxfxsc" jdbcType="VARCHAR" />
  58. <result column="tfjsjyxfxzjc" property="tfjsjyxfxzjc" jdbcType="VARCHAR" />
  59. <result column="tfjsjyxfxxc" property="tfjsjyxfxxc" jdbcType="VARCHAR" />
  60. </resultMap>
  61. <sql id="Example_Where_Clause" >
  62. <!--
  63. WARNING - @mbggenerated
  64. This element is automatically generated by MyBatis Generator, do not modify.
  65. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  66. -->
  67. <where >
  68. <foreach collection="oredCriteria" item="criteria" separator="or" >
  69. <if test="criteria.valid" >
  70. <trim prefix="(" suffix=")" prefixOverrides="and" >
  71. <foreach collection="criteria.criteria" item="criterion" >
  72. <choose >
  73. <when test="criterion.noValue" >
  74. and ${criterion.condition}
  75. </when>
  76. <when test="criterion.singleValue" >
  77. and ${criterion.condition} #{criterion.value}
  78. </when>
  79. <when test="criterion.betweenValue" >
  80. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  81. </when>
  82. <when test="criterion.listValue" >
  83. and ${criterion.condition}
  84. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  85. #{listItem}
  86. </foreach>
  87. </when>
  88. </choose>
  89. </foreach>
  90. </trim>
  91. </if>
  92. </foreach>
  93. </where>
  94. </sql>
  95. <sql id="Update_By_Example_Where_Clause" >
  96. <!--
  97. WARNING - @mbggenerated
  98. This element is automatically generated by MyBatis Generator, do not modify.
  99. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  100. -->
  101. <where >
  102. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  103. <if test="criteria.valid" >
  104. <trim prefix="(" suffix=")" prefixOverrides="and" >
  105. <foreach collection="criteria.criteria" item="criterion" >
  106. <choose >
  107. <when test="criterion.noValue" >
  108. and ${criterion.condition}
  109. </when>
  110. <when test="criterion.singleValue" >
  111. and ${criterion.condition} #{criterion.value}
  112. </when>
  113. <when test="criterion.betweenValue" >
  114. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  115. </when>
  116. <when test="criterion.listValue" >
  117. and ${criterion.condition}
  118. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  119. #{listItem}
  120. </foreach>
  121. </when>
  122. </choose>
  123. </foreach>
  124. </trim>
  125. </if>
  126. </foreach>
  127. </where>
  128. </sql>
  129. <sql id="Base_Column_List" >
  130. <!--
  131. WARNING - @mbggenerated
  132. This element is automatically generated by MyBatis Generator, do not modify.
  133. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  134. -->
  135. id, org_id, v_cf_code, operation_id, v_dev_name, v_device_code, v_pattern, v_start_time,
  136. v_end_time, v_distinguish_state, v_state, v_update_person, data_source, v_update_time,
  137. updatetime, zhdl, zydyjdqw, zydyjdpjqs, zydyjdtfqpjlw, zydyjdzysc, zydejdqw, zydejdpjqs,
  138. zydejdtfqpjlw, zydejdzysc, zydsjdqw, zydsjdpjqs, zydsjdtfqpjlw, zydsjdzysc, zydsijdqw,
  139. zydsijdpjqs, zydsijdtfqpjlw, zydsijdzysc, zyqpjlw, jshpjlw, jwfd, dljwnh, sslssl, bsxgpjjg,
  140. tfjwjyxpjzc, tfjwjyxpjsc, tfjwjyxpjzjc, tfjwjyxpjxc, zyqpjsf, zyhpjsf, jsfd, dljsnh,
  141. tfjsjyxfxzc, tfjsjyxfxsc, tfjsjyxfxzjc, tfjsjyxfxxc
  142. </sql>
  143. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilationExample" >
  144. <!--
  145. WARNING - @mbggenerated
  146. This element is automatically generated by MyBatis Generator, do not modify.
  147. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  148. -->
  149. select
  150. <if test="distinct" >
  151. distinct
  152. </if>
  153. <include refid="Base_Column_List" />
  154. from t_ventilation
  155. <if test="_parameter != null" >
  156. <include refid="Example_Where_Clause" />
  157. </if>
  158. <if test="orderByClause != null" >
  159. order by ${orderByClause}
  160. </if>
  161. </select>
  162. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  163. <!--
  164. WARNING - @mbggenerated
  165. This element is automatically generated by MyBatis Generator, do not modify.
  166. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  167. -->
  168. select
  169. <include refid="Base_Column_List" />
  170. from t_ventilation
  171. where id = #{id,jdbcType=VARCHAR}
  172. </select>
  173. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  174. <!--
  175. WARNING - @mbggenerated
  176. This element is automatically generated by MyBatis Generator, do not modify.
  177. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  178. -->
  179. delete from t_ventilation
  180. where id = #{id,jdbcType=VARCHAR}
  181. </delete>
  182. <delete id="deleteByExample" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilationExample" >
  183. <!--
  184. WARNING - @mbggenerated
  185. This element is automatically generated by MyBatis Generator, do not modify.
  186. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  187. -->
  188. delete from t_ventilation
  189. <if test="_parameter != null" >
  190. <include refid="Example_Where_Clause" />
  191. </if>
  192. </delete>
  193. <insert id="insert" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
  194. <!--
  195. WARNING - @mbggenerated
  196. This element is automatically generated by MyBatis Generator, do not modify.
  197. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  198. -->
  199. insert into t_ventilation (id, org_id, v_cf_code,
  200. operation_id, v_dev_name, v_device_code,
  201. v_pattern, v_start_time, v_end_time,
  202. v_distinguish_state, v_state, v_update_person,
  203. data_source, v_update_time, updatetime,
  204. zhdl, zydyjdqw, zydyjdpjqs,
  205. zydyjdtfqpjlw, zydyjdzysc, zydejdqw,
  206. zydejdpjqs, zydejdtfqpjlw, zydejdzysc,
  207. zydsjdqw, zydsjdpjqs, zydsjdtfqpjlw,
  208. zydsjdzysc, zydsijdqw, zydsijdpjqs,
  209. zydsijdtfqpjlw, zydsijdzysc, zyqpjlw,
  210. jshpjlw, jwfd, dljwnh,
  211. sslssl, bsxgpjjg, tfjwjyxpjzc,
  212. tfjwjyxpjsc, tfjwjyxpjzjc, tfjwjyxpjxc,
  213. zyqpjsf, zyhpjsf, jsfd,
  214. dljsnh, tfjsjyxfxzc, tfjsjyxfxsc,
  215. tfjsjyxfxzjc, tfjsjyxfxxc)
  216. values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{vCfCode,jdbcType=VARCHAR},
  217. #{operationId,jdbcType=VARCHAR}, #{vDevName,jdbcType=VARCHAR}, #{vDeviceCode,jdbcType=VARCHAR},
  218. #{vPattern,jdbcType=VARCHAR}, #{vStartTime,jdbcType=TIMESTAMP}, #{vEndTime,jdbcType=TIMESTAMP},
  219. #{vDistinguishState,jdbcType=INTEGER}, #{vState,jdbcType=INTEGER}, #{vUpdatePerson,jdbcType=VARCHAR},
  220. #{dataSource,jdbcType=VARCHAR}, #{vUpdateTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP},
  221. #{zhdl,jdbcType=VARCHAR}, #{zydyjdqw,jdbcType=VARCHAR}, #{zydyjdpjqs,jdbcType=VARCHAR},
  222. #{zydyjdtfqpjlw,jdbcType=VARCHAR}, #{zydyjdzysc,jdbcType=VARCHAR}, #{zydejdqw,jdbcType=VARCHAR},
  223. #{zydejdpjqs,jdbcType=VARCHAR}, #{zydejdtfqpjlw,jdbcType=VARCHAR}, #{zydejdzysc,jdbcType=VARCHAR},
  224. #{zydsjdqw,jdbcType=VARCHAR}, #{zydsjdpjqs,jdbcType=VARCHAR}, #{zydsjdtfqpjlw,jdbcType=VARCHAR},
  225. #{zydsjdzysc,jdbcType=VARCHAR}, #{zydsijdqw,jdbcType=VARCHAR}, #{zydsijdpjqs,jdbcType=VARCHAR},
  226. #{zydsijdtfqpjlw,jdbcType=VARCHAR}, #{zydsijdzysc,jdbcType=VARCHAR}, #{zyqpjlw,jdbcType=VARCHAR},
  227. #{jshpjlw,jdbcType=VARCHAR}, #{jwfd,jdbcType=VARCHAR}, #{dljwnh,jdbcType=VARCHAR},
  228. #{sslssl,jdbcType=VARCHAR}, #{bsxgpjjg,jdbcType=VARCHAR}, #{tfjwjyxpjzc,jdbcType=VARCHAR},
  229. #{tfjwjyxpjsc,jdbcType=VARCHAR}, #{tfjwjyxpjzjc,jdbcType=VARCHAR}, #{tfjwjyxpjxc,jdbcType=VARCHAR},
  230. #{zyqpjsf,jdbcType=VARCHAR}, #{zyhpjsf,jdbcType=VARCHAR}, #{jsfd,jdbcType=VARCHAR},
  231. #{dljsnh,jdbcType=VARCHAR}, #{tfjsjyxfxzc,jdbcType=VARCHAR}, #{tfjsjyxfxsc,jdbcType=VARCHAR},
  232. #{tfjsjyxfxzjc,jdbcType=VARCHAR}, #{tfjsjyxfxxc,jdbcType=VARCHAR})
  233. </insert>
  234. <insert id="insertSelective" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
  235. <!--
  236. WARNING - @mbggenerated
  237. This element is automatically generated by MyBatis Generator, do not modify.
  238. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  239. -->
  240. insert into t_ventilation
  241. <trim prefix="(" suffix=")" suffixOverrides="," >
  242. <if test="id != null" >
  243. id,
  244. </if>
  245. <if test="orgId != null" >
  246. org_id,
  247. </if>
  248. <if test="vCfCode != null" >
  249. v_cf_code,
  250. </if>
  251. <if test="operationId != null" >
  252. operation_id,
  253. </if>
  254. <if test="vDevName != null" >
  255. v_dev_name,
  256. </if>
  257. <if test="vDeviceCode != null" >
  258. v_device_code,
  259. </if>
  260. <if test="vPattern != null" >
  261. v_pattern,
  262. </if>
  263. <if test="vStartTime != null" >
  264. v_start_time,
  265. </if>
  266. <if test="vEndTime != null" >
  267. v_end_time,
  268. </if>
  269. <if test="vDistinguishState != null" >
  270. v_distinguish_state,
  271. </if>
  272. <if test="vState != null" >
  273. v_state,
  274. </if>
  275. <if test="vUpdatePerson != null" >
  276. v_update_person,
  277. </if>
  278. <if test="dataSource != null" >
  279. data_source,
  280. </if>
  281. <if test="vUpdateTime != null" >
  282. v_update_time,
  283. </if>
  284. <if test="updatetime != null" >
  285. updatetime,
  286. </if>
  287. <if test="zhdl != null" >
  288. zhdl,
  289. </if>
  290. <if test="zydyjdqw != null" >
  291. zydyjdqw,
  292. </if>
  293. <if test="zydyjdpjqs != null" >
  294. zydyjdpjqs,
  295. </if>
  296. <if test="zydyjdtfqpjlw != null" >
  297. zydyjdtfqpjlw,
  298. </if>
  299. <if test="zydyjdzysc != null" >
  300. zydyjdzysc,
  301. </if>
  302. <if test="zydejdqw != null" >
  303. zydejdqw,
  304. </if>
  305. <if test="zydejdpjqs != null" >
  306. zydejdpjqs,
  307. </if>
  308. <if test="zydejdtfqpjlw != null" >
  309. zydejdtfqpjlw,
  310. </if>
  311. <if test="zydejdzysc != null" >
  312. zydejdzysc,
  313. </if>
  314. <if test="zydsjdqw != null" >
  315. zydsjdqw,
  316. </if>
  317. <if test="zydsjdpjqs != null" >
  318. zydsjdpjqs,
  319. </if>
  320. <if test="zydsjdtfqpjlw != null" >
  321. zydsjdtfqpjlw,
  322. </if>
  323. <if test="zydsjdzysc != null" >
  324. zydsjdzysc,
  325. </if>
  326. <if test="zydsijdqw != null" >
  327. zydsijdqw,
  328. </if>
  329. <if test="zydsijdpjqs != null" >
  330. zydsijdpjqs,
  331. </if>
  332. <if test="zydsijdtfqpjlw != null" >
  333. zydsijdtfqpjlw,
  334. </if>
  335. <if test="zydsijdzysc != null" >
  336. zydsijdzysc,
  337. </if>
  338. <if test="zyqpjlw != null" >
  339. zyqpjlw,
  340. </if>
  341. <if test="jshpjlw != null" >
  342. jshpjlw,
  343. </if>
  344. <if test="jwfd != null" >
  345. jwfd,
  346. </if>
  347. <if test="dljwnh != null" >
  348. dljwnh,
  349. </if>
  350. <if test="sslssl != null" >
  351. sslssl,
  352. </if>
  353. <if test="bsxgpjjg != null" >
  354. bsxgpjjg,
  355. </if>
  356. <if test="tfjwjyxpjzc != null" >
  357. tfjwjyxpjzc,
  358. </if>
  359. <if test="tfjwjyxpjsc != null" >
  360. tfjwjyxpjsc,
  361. </if>
  362. <if test="tfjwjyxpjzjc != null" >
  363. tfjwjyxpjzjc,
  364. </if>
  365. <if test="tfjwjyxpjxc != null" >
  366. tfjwjyxpjxc,
  367. </if>
  368. <if test="zyqpjsf != null" >
  369. zyqpjsf,
  370. </if>
  371. <if test="zyhpjsf != null" >
  372. zyhpjsf,
  373. </if>
  374. <if test="jsfd != null" >
  375. jsfd,
  376. </if>
  377. <if test="dljsnh != null" >
  378. dljsnh,
  379. </if>
  380. <if test="tfjsjyxfxzc != null" >
  381. tfjsjyxfxzc,
  382. </if>
  383. <if test="tfjsjyxfxsc != null" >
  384. tfjsjyxfxsc,
  385. </if>
  386. <if test="tfjsjyxfxzjc != null" >
  387. tfjsjyxfxzjc,
  388. </if>
  389. <if test="tfjsjyxfxxc != null" >
  390. tfjsjyxfxxc,
  391. </if>
  392. </trim>
  393. <trim prefix="values (" suffix=")" suffixOverrides="," >
  394. <if test="id != null" >
  395. #{id,jdbcType=VARCHAR},
  396. </if>
  397. <if test="orgId != null" >
  398. #{orgId,jdbcType=VARCHAR},
  399. </if>
  400. <if test="vCfCode != null" >
  401. #{vCfCode,jdbcType=VARCHAR},
  402. </if>
  403. <if test="operationId != null" >
  404. #{operationId,jdbcType=VARCHAR},
  405. </if>
  406. <if test="vDevName != null" >
  407. #{vDevName,jdbcType=VARCHAR},
  408. </if>
  409. <if test="vDeviceCode != null" >
  410. #{vDeviceCode,jdbcType=VARCHAR},
  411. </if>
  412. <if test="vPattern != null" >
  413. #{vPattern,jdbcType=VARCHAR},
  414. </if>
  415. <if test="vStartTime != null" >
  416. #{vStartTime,jdbcType=TIMESTAMP},
  417. </if>
  418. <if test="vEndTime != null" >
  419. #{vEndTime,jdbcType=TIMESTAMP},
  420. </if>
  421. <if test="vDistinguishState != null" >
  422. #{vDistinguishState,jdbcType=INTEGER},
  423. </if>
  424. <if test="vState != null" >
  425. #{vState,jdbcType=INTEGER},
  426. </if>
  427. <if test="vUpdatePerson != null" >
  428. #{vUpdatePerson,jdbcType=VARCHAR},
  429. </if>
  430. <if test="dataSource != null" >
  431. #{dataSource,jdbcType=VARCHAR},
  432. </if>
  433. <if test="vUpdateTime != null" >
  434. #{vUpdateTime,jdbcType=TIMESTAMP},
  435. </if>
  436. <if test="updatetime != null" >
  437. #{updatetime,jdbcType=TIMESTAMP},
  438. </if>
  439. <if test="zhdl != null" >
  440. #{zhdl,jdbcType=VARCHAR},
  441. </if>
  442. <if test="zydyjdqw != null" >
  443. #{zydyjdqw,jdbcType=VARCHAR},
  444. </if>
  445. <if test="zydyjdpjqs != null" >
  446. #{zydyjdpjqs,jdbcType=VARCHAR},
  447. </if>
  448. <if test="zydyjdtfqpjlw != null" >
  449. #{zydyjdtfqpjlw,jdbcType=VARCHAR},
  450. </if>
  451. <if test="zydyjdzysc != null" >
  452. #{zydyjdzysc,jdbcType=VARCHAR},
  453. </if>
  454. <if test="zydejdqw != null" >
  455. #{zydejdqw,jdbcType=VARCHAR},
  456. </if>
  457. <if test="zydejdpjqs != null" >
  458. #{zydejdpjqs,jdbcType=VARCHAR},
  459. </if>
  460. <if test="zydejdtfqpjlw != null" >
  461. #{zydejdtfqpjlw,jdbcType=VARCHAR},
  462. </if>
  463. <if test="zydejdzysc != null" >
  464. #{zydejdzysc,jdbcType=VARCHAR},
  465. </if>
  466. <if test="zydsjdqw != null" >
  467. #{zydsjdqw,jdbcType=VARCHAR},
  468. </if>
  469. <if test="zydsjdpjqs != null" >
  470. #{zydsjdpjqs,jdbcType=VARCHAR},
  471. </if>
  472. <if test="zydsjdtfqpjlw != null" >
  473. #{zydsjdtfqpjlw,jdbcType=VARCHAR},
  474. </if>
  475. <if test="zydsjdzysc != null" >
  476. #{zydsjdzysc,jdbcType=VARCHAR},
  477. </if>
  478. <if test="zydsijdqw != null" >
  479. #{zydsijdqw,jdbcType=VARCHAR},
  480. </if>
  481. <if test="zydsijdpjqs != null" >
  482. #{zydsijdpjqs,jdbcType=VARCHAR},
  483. </if>
  484. <if test="zydsijdtfqpjlw != null" >
  485. #{zydsijdtfqpjlw,jdbcType=VARCHAR},
  486. </if>
  487. <if test="zydsijdzysc != null" >
  488. #{zydsijdzysc,jdbcType=VARCHAR},
  489. </if>
  490. <if test="zyqpjlw != null" >
  491. #{zyqpjlw,jdbcType=VARCHAR},
  492. </if>
  493. <if test="jshpjlw != null" >
  494. #{jshpjlw,jdbcType=VARCHAR},
  495. </if>
  496. <if test="jwfd != null" >
  497. #{jwfd,jdbcType=VARCHAR},
  498. </if>
  499. <if test="dljwnh != null" >
  500. #{dljwnh,jdbcType=VARCHAR},
  501. </if>
  502. <if test="sslssl != null" >
  503. #{sslssl,jdbcType=VARCHAR},
  504. </if>
  505. <if test="bsxgpjjg != null" >
  506. #{bsxgpjjg,jdbcType=VARCHAR},
  507. </if>
  508. <if test="tfjwjyxpjzc != null" >
  509. #{tfjwjyxpjzc,jdbcType=VARCHAR},
  510. </if>
  511. <if test="tfjwjyxpjsc != null" >
  512. #{tfjwjyxpjsc,jdbcType=VARCHAR},
  513. </if>
  514. <if test="tfjwjyxpjzjc != null" >
  515. #{tfjwjyxpjzjc,jdbcType=VARCHAR},
  516. </if>
  517. <if test="tfjwjyxpjxc != null" >
  518. #{tfjwjyxpjxc,jdbcType=VARCHAR},
  519. </if>
  520. <if test="zyqpjsf != null" >
  521. #{zyqpjsf,jdbcType=VARCHAR},
  522. </if>
  523. <if test="zyhpjsf != null" >
  524. #{zyhpjsf,jdbcType=VARCHAR},
  525. </if>
  526. <if test="jsfd != null" >
  527. #{jsfd,jdbcType=VARCHAR},
  528. </if>
  529. <if test="dljsnh != null" >
  530. #{dljsnh,jdbcType=VARCHAR},
  531. </if>
  532. <if test="tfjsjyxfxzc != null" >
  533. #{tfjsjyxfxzc,jdbcType=VARCHAR},
  534. </if>
  535. <if test="tfjsjyxfxsc != null" >
  536. #{tfjsjyxfxsc,jdbcType=VARCHAR},
  537. </if>
  538. <if test="tfjsjyxfxzjc != null" >
  539. #{tfjsjyxfxzjc,jdbcType=VARCHAR},
  540. </if>
  541. <if test="tfjsjyxfxxc != null" >
  542. #{tfjsjyxfxxc,jdbcType=VARCHAR},
  543. </if>
  544. </trim>
  545. </insert>
  546. <select id="countByExample" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilationExample" resultType="java.lang.Integer" >
  547. <!--
  548. WARNING - @mbggenerated
  549. This element is automatically generated by MyBatis Generator, do not modify.
  550. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  551. -->
  552. select count(*) from t_ventilation
  553. <if test="_parameter != null" >
  554. <include refid="Example_Where_Clause" />
  555. </if>
  556. </select>
  557. <update id="updateByExampleSelective" parameterType="map" >
  558. <!--
  559. WARNING - @mbggenerated
  560. This element is automatically generated by MyBatis Generator, do not modify.
  561. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  562. -->
  563. update t_ventilation
  564. <set >
  565. <if test="record.id != null" >
  566. id = #{record.id,jdbcType=VARCHAR},
  567. </if>
  568. <if test="record.orgId != null" >
  569. org_id = #{record.orgId,jdbcType=VARCHAR},
  570. </if>
  571. <if test="record.vCfCode != null" >
  572. v_cf_code = #{record.vCfCode,jdbcType=VARCHAR},
  573. </if>
  574. <if test="record.operationId != null" >
  575. operation_id = #{record.operationId,jdbcType=VARCHAR},
  576. </if>
  577. <if test="record.vDevName != null" >
  578. v_dev_name = #{record.vDevName,jdbcType=VARCHAR},
  579. </if>
  580. <if test="record.vDeviceCode != null" >
  581. v_device_code = #{record.vDeviceCode,jdbcType=VARCHAR},
  582. </if>
  583. <if test="record.vPattern != null" >
  584. v_pattern = #{record.vPattern,jdbcType=VARCHAR},
  585. </if>
  586. <if test="record.vStartTime != null" >
  587. v_start_time = #{record.vStartTime,jdbcType=TIMESTAMP},
  588. </if>
  589. <if test="record.vEndTime != null" >
  590. v_end_time = #{record.vEndTime,jdbcType=TIMESTAMP},
  591. </if>
  592. <if test="record.vDistinguishState != null" >
  593. v_distinguish_state = #{record.vDistinguishState,jdbcType=INTEGER},
  594. </if>
  595. <if test="record.vState != null" >
  596. v_state = #{record.vState,jdbcType=INTEGER},
  597. </if>
  598. <if test="record.vUpdatePerson != null" >
  599. v_update_person = #{record.vUpdatePerson,jdbcType=VARCHAR},
  600. </if>
  601. <if test="record.dataSource != null" >
  602. data_source = #{record.dataSource,jdbcType=VARCHAR},
  603. </if>
  604. <if test="record.vUpdateTime != null" >
  605. v_update_time = #{record.vUpdateTime,jdbcType=TIMESTAMP},
  606. </if>
  607. <if test="record.updatetime != null" >
  608. updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
  609. </if>
  610. <if test="record.zhdl != null" >
  611. zhdl = #{record.zhdl,jdbcType=VARCHAR},
  612. </if>
  613. <if test="record.zydyjdqw != null" >
  614. zydyjdqw = #{record.zydyjdqw,jdbcType=VARCHAR},
  615. </if>
  616. <if test="record.zydyjdpjqs != null" >
  617. zydyjdpjqs = #{record.zydyjdpjqs,jdbcType=VARCHAR},
  618. </if>
  619. <if test="record.zydyjdtfqpjlw != null" >
  620. zydyjdtfqpjlw = #{record.zydyjdtfqpjlw,jdbcType=VARCHAR},
  621. </if>
  622. <if test="record.zydyjdzysc != null" >
  623. zydyjdzysc = #{record.zydyjdzysc,jdbcType=VARCHAR},
  624. </if>
  625. <if test="record.zydejdqw != null" >
  626. zydejdqw = #{record.zydejdqw,jdbcType=VARCHAR},
  627. </if>
  628. <if test="record.zydejdpjqs != null" >
  629. zydejdpjqs = #{record.zydejdpjqs,jdbcType=VARCHAR},
  630. </if>
  631. <if test="record.zydejdtfqpjlw != null" >
  632. zydejdtfqpjlw = #{record.zydejdtfqpjlw,jdbcType=VARCHAR},
  633. </if>
  634. <if test="record.zydejdzysc != null" >
  635. zydejdzysc = #{record.zydejdzysc,jdbcType=VARCHAR},
  636. </if>
  637. <if test="record.zydsjdqw != null" >
  638. zydsjdqw = #{record.zydsjdqw,jdbcType=VARCHAR},
  639. </if>
  640. <if test="record.zydsjdpjqs != null" >
  641. zydsjdpjqs = #{record.zydsjdpjqs,jdbcType=VARCHAR},
  642. </if>
  643. <if test="record.zydsjdtfqpjlw != null" >
  644. zydsjdtfqpjlw = #{record.zydsjdtfqpjlw,jdbcType=VARCHAR},
  645. </if>
  646. <if test="record.zydsjdzysc != null" >
  647. zydsjdzysc = #{record.zydsjdzysc,jdbcType=VARCHAR},
  648. </if>
  649. <if test="record.zydsijdqw != null" >
  650. zydsijdqw = #{record.zydsijdqw,jdbcType=VARCHAR},
  651. </if>
  652. <if test="record.zydsijdpjqs != null" >
  653. zydsijdpjqs = #{record.zydsijdpjqs,jdbcType=VARCHAR},
  654. </if>
  655. <if test="record.zydsijdtfqpjlw != null" >
  656. zydsijdtfqpjlw = #{record.zydsijdtfqpjlw,jdbcType=VARCHAR},
  657. </if>
  658. <if test="record.zydsijdzysc != null" >
  659. zydsijdzysc = #{record.zydsijdzysc,jdbcType=VARCHAR},
  660. </if>
  661. <if test="record.zyqpjlw != null" >
  662. zyqpjlw = #{record.zyqpjlw,jdbcType=VARCHAR},
  663. </if>
  664. <if test="record.jshpjlw != null" >
  665. jshpjlw = #{record.jshpjlw,jdbcType=VARCHAR},
  666. </if>
  667. <if test="record.jwfd != null" >
  668. jwfd = #{record.jwfd,jdbcType=VARCHAR},
  669. </if>
  670. <if test="record.dljwnh != null" >
  671. dljwnh = #{record.dljwnh,jdbcType=VARCHAR},
  672. </if>
  673. <if test="record.sslssl != null" >
  674. sslssl = #{record.sslssl,jdbcType=VARCHAR},
  675. </if>
  676. <if test="record.bsxgpjjg != null" >
  677. bsxgpjjg = #{record.bsxgpjjg,jdbcType=VARCHAR},
  678. </if>
  679. <if test="record.tfjwjyxpjzc != null" >
  680. tfjwjyxpjzc = #{record.tfjwjyxpjzc,jdbcType=VARCHAR},
  681. </if>
  682. <if test="record.tfjwjyxpjsc != null" >
  683. tfjwjyxpjsc = #{record.tfjwjyxpjsc,jdbcType=VARCHAR},
  684. </if>
  685. <if test="record.tfjwjyxpjzjc != null" >
  686. tfjwjyxpjzjc = #{record.tfjwjyxpjzjc,jdbcType=VARCHAR},
  687. </if>
  688. <if test="record.tfjwjyxpjxc != null" >
  689. tfjwjyxpjxc = #{record.tfjwjyxpjxc,jdbcType=VARCHAR},
  690. </if>
  691. <if test="record.zyqpjsf != null" >
  692. zyqpjsf = #{record.zyqpjsf,jdbcType=VARCHAR},
  693. </if>
  694. <if test="record.zyhpjsf != null" >
  695. zyhpjsf = #{record.zyhpjsf,jdbcType=VARCHAR},
  696. </if>
  697. <if test="record.jsfd != null" >
  698. jsfd = #{record.jsfd,jdbcType=VARCHAR},
  699. </if>
  700. <if test="record.dljsnh != null" >
  701. dljsnh = #{record.dljsnh,jdbcType=VARCHAR},
  702. </if>
  703. <if test="record.tfjsjyxfxzc != null" >
  704. tfjsjyxfxzc = #{record.tfjsjyxfxzc,jdbcType=VARCHAR},
  705. </if>
  706. <if test="record.tfjsjyxfxsc != null" >
  707. tfjsjyxfxsc = #{record.tfjsjyxfxsc,jdbcType=VARCHAR},
  708. </if>
  709. <if test="record.tfjsjyxfxzjc != null" >
  710. tfjsjyxfxzjc = #{record.tfjsjyxfxzjc,jdbcType=VARCHAR},
  711. </if>
  712. <if test="record.tfjsjyxfxxc != null" >
  713. tfjsjyxfxxc = #{record.tfjsjyxfxxc,jdbcType=VARCHAR},
  714. </if>
  715. </set>
  716. <if test="_parameter != null" >
  717. <include refid="Update_By_Example_Where_Clause" />
  718. </if>
  719. </update>
  720. <update id="updateByExample" parameterType="map" >
  721. <!--
  722. WARNING - @mbggenerated
  723. This element is automatically generated by MyBatis Generator, do not modify.
  724. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  725. -->
  726. update t_ventilation
  727. set id = #{record.id,jdbcType=VARCHAR},
  728. org_id = #{record.orgId,jdbcType=VARCHAR},
  729. v_cf_code = #{record.vCfCode,jdbcType=VARCHAR},
  730. operation_id = #{record.operationId,jdbcType=VARCHAR},
  731. v_dev_name = #{record.vDevName,jdbcType=VARCHAR},
  732. v_device_code = #{record.vDeviceCode,jdbcType=VARCHAR},
  733. v_pattern = #{record.vPattern,jdbcType=VARCHAR},
  734. v_start_time = #{record.vStartTime,jdbcType=TIMESTAMP},
  735. v_end_time = #{record.vEndTime,jdbcType=TIMESTAMP},
  736. v_distinguish_state = #{record.vDistinguishState,jdbcType=INTEGER},
  737. v_state = #{record.vState,jdbcType=INTEGER},
  738. v_update_person = #{record.vUpdatePerson,jdbcType=VARCHAR},
  739. data_source = #{record.dataSource,jdbcType=VARCHAR},
  740. v_update_time = #{record.vUpdateTime,jdbcType=TIMESTAMP},
  741. updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
  742. zhdl = #{record.zhdl,jdbcType=VARCHAR},
  743. zydyjdqw = #{record.zydyjdqw,jdbcType=VARCHAR},
  744. zydyjdpjqs = #{record.zydyjdpjqs,jdbcType=VARCHAR},
  745. zydyjdtfqpjlw = #{record.zydyjdtfqpjlw,jdbcType=VARCHAR},
  746. zydyjdzysc = #{record.zydyjdzysc,jdbcType=VARCHAR},
  747. zydejdqw = #{record.zydejdqw,jdbcType=VARCHAR},
  748. zydejdpjqs = #{record.zydejdpjqs,jdbcType=VARCHAR},
  749. zydejdtfqpjlw = #{record.zydejdtfqpjlw,jdbcType=VARCHAR},
  750. zydejdzysc = #{record.zydejdzysc,jdbcType=VARCHAR},
  751. zydsjdqw = #{record.zydsjdqw,jdbcType=VARCHAR},
  752. zydsjdpjqs = #{record.zydsjdpjqs,jdbcType=VARCHAR},
  753. zydsjdtfqpjlw = #{record.zydsjdtfqpjlw,jdbcType=VARCHAR},
  754. zydsjdzysc = #{record.zydsjdzysc,jdbcType=VARCHAR},
  755. zydsijdqw = #{record.zydsijdqw,jdbcType=VARCHAR},
  756. zydsijdpjqs = #{record.zydsijdpjqs,jdbcType=VARCHAR},
  757. zydsijdtfqpjlw = #{record.zydsijdtfqpjlw,jdbcType=VARCHAR},
  758. zydsijdzysc = #{record.zydsijdzysc,jdbcType=VARCHAR},
  759. zyqpjlw = #{record.zyqpjlw,jdbcType=VARCHAR},
  760. jshpjlw = #{record.jshpjlw,jdbcType=VARCHAR},
  761. jwfd = #{record.jwfd,jdbcType=VARCHAR},
  762. dljwnh = #{record.dljwnh,jdbcType=VARCHAR},
  763. sslssl = #{record.sslssl,jdbcType=VARCHAR},
  764. bsxgpjjg = #{record.bsxgpjjg,jdbcType=VARCHAR},
  765. tfjwjyxpjzc = #{record.tfjwjyxpjzc,jdbcType=VARCHAR},
  766. tfjwjyxpjsc = #{record.tfjwjyxpjsc,jdbcType=VARCHAR},
  767. tfjwjyxpjzjc = #{record.tfjwjyxpjzjc,jdbcType=VARCHAR},
  768. tfjwjyxpjxc = #{record.tfjwjyxpjxc,jdbcType=VARCHAR},
  769. zyqpjsf = #{record.zyqpjsf,jdbcType=VARCHAR},
  770. zyhpjsf = #{record.zyhpjsf,jdbcType=VARCHAR},
  771. jsfd = #{record.jsfd,jdbcType=VARCHAR},
  772. dljsnh = #{record.dljsnh,jdbcType=VARCHAR},
  773. tfjsjyxfxzc = #{record.tfjsjyxfxzc,jdbcType=VARCHAR},
  774. tfjsjyxfxsc = #{record.tfjsjyxfxsc,jdbcType=VARCHAR},
  775. tfjsjyxfxzjc = #{record.tfjsjyxfxzjc,jdbcType=VARCHAR},
  776. tfjsjyxfxxc = #{record.tfjsjyxfxxc,jdbcType=VARCHAR}
  777. <if test="_parameter != null" >
  778. <include refid="Update_By_Example_Where_Clause" />
  779. </if>
  780. </update>
  781. <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
  782. <!--
  783. WARNING - @mbggenerated
  784. This element is automatically generated by MyBatis Generator, do not modify.
  785. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  786. -->
  787. update t_ventilation
  788. <set >
  789. <if test="orgId != null" >
  790. org_id = #{orgId,jdbcType=VARCHAR},
  791. </if>
  792. <if test="vCfCode != null" >
  793. v_cf_code = #{vCfCode,jdbcType=VARCHAR},
  794. </if>
  795. <if test="operationId != null" >
  796. operation_id = #{operationId,jdbcType=VARCHAR},
  797. </if>
  798. <if test="vDevName != null" >
  799. v_dev_name = #{vDevName,jdbcType=VARCHAR},
  800. </if>
  801. <if test="vDeviceCode != null" >
  802. v_device_code = #{vDeviceCode,jdbcType=VARCHAR},
  803. </if>
  804. <if test="vPattern != null" >
  805. v_pattern = #{vPattern,jdbcType=VARCHAR},
  806. </if>
  807. <if test="vStartTime != null" >
  808. v_start_time = #{vStartTime,jdbcType=TIMESTAMP},
  809. </if>
  810. <if test="vEndTime != null" >
  811. v_end_time = #{vEndTime,jdbcType=TIMESTAMP},
  812. </if>
  813. <if test="vDistinguishState != null" >
  814. v_distinguish_state = #{vDistinguishState,jdbcType=INTEGER},
  815. </if>
  816. <if test="vState != null" >
  817. v_state = #{vState,jdbcType=INTEGER},
  818. </if>
  819. <if test="vUpdatePerson != null" >
  820. v_update_person = #{vUpdatePerson,jdbcType=VARCHAR},
  821. </if>
  822. <if test="dataSource != null" >
  823. data_source = #{dataSource,jdbcType=VARCHAR},
  824. </if>
  825. <if test="vUpdateTime != null" >
  826. v_update_time = #{vUpdateTime,jdbcType=TIMESTAMP},
  827. </if>
  828. <if test="updatetime != null" >
  829. updatetime = #{updatetime,jdbcType=TIMESTAMP},
  830. </if>
  831. <if test="zhdl != null" >
  832. zhdl = #{zhdl,jdbcType=VARCHAR},
  833. </if>
  834. <if test="zydyjdqw != null" >
  835. zydyjdqw = #{zydyjdqw,jdbcType=VARCHAR},
  836. </if>
  837. <if test="zydyjdpjqs != null" >
  838. zydyjdpjqs = #{zydyjdpjqs,jdbcType=VARCHAR},
  839. </if>
  840. <if test="zydyjdtfqpjlw != null" >
  841. zydyjdtfqpjlw = #{zydyjdtfqpjlw,jdbcType=VARCHAR},
  842. </if>
  843. <if test="zydyjdzysc != null" >
  844. zydyjdzysc = #{zydyjdzysc,jdbcType=VARCHAR},
  845. </if>
  846. <if test="zydejdqw != null" >
  847. zydejdqw = #{zydejdqw,jdbcType=VARCHAR},
  848. </if>
  849. <if test="zydejdpjqs != null" >
  850. zydejdpjqs = #{zydejdpjqs,jdbcType=VARCHAR},
  851. </if>
  852. <if test="zydejdtfqpjlw != null" >
  853. zydejdtfqpjlw = #{zydejdtfqpjlw,jdbcType=VARCHAR},
  854. </if>
  855. <if test="zydejdzysc != null" >
  856. zydejdzysc = #{zydejdzysc,jdbcType=VARCHAR},
  857. </if>
  858. <if test="zydsjdqw != null" >
  859. zydsjdqw = #{zydsjdqw,jdbcType=VARCHAR},
  860. </if>
  861. <if test="zydsjdpjqs != null" >
  862. zydsjdpjqs = #{zydsjdpjqs,jdbcType=VARCHAR},
  863. </if>
  864. <if test="zydsjdtfqpjlw != null" >
  865. zydsjdtfqpjlw = #{zydsjdtfqpjlw,jdbcType=VARCHAR},
  866. </if>
  867. <if test="zydsjdzysc != null" >
  868. zydsjdzysc = #{zydsjdzysc,jdbcType=VARCHAR},
  869. </if>
  870. <if test="zydsijdqw != null" >
  871. zydsijdqw = #{zydsijdqw,jdbcType=VARCHAR},
  872. </if>
  873. <if test="zydsijdpjqs != null" >
  874. zydsijdpjqs = #{zydsijdpjqs,jdbcType=VARCHAR},
  875. </if>
  876. <if test="zydsijdtfqpjlw != null" >
  877. zydsijdtfqpjlw = #{zydsijdtfqpjlw,jdbcType=VARCHAR},
  878. </if>
  879. <if test="zydsijdzysc != null" >
  880. zydsijdzysc = #{zydsijdzysc,jdbcType=VARCHAR},
  881. </if>
  882. <if test="zyqpjlw != null" >
  883. zyqpjlw = #{zyqpjlw,jdbcType=VARCHAR},
  884. </if>
  885. <if test="jshpjlw != null" >
  886. jshpjlw = #{jshpjlw,jdbcType=VARCHAR},
  887. </if>
  888. <if test="jwfd != null" >
  889. jwfd = #{jwfd,jdbcType=VARCHAR},
  890. </if>
  891. <if test="dljwnh != null" >
  892. dljwnh = #{dljwnh,jdbcType=VARCHAR},
  893. </if>
  894. <if test="sslssl != null" >
  895. sslssl = #{sslssl,jdbcType=VARCHAR},
  896. </if>
  897. <if test="bsxgpjjg != null" >
  898. bsxgpjjg = #{bsxgpjjg,jdbcType=VARCHAR},
  899. </if>
  900. <if test="tfjwjyxpjzc != null" >
  901. tfjwjyxpjzc = #{tfjwjyxpjzc,jdbcType=VARCHAR},
  902. </if>
  903. <if test="tfjwjyxpjsc != null" >
  904. tfjwjyxpjsc = #{tfjwjyxpjsc,jdbcType=VARCHAR},
  905. </if>
  906. <if test="tfjwjyxpjzjc != null" >
  907. tfjwjyxpjzjc = #{tfjwjyxpjzjc,jdbcType=VARCHAR},
  908. </if>
  909. <if test="tfjwjyxpjxc != null" >
  910. tfjwjyxpjxc = #{tfjwjyxpjxc,jdbcType=VARCHAR},
  911. </if>
  912. <if test="zyqpjsf != null" >
  913. zyqpjsf = #{zyqpjsf,jdbcType=VARCHAR},
  914. </if>
  915. <if test="zyhpjsf != null" >
  916. zyhpjsf = #{zyhpjsf,jdbcType=VARCHAR},
  917. </if>
  918. <if test="jsfd != null" >
  919. jsfd = #{jsfd,jdbcType=VARCHAR},
  920. </if>
  921. <if test="dljsnh != null" >
  922. dljsnh = #{dljsnh,jdbcType=VARCHAR},
  923. </if>
  924. <if test="tfjsjyxfxzc != null" >
  925. tfjsjyxfxzc = #{tfjsjyxfxzc,jdbcType=VARCHAR},
  926. </if>
  927. <if test="tfjsjyxfxsc != null" >
  928. tfjsjyxfxsc = #{tfjsjyxfxsc,jdbcType=VARCHAR},
  929. </if>
  930. <if test="tfjsjyxfxzjc != null" >
  931. tfjsjyxfxzjc = #{tfjsjyxfxzjc,jdbcType=VARCHAR},
  932. </if>
  933. <if test="tfjsjyxfxxc != null" >
  934. tfjsjyxfxxc = #{tfjsjyxfxxc,jdbcType=VARCHAR},
  935. </if>
  936. </set>
  937. where id = #{id,jdbcType=VARCHAR}
  938. </update>
  939. <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.intelligent.ventilation.model.TVentilation" >
  940. <!--
  941. WARNING - @mbggenerated
  942. This element is automatically generated by MyBatis Generator, do not modify.
  943. This element was generated on Tue Jun 09 10:55:51 CST 2020.
  944. -->
  945. update t_ventilation
  946. set org_id = #{orgId,jdbcType=VARCHAR},
  947. v_cf_code = #{vCfCode,jdbcType=VARCHAR},
  948. operation_id = #{operationId,jdbcType=VARCHAR},
  949. v_dev_name = #{vDevName,jdbcType=VARCHAR},
  950. v_device_code = #{vDeviceCode,jdbcType=VARCHAR},
  951. v_pattern = #{vPattern,jdbcType=VARCHAR},
  952. v_start_time = #{vStartTime,jdbcType=TIMESTAMP},
  953. v_end_time = #{vEndTime,jdbcType=TIMESTAMP},
  954. v_distinguish_state = #{vDistinguishState,jdbcType=INTEGER},
  955. v_state = #{vState,jdbcType=INTEGER},
  956. v_update_person = #{vUpdatePerson,jdbcType=VARCHAR},
  957. data_source = #{dataSource,jdbcType=VARCHAR},
  958. v_update_time = #{vUpdateTime,jdbcType=TIMESTAMP},
  959. updatetime = #{updatetime,jdbcType=TIMESTAMP},
  960. zhdl = #{zhdl,jdbcType=VARCHAR},
  961. zydyjdqw = #{zydyjdqw,jdbcType=VARCHAR},
  962. zydyjdpjqs = #{zydyjdpjqs,jdbcType=VARCHAR},
  963. zydyjdtfqpjlw = #{zydyjdtfqpjlw,jdbcType=VARCHAR},
  964. zydyjdzysc = #{zydyjdzysc,jdbcType=VARCHAR},
  965. zydejdqw = #{zydejdqw,jdbcType=VARCHAR},
  966. zydejdpjqs = #{zydejdpjqs,jdbcType=VARCHAR},
  967. zydejdtfqpjlw = #{zydejdtfqpjlw,jdbcType=VARCHAR},
  968. zydejdzysc = #{zydejdzysc,jdbcType=VARCHAR},
  969. zydsjdqw = #{zydsjdqw,jdbcType=VARCHAR},
  970. zydsjdpjqs = #{zydsjdpjqs,jdbcType=VARCHAR},
  971. zydsjdtfqpjlw = #{zydsjdtfqpjlw,jdbcType=VARCHAR},
  972. zydsjdzysc = #{zydsjdzysc,jdbcType=VARCHAR},
  973. zydsijdqw = #{zydsijdqw,jdbcType=VARCHAR},
  974. zydsijdpjqs = #{zydsijdpjqs,jdbcType=VARCHAR},
  975. zydsijdtfqpjlw = #{zydsijdtfqpjlw,jdbcType=VARCHAR},
  976. zydsijdzysc = #{zydsijdzysc,jdbcType=VARCHAR},
  977. zyqpjlw = #{zyqpjlw,jdbcType=VARCHAR},
  978. jshpjlw = #{jshpjlw,jdbcType=VARCHAR},
  979. jwfd = #{jwfd,jdbcType=VARCHAR},
  980. dljwnh = #{dljwnh,jdbcType=VARCHAR},
  981. sslssl = #{sslssl,jdbcType=VARCHAR},
  982. bsxgpjjg = #{bsxgpjjg,jdbcType=VARCHAR},
  983. tfjwjyxpjzc = #{tfjwjyxpjzc,jdbcType=VARCHAR},
  984. tfjwjyxpjsc = #{tfjwjyxpjsc,jdbcType=VARCHAR},
  985. tfjwjyxpjzjc = #{tfjwjyxpjzjc,jdbcType=VARCHAR},
  986. tfjwjyxpjxc = #{tfjwjyxpjxc,jdbcType=VARCHAR},
  987. zyqpjsf = #{zyqpjsf,jdbcType=VARCHAR},
  988. zyhpjsf = #{zyhpjsf,jdbcType=VARCHAR},
  989. jsfd = #{jsfd,jdbcType=VARCHAR},
  990. dljsnh = #{dljsnh,jdbcType=VARCHAR},
  991. tfjsjyxfxzc = #{tfjsjyxfxzc,jdbcType=VARCHAR},
  992. tfjsjyxfxsc = #{tfjsjyxfxsc,jdbcType=VARCHAR},
  993. tfjsjyxfxzjc = #{tfjsjyxfxzjc,jdbcType=VARCHAR},
  994. tfjsjyxfxxc = #{tfjsjyxfxxc,jdbcType=VARCHAR}
  995. where id = #{id,jdbcType=VARCHAR}
  996. </update>
  997. <insert id="insertBatch" parameterType="java.util.List">
  998. insert into t_ventilation (id, org_id, v_cf_code,
  999. operation_id, v_dev_name, v_device_code,
  1000. v_pattern, v_start_time, v_end_time,
  1001. v_distinguish_state, v_state, v_update_person,
  1002. data_source, v_update_time)
  1003. values
  1004. <foreach collection="list" item="record" index="index" separator=",">
  1005. (#{record.id,jdbcType=VARCHAR}, #{record.orgId,jdbcType=VARCHAR}, #{record.vCfCode,jdbcType=VARCHAR},
  1006. #{record.operationId,jdbcType=VARCHAR}, #{record.vDevName,jdbcType=VARCHAR}, #{record.vDeviceCode,jdbcType=VARCHAR},
  1007. #{record.vPattern,jdbcType=VARCHAR}, #{record.vStartTime,jdbcType=TIMESTAMP}, #{record.vEndTime,jdbcType=TIMESTAMP},
  1008. #{record.vDistinguishState,jdbcType=INTEGER}, #{record.vState,jdbcType=INTEGER}, #{record.vUpdatePerson,jdbcType=VARCHAR},
  1009. #{record.dataSource,jdbcType=VARCHAR}, #{record.vUpdateTime,jdbcType=TIMESTAMP})
  1010. </foreach>
  1011. </insert>
  1012. <select id="getByCode" resultMap="BaseResultMap" parameterType="java.util.Map">
  1013. select
  1014. <include refid="Base_Column_List" />
  1015. from t_ventilation
  1016. where v_cf_code = #{vcfcode,jdbcType=VARCHAR} and v_dev_name = #{vdevname,jdbcType=VARCHAR}
  1017. </select>
  1018. </mapper>