ElectricaltestingPointDiMapper.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  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.gyee.frame.mapper.auto.ElectricaltestingPointDiMapper">
  4. <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.ElectricaltestingPointDi">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="id" jdbcType="VARCHAR" property="id" />
  10. <result column="code" jdbcType="VARCHAR" property="code" />
  11. <result column="name" jdbcType="VARCHAR" property="name" />
  12. <result column="model" jdbcType="VARCHAR" property="model" />
  13. <result column="valueUnit" jdbcType="VARCHAR" property="valueunit" />
  14. <result column="englishName" jdbcType="VARCHAR" property="englishname" />
  15. <result column="typeId" jdbcType="VARCHAR" property="typeid" />
  16. <result column="modelId" jdbcType="VARCHAR" property="modelid" />
  17. <result column="maxVal" jdbcType="DOUBLE" property="maxval" />
  18. <result column="MinVal" jdbcType="DOUBLE" property="minval" />
  19. <result column="reasonableMaxVal" jdbcType="DOUBLE" property="reasonablemaxval" />
  20. <result column="reasonableMinVal" jdbcType="DOUBLE" property="reasonableminval" />
  21. <result column="electricalid" jdbcType="VARCHAR" property="electricalid" />
  22. <result column="uniformCode" jdbcType="VARCHAR" property="uniformcode" />
  23. <result column="shortId" jdbcType="VARCHAR" property="shortid" />
  24. <result column="longId" jdbcType="VARCHAR" property="longid" />
  25. <result column="windPowerStationId" jdbcType="VARCHAR" property="windpowerstationid" />
  26. <result column="realTimeId" jdbcType="VARCHAR" property="realtimeid" />
  27. </resultMap>
  28. <sql id="Example_Where_Clause">
  29. <!--
  30. WARNING - @mbg.generated
  31. This element is automatically generated by MyBatis Generator, do not modify.
  32. -->
  33. <where>
  34. <foreach collection="oredCriteria" item="criteria" separator="or">
  35. <if test="criteria.valid">
  36. <trim prefix="(" prefixOverrides="and" suffix=")">
  37. <foreach collection="criteria.criteria" item="criterion">
  38. <choose>
  39. <when test="criterion.noValue">
  40. and ${criterion.condition}
  41. </when>
  42. <when test="criterion.singleValue">
  43. and ${criterion.condition} #{criterion.value}
  44. </when>
  45. <when test="criterion.betweenValue">
  46. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  47. </when>
  48. <when test="criterion.listValue">
  49. and ${criterion.condition}
  50. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  51. #{listItem}
  52. </foreach>
  53. </when>
  54. </choose>
  55. </foreach>
  56. </trim>
  57. </if>
  58. </foreach>
  59. </where>
  60. </sql>
  61. <sql id="Update_By_Example_Where_Clause">
  62. <!--
  63. WARNING - @mbg.generated
  64. This element is automatically generated by MyBatis Generator, do not modify.
  65. -->
  66. <where>
  67. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  68. <if test="criteria.valid">
  69. <trim prefix="(" prefixOverrides="and" suffix=")">
  70. <foreach collection="criteria.criteria" item="criterion">
  71. <choose>
  72. <when test="criterion.noValue">
  73. and ${criterion.condition}
  74. </when>
  75. <when test="criterion.singleValue">
  76. and ${criterion.condition} #{criterion.value}
  77. </when>
  78. <when test="criterion.betweenValue">
  79. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  80. </when>
  81. <when test="criterion.listValue">
  82. and ${criterion.condition}
  83. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  84. #{listItem}
  85. </foreach>
  86. </when>
  87. </choose>
  88. </foreach>
  89. </trim>
  90. </if>
  91. </foreach>
  92. </where>
  93. </sql>
  94. <sql id="Base_Column_List">
  95. <!--
  96. WARNING - @mbg.generated
  97. This element is automatically generated by MyBatis Generator, do not modify.
  98. -->
  99. id, code, name, model, valueUnit, englishName, typeId, modelId, maxVal, MinVal, reasonableMaxVal,
  100. reasonableMinVal, electricalid, uniformCode, shortId, longId, windPowerStationId,
  101. realTimeId
  102. </sql>
  103. <select id="selectByExample" parameterType="com.gyee.frame.model.auto.ElectricaltestingPointDiExample" resultMap="BaseResultMap">
  104. <!--
  105. WARNING - @mbg.generated
  106. This element is automatically generated by MyBatis Generator, do not modify.
  107. -->
  108. select
  109. <if test="distinct">
  110. distinct
  111. </if>
  112. <include refid="Base_Column_List" />
  113. from electricaltestingpointdi
  114. <if test="_parameter != null">
  115. <include refid="Example_Where_Clause" />
  116. </if>
  117. <if test="orderByClause != null">
  118. order by ${orderByClause}
  119. </if>
  120. </select>
  121. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  122. <!--
  123. WARNING - @mbg.generated
  124. This element is automatically generated by MyBatis Generator, do not modify.
  125. -->
  126. select
  127. <include refid="Base_Column_List" />
  128. from electricaltestingpointdi
  129. where id = #{id,jdbcType=VARCHAR}
  130. </select>
  131. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  132. <!--
  133. WARNING - @mbg.generated
  134. This element is automatically generated by MyBatis Generator, do not modify.
  135. -->
  136. delete from electricaltestingpointdi
  137. where id = #{id,jdbcType=VARCHAR}
  138. </delete>
  139. <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.ElectricaltestingPointDiExample">
  140. <!--
  141. WARNING - @mbg.generated
  142. This element is automatically generated by MyBatis Generator, do not modify.
  143. -->
  144. delete from electricaltestingpointdi
  145. <if test="_parameter != null">
  146. <include refid="Example_Where_Clause" />
  147. </if>
  148. </delete>
  149. <insert id="insert" parameterType="com.gyee.frame.model.auto.ElectricaltestingPointDi">
  150. <!--
  151. WARNING - @mbg.generated
  152. This element is automatically generated by MyBatis Generator, do not modify.
  153. -->
  154. insert into electricaltestingpointdi (id, code, name,
  155. model, valueUnit, englishName,
  156. typeId, modelId, maxVal,
  157. MinVal, reasonableMaxVal, reasonableMinVal,
  158. electricalid, uniformCode, shortId,
  159. longId, windPowerStationId, realTimeId
  160. )
  161. values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
  162. #{model,jdbcType=VARCHAR}, #{valueunit,jdbcType=VARCHAR}, #{englishname,jdbcType=VARCHAR},
  163. #{typeid,jdbcType=VARCHAR}, #{modelid,jdbcType=VARCHAR}, #{maxval,jdbcType=DOUBLE},
  164. #{minval,jdbcType=DOUBLE}, #{reasonablemaxval,jdbcType=DOUBLE}, #{reasonableminval,jdbcType=DOUBLE},
  165. #{electricalid,jdbcType=VARCHAR}, #{uniformcode,jdbcType=VARCHAR}, #{shortid,jdbcType=VARCHAR},
  166. #{longid,jdbcType=VARCHAR}, #{windpowerstationid,jdbcType=VARCHAR}, #{realtimeid,jdbcType=VARCHAR}
  167. )
  168. </insert>
  169. <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.ElectricaltestingPointDi">
  170. <!--
  171. WARNING - @mbg.generated
  172. This element is automatically generated by MyBatis Generator, do not modify.
  173. -->
  174. insert into electricaltestingpointdi
  175. <trim prefix="(" suffix=")" suffixOverrides=",">
  176. <if test="id != null">
  177. id,
  178. </if>
  179. <if test="code != null">
  180. code,
  181. </if>
  182. <if test="name != null">
  183. name,
  184. </if>
  185. <if test="model != null">
  186. model,
  187. </if>
  188. <if test="valueunit != null">
  189. valueUnit,
  190. </if>
  191. <if test="englishname != null">
  192. englishName,
  193. </if>
  194. <if test="typeid != null">
  195. typeId,
  196. </if>
  197. <if test="modelid != null">
  198. modelId,
  199. </if>
  200. <if test="maxval != null">
  201. maxVal,
  202. </if>
  203. <if test="minval != null">
  204. MinVal,
  205. </if>
  206. <if test="reasonablemaxval != null">
  207. reasonableMaxVal,
  208. </if>
  209. <if test="reasonableminval != null">
  210. reasonableMinVal,
  211. </if>
  212. <if test="electricalid != null">
  213. electricalid,
  214. </if>
  215. <if test="uniformcode != null">
  216. uniformCode,
  217. </if>
  218. <if test="shortid != null">
  219. shortId,
  220. </if>
  221. <if test="longid != null">
  222. longId,
  223. </if>
  224. <if test="windpowerstationid != null">
  225. windPowerStationId,
  226. </if>
  227. <if test="realtimeid != null">
  228. realTimeId,
  229. </if>
  230. </trim>
  231. <trim prefix="values (" suffix=")" suffixOverrides=",">
  232. <if test="id != null">
  233. #{id,jdbcType=VARCHAR},
  234. </if>
  235. <if test="code != null">
  236. #{code,jdbcType=VARCHAR},
  237. </if>
  238. <if test="name != null">
  239. #{name,jdbcType=VARCHAR},
  240. </if>
  241. <if test="model != null">
  242. #{model,jdbcType=VARCHAR},
  243. </if>
  244. <if test="valueunit != null">
  245. #{valueunit,jdbcType=VARCHAR},
  246. </if>
  247. <if test="englishname != null">
  248. #{englishname,jdbcType=VARCHAR},
  249. </if>
  250. <if test="typeid != null">
  251. #{typeid,jdbcType=VARCHAR},
  252. </if>
  253. <if test="modelid != null">
  254. #{modelid,jdbcType=VARCHAR},
  255. </if>
  256. <if test="maxval != null">
  257. #{maxval,jdbcType=DOUBLE},
  258. </if>
  259. <if test="minval != null">
  260. #{minval,jdbcType=DOUBLE},
  261. </if>
  262. <if test="reasonablemaxval != null">
  263. #{reasonablemaxval,jdbcType=DOUBLE},
  264. </if>
  265. <if test="reasonableminval != null">
  266. #{reasonableminval,jdbcType=DOUBLE},
  267. </if>
  268. <if test="electricalid != null">
  269. #{electricalid,jdbcType=VARCHAR},
  270. </if>
  271. <if test="uniformcode != null">
  272. #{uniformcode,jdbcType=VARCHAR},
  273. </if>
  274. <if test="shortid != null">
  275. #{shortid,jdbcType=VARCHAR},
  276. </if>
  277. <if test="longid != null">
  278. #{longid,jdbcType=VARCHAR},
  279. </if>
  280. <if test="windpowerstationid != null">
  281. #{windpowerstationid,jdbcType=VARCHAR},
  282. </if>
  283. <if test="realtimeid != null">
  284. #{realtimeid,jdbcType=VARCHAR},
  285. </if>
  286. </trim>
  287. </insert>
  288. <select id="countByExample" parameterType="com.gyee.frame.model.auto.ElectricaltestingPointDiExample" resultType="java.lang.Long">
  289. <!--
  290. WARNING - @mbg.generated
  291. This element is automatically generated by MyBatis Generator, do not modify.
  292. -->
  293. select count(*) from electricaltestingpointdi
  294. <if test="_parameter != null">
  295. <include refid="Example_Where_Clause" />
  296. </if>
  297. </select>
  298. <update id="updateByExampleSelective" parameterType="map">
  299. <!--
  300. WARNING - @mbg.generated
  301. This element is automatically generated by MyBatis Generator, do not modify.
  302. -->
  303. update electricaltestingpointdi
  304. <set>
  305. <if test="record.id != null">
  306. id = #{record.id,jdbcType=VARCHAR},
  307. </if>
  308. <if test="record.code != null">
  309. code = #{record.code,jdbcType=VARCHAR},
  310. </if>
  311. <if test="record.name != null">
  312. name = #{record.name,jdbcType=VARCHAR},
  313. </if>
  314. <if test="record.model != null">
  315. model = #{record.model,jdbcType=VARCHAR},
  316. </if>
  317. <if test="record.valueunit != null">
  318. valueUnit = #{record.valueunit,jdbcType=VARCHAR},
  319. </if>
  320. <if test="record.englishname != null">
  321. englishName = #{record.englishname,jdbcType=VARCHAR},
  322. </if>
  323. <if test="record.typeid != null">
  324. typeId = #{record.typeid,jdbcType=VARCHAR},
  325. </if>
  326. <if test="record.modelid != null">
  327. modelId = #{record.modelid,jdbcType=VARCHAR},
  328. </if>
  329. <if test="record.maxval != null">
  330. maxVal = #{record.maxval,jdbcType=DOUBLE},
  331. </if>
  332. <if test="record.minval != null">
  333. MinVal = #{record.minval,jdbcType=DOUBLE},
  334. </if>
  335. <if test="record.reasonablemaxval != null">
  336. reasonableMaxVal = #{record.reasonablemaxval,jdbcType=DOUBLE},
  337. </if>
  338. <if test="record.reasonableminval != null">
  339. reasonableMinVal = #{record.reasonableminval,jdbcType=DOUBLE},
  340. </if>
  341. <if test="record.electricalid != null">
  342. electricalid = #{record.electricalid,jdbcType=VARCHAR},
  343. </if>
  344. <if test="record.uniformcode != null">
  345. uniformCode = #{record.uniformcode,jdbcType=VARCHAR},
  346. </if>
  347. <if test="record.shortid != null">
  348. shortId = #{record.shortid,jdbcType=VARCHAR},
  349. </if>
  350. <if test="record.longid != null">
  351. longId = #{record.longid,jdbcType=VARCHAR},
  352. </if>
  353. <if test="record.windpowerstationid != null">
  354. windPowerStationId = #{record.windpowerstationid,jdbcType=VARCHAR},
  355. </if>
  356. <if test="record.realtimeid != null">
  357. realTimeId = #{record.realtimeid,jdbcType=VARCHAR},
  358. </if>
  359. </set>
  360. <if test="_parameter != null">
  361. <include refid="Update_By_Example_Where_Clause" />
  362. </if>
  363. </update>
  364. <update id="updateByExample" parameterType="map">
  365. <!--
  366. WARNING - @mbg.generated
  367. This element is automatically generated by MyBatis Generator, do not modify.
  368. -->
  369. update electricaltestingpointdi
  370. set id = #{record.id,jdbcType=VARCHAR},
  371. code = #{record.code,jdbcType=VARCHAR},
  372. name = #{record.name,jdbcType=VARCHAR},
  373. model = #{record.model,jdbcType=VARCHAR},
  374. valueUnit = #{record.valueunit,jdbcType=VARCHAR},
  375. englishName = #{record.englishname,jdbcType=VARCHAR},
  376. typeId = #{record.typeid,jdbcType=VARCHAR},
  377. modelId = #{record.modelid,jdbcType=VARCHAR},
  378. maxVal = #{record.maxval,jdbcType=DOUBLE},
  379. MinVal = #{record.minval,jdbcType=DOUBLE},
  380. reasonableMaxVal = #{record.reasonablemaxval,jdbcType=DOUBLE},
  381. reasonableMinVal = #{record.reasonableminval,jdbcType=DOUBLE},
  382. electricalid = #{record.electricalid,jdbcType=VARCHAR},
  383. uniformCode = #{record.uniformcode,jdbcType=VARCHAR},
  384. shortId = #{record.shortid,jdbcType=VARCHAR},
  385. longId = #{record.longid,jdbcType=VARCHAR},
  386. windPowerStationId = #{record.windpowerstationid,jdbcType=VARCHAR},
  387. realTimeId = #{record.realtimeid,jdbcType=VARCHAR}
  388. <if test="_parameter != null">
  389. <include refid="Update_By_Example_Where_Clause" />
  390. </if>
  391. </update>
  392. <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.ElectricaltestingPointDi">
  393. <!--
  394. WARNING - @mbg.generated
  395. This element is automatically generated by MyBatis Generator, do not modify.
  396. -->
  397. update electricaltestingpointdi
  398. <set>
  399. <if test="code != null">
  400. code = #{code,jdbcType=VARCHAR},
  401. </if>
  402. <if test="name != null">
  403. name = #{name,jdbcType=VARCHAR},
  404. </if>
  405. <if test="model != null">
  406. model = #{model,jdbcType=VARCHAR},
  407. </if>
  408. <if test="valueunit != null">
  409. valueUnit = #{valueunit,jdbcType=VARCHAR},
  410. </if>
  411. <if test="englishname != null">
  412. englishName = #{englishname,jdbcType=VARCHAR},
  413. </if>
  414. <if test="typeid != null">
  415. typeId = #{typeid,jdbcType=VARCHAR},
  416. </if>
  417. <if test="modelid != null">
  418. modelId = #{modelid,jdbcType=VARCHAR},
  419. </if>
  420. <if test="maxval != null">
  421. maxVal = #{maxval,jdbcType=DOUBLE},
  422. </if>
  423. <if test="minval != null">
  424. MinVal = #{minval,jdbcType=DOUBLE},
  425. </if>
  426. <if test="reasonablemaxval != null">
  427. reasonableMaxVal = #{reasonablemaxval,jdbcType=DOUBLE},
  428. </if>
  429. <if test="reasonableminval != null">
  430. reasonableMinVal = #{reasonableminval,jdbcType=DOUBLE},
  431. </if>
  432. <if test="electricalid != null">
  433. electricalid = #{electricalid,jdbcType=VARCHAR},
  434. </if>
  435. <if test="uniformcode != null">
  436. uniformCode = #{uniformcode,jdbcType=VARCHAR},
  437. </if>
  438. <if test="shortid != null">
  439. shortId = #{shortid,jdbcType=VARCHAR},
  440. </if>
  441. <if test="longid != null">
  442. longId = #{longid,jdbcType=VARCHAR},
  443. </if>
  444. <if test="windpowerstationid != null">
  445. windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
  446. </if>
  447. <if test="realtimeid != null">
  448. realTimeId = #{realtimeid,jdbcType=VARCHAR},
  449. </if>
  450. </set>
  451. where id = #{id,jdbcType=VARCHAR}
  452. </update>
  453. <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.ElectricaltestingPointDi">
  454. <!--
  455. WARNING - @mbg.generated
  456. This element is automatically generated by MyBatis Generator, do not modify.
  457. -->
  458. update electricaltestingpointdi
  459. set code = #{code,jdbcType=VARCHAR},
  460. name = #{name,jdbcType=VARCHAR},
  461. model = #{model,jdbcType=VARCHAR},
  462. valueUnit = #{valueunit,jdbcType=VARCHAR},
  463. englishName = #{englishname,jdbcType=VARCHAR},
  464. typeId = #{typeid,jdbcType=VARCHAR},
  465. modelId = #{modelid,jdbcType=VARCHAR},
  466. maxVal = #{maxval,jdbcType=DOUBLE},
  467. MinVal = #{minval,jdbcType=DOUBLE},
  468. reasonableMaxVal = #{reasonablemaxval,jdbcType=DOUBLE},
  469. reasonableMinVal = #{reasonableminval,jdbcType=DOUBLE},
  470. electricalid = #{electricalid,jdbcType=VARCHAR},
  471. uniformCode = #{uniformcode,jdbcType=VARCHAR},
  472. shortId = #{shortid,jdbcType=VARCHAR},
  473. longId = #{longid,jdbcType=VARCHAR},
  474. windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
  475. realTimeId = #{realtimeid,jdbcType=VARCHAR}
  476. where id = #{id,jdbcType=VARCHAR}
  477. </update>
  478. </mapper>