WobugeqMapper.xml 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238
  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.WobugeqMapper">
  4. <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Wobugeq">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="ID" jdbcType="NUMERIC" property="id" />
  10. <result column="BUGNUM" jdbcType="NVARCHAR" property="bugnum" />
  11. <result column="EQNUM" jdbcType="NVARCHAR" property="eqnum" />
  12. <result column="EQTYPE" jdbcType="NVARCHAR" property="eqtype" />
  13. <result column="EQCLASS" jdbcType="NVARCHAR" property="eqclass" />
  14. <result column="DESCRIPTION" jdbcType="NVARCHAR" property="description" />
  15. <result column="REPORTLABORNUM" jdbcType="NVARCHAR" property="reportlabornum" />
  16. <result column="FINDLABORNUM" jdbcType="NVARCHAR" property="findlabornum" />
  17. <result column="FINDTIME" jdbcType="TIMESTAMP" property="findtime" />
  18. <result column="BUGTYPE" jdbcType="NVARCHAR" property="bugtype" />
  19. <result column="RUNDEPTOPINION" jdbcType="NVARCHAR" property="rundeptopinion" />
  20. <result column="RUNDEPTLABORNUM" jdbcType="NVARCHAR" property="rundeptlabornum" />
  21. <result column="RUNDEPTBUGTYPE" jdbcType="NVARCHAR" property="rundeptbugtype" />
  22. <result column="ISPOWERCUT" jdbcType="NVARCHAR" property="ispowercut" />
  23. <result column="TRANSMITTIME" jdbcType="TIMESTAMP" property="transmittime" />
  24. <result column="TRANSMITDEPTNUM" jdbcType="NVARCHAR" property="transmitdeptnum" />
  25. <result column="PRODTDEPTOPINION" jdbcType="NVARCHAR" property="prodtdeptopinion" />
  26. <result column="PRODTDEPTTIME" jdbcType="TIMESTAMP" property="prodtdepttime" />
  27. <result column="LOCATION" jdbcType="NVARCHAR" property="location" />
  28. <result column="PRODTDEPTLABORNUM" jdbcType="NVARCHAR" property="prodtdeptlabornum" />
  29. <result column="REPAIRDEPTOPINION" jdbcType="NVARCHAR" property="repairdeptopinion" />
  30. <result column="REPAIRDEPTBUGTYPE" jdbcType="NVARCHAR" property="repairdeptbugtype" />
  31. <result column="REPAIRDEPTTIME" jdbcType="TIMESTAMP" property="repairdepttime" />
  32. <result column="REPAIRDEPTLABORNUM" jdbcType="NVARCHAR" property="repairdeptlabornum" />
  33. <result column="REPAIREDTIME" jdbcType="TIMESTAMP" property="repairedtime" />
  34. <result column="REPAIREDCOMMENT" jdbcType="NVARCHAR" property="repairedcomment" />
  35. <result column="ISRESOLVED" jdbcType="NVARCHAR" property="isresolved" />
  36. <result column="UNRESOLVEDBUG" jdbcType="NVARCHAR" property="unresolvedbug" />
  37. <result column="ISDEGRADED" jdbcType="NVARCHAR" property="isdegraded" />
  38. <result column="DEGRADEBUGTYPE" jdbcType="NVARCHAR" property="degradebugtype" />
  39. <result column="CHECKDEPTOPINION" jdbcType="NVARCHAR" property="checkdeptopinion" />
  40. <result column="CHECKTIME" jdbcType="TIMESTAMP" property="checktime" />
  41. <result column="CHECKDEPTLABORNUM" jdbcType="NVARCHAR" property="checkdeptlabornum" />
  42. <result column="LASTBUGTYPE" jdbcType="NVARCHAR" property="lastbugtype" />
  43. <result column="BUGANALIS" jdbcType="NVARCHAR" property="buganalis" />
  44. <result column="REMARK" jdbcType="NVARCHAR" property="remark" />
  45. <result column="STATUS" jdbcType="NVARCHAR" property="status" />
  46. <result column="STATUSDATE" jdbcType="TIMESTAMP" property="statusdate" />
  47. <result column="APPROVELABORNUM" jdbcType="NVARCHAR" property="approvelabornum" />
  48. <result column="SITENUM" jdbcType="NVARCHAR" property="sitenum" />
  49. <result column="CORPNUM" jdbcType="NVARCHAR" property="corpnum" />
  50. <result column="LOADEROPINION" jdbcType="NVARCHAR" property="loaderopinion" />
  51. <result column="CJZROPINION" jdbcType="NVARCHAR" property="cjzropinion" />
  52. <result column="YIJICHUSHI" jdbcType="NVARCHAR" property="yijichushi" />
  53. <result column="YXISPOWERCUT" jdbcType="NVARCHAR" property="yxispowercut" />
  54. <result column="DEPARTURETIME" jdbcType="TIMESTAMP" property="departuretime" />
  55. <result column="ARRIVALTIME" jdbcType="TIMESTAMP" property="arrivaltime" />
  56. <result column="WORKLEADER" jdbcType="NVARCHAR" property="workleader" />
  57. <result column="WORKGROUP" jdbcType="NVARCHAR" property="workgroup" />
  58. <result column="STAFFNUMBER" jdbcType="NVARCHAR" property="staffnumber" />
  59. <result column="WORKGROUP1" jdbcType="NVARCHAR" property="workgroup1" />
  60. <result column="WORKGROUP2" jdbcType="NVARCHAR" property="workgroup2" />
  61. <result column="ACUSSTA" jdbcType="NVARCHAR" property="acussta" />
  62. <result column="GRIDTIME" jdbcType="TIMESTAMP" property="gridtime" />
  63. <result column="NODETYPE" jdbcType="NVARCHAR" property="nodetype" />
  64. <result column="WTNUM" jdbcType="NVARCHAR" property="wtnum" />
  65. <result column="FAILURECODE" jdbcType="NVARCHAR" property="failurecode" />
  66. <result column="WFNUM" jdbcType="NVARCHAR" property="wfnum" />
  67. <result column="AVGWINSPE" jdbcType="DECIMAL" property="avgwinspe" />
  68. <result column="CLASSIFICATION" jdbcType="NVARCHAR" property="classification" />
  69. <result column="REPAIRDEPTBUGTYPE1" jdbcType="NVARCHAR" property="repairdeptbugtype1" />
  70. <result column="WSPEED" jdbcType="DECIMAL" property="wspeed" />
  71. <result column="WARNID" jdbcType="NUMERIC" property="warnid" />
  72. <result column="SNAPID" jdbcType="NVARCHAR" property="snapid" />
  73. <result column="SNAPNAME" jdbcType="NVARCHAR" property="snapname" />
  74. </resultMap>
  75. <sql id="Example_Where_Clause">
  76. <!--
  77. WARNING - @mbg.generated
  78. This element is automatically generated by MyBatis Generator, do not modify.
  79. -->
  80. <where>
  81. <foreach collection="oredCriteria" item="criteria" separator="or">
  82. <if test="criteria.valid">
  83. <trim prefix="(" prefixOverrides="and" suffix=")">
  84. <foreach collection="criteria.criteria" item="criterion">
  85. <choose>
  86. <when test="criterion.noValue">
  87. and ${criterion.condition}
  88. </when>
  89. <when test="criterion.singleValue">
  90. and ${criterion.condition} #{criterion.value}
  91. </when>
  92. <when test="criterion.betweenValue">
  93. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  94. </when>
  95. <when test="criterion.listValue">
  96. and ${criterion.condition}
  97. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  98. #{listItem}
  99. </foreach>
  100. </when>
  101. </choose>
  102. </foreach>
  103. </trim>
  104. </if>
  105. </foreach>
  106. </where>
  107. </sql>
  108. <sql id="Update_By_Example_Where_Clause">
  109. <!--
  110. WARNING - @mbg.generated
  111. This element is automatically generated by MyBatis Generator, do not modify.
  112. -->
  113. <where>
  114. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  115. <if test="criteria.valid">
  116. <trim prefix="(" prefixOverrides="and" suffix=")">
  117. <foreach collection="criteria.criteria" item="criterion">
  118. <choose>
  119. <when test="criterion.noValue">
  120. and ${criterion.condition}
  121. </when>
  122. <when test="criterion.singleValue">
  123. and ${criterion.condition} #{criterion.value}
  124. </when>
  125. <when test="criterion.betweenValue">
  126. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  127. </when>
  128. <when test="criterion.listValue">
  129. and ${criterion.condition}
  130. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  131. #{listItem}
  132. </foreach>
  133. </when>
  134. </choose>
  135. </foreach>
  136. </trim>
  137. </if>
  138. </foreach>
  139. </where>
  140. </sql>
  141. <sql id="Base_Column_List">
  142. <!--
  143. WARNING - @mbg.generated
  144. This element is automatically generated by MyBatis Generator, do not modify.
  145. -->
  146. ID, BUGNUM, EQNUM, EQTYPE, EQCLASS, DESCRIPTION, REPORTLABORNUM, FINDLABORNUM, FINDTIME,
  147. BUGTYPE, RUNDEPTOPINION, RUNDEPTLABORNUM, RUNDEPTBUGTYPE, ISPOWERCUT, TRANSMITTIME,
  148. TRANSMITDEPTNUM, PRODTDEPTOPINION, PRODTDEPTTIME, LOCATION, PRODTDEPTLABORNUM, REPAIRDEPTOPINION,
  149. REPAIRDEPTBUGTYPE, REPAIRDEPTTIME, REPAIRDEPTLABORNUM, REPAIREDTIME, REPAIREDCOMMENT,
  150. ISRESOLVED, UNRESOLVEDBUG, ISDEGRADED, DEGRADEBUGTYPE, CHECKDEPTOPINION, CHECKTIME,
  151. CHECKDEPTLABORNUM, LASTBUGTYPE, BUGANALIS, REMARK, STATUS, STATUSDATE, APPROVELABORNUM,
  152. SITENUM, CORPNUM, LOADEROPINION, CJZROPINION, YIJICHUSHI, YXISPOWERCUT, DEPARTURETIME,
  153. ARRIVALTIME, WORKLEADER, WORKGROUP, STAFFNUMBER, WORKGROUP1, WORKGROUP2, ACUSSTA,
  154. GRIDTIME, NODETYPE, WTNUM, FAILURECODE, WFNUM, AVGWINSPE, CLASSIFICATION, REPAIRDEPTBUGTYPE1,
  155. WSPEED, WARNID, SNAPID, SNAPNAME
  156. </sql>
  157. <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WobugeqExample" resultMap="BaseResultMap">
  158. <!--
  159. WARNING - @mbg.generated
  160. This element is automatically generated by MyBatis Generator, do not modify.
  161. -->
  162. select
  163. <if test="distinct">
  164. distinct
  165. </if>
  166. <include refid="Base_Column_List" />
  167. from WOBUGEQ
  168. <if test="_parameter != null">
  169. <include refid="Example_Where_Clause" />
  170. </if>
  171. <if test="orderByClause != null">
  172. order by ${orderByClause}
  173. </if>
  174. </select>
  175. <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
  176. <!--
  177. WARNING - @mbg.generated
  178. This element is automatically generated by MyBatis Generator, do not modify.
  179. -->
  180. select
  181. <include refid="Base_Column_List" />
  182. from WOBUGEQ
  183. where ID = #{id,jdbcType=NUMERIC}
  184. </select>
  185. <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
  186. <!--
  187. WARNING - @mbg.generated
  188. This element is automatically generated by MyBatis Generator, do not modify.
  189. -->
  190. delete from WOBUGEQ
  191. where ID = #{id,jdbcType=NUMERIC}
  192. </delete>
  193. <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WobugeqExample">
  194. <!--
  195. WARNING - @mbg.generated
  196. This element is automatically generated by MyBatis Generator, do not modify.
  197. -->
  198. delete from WOBUGEQ
  199. <if test="_parameter != null">
  200. <include refid="Example_Where_Clause" />
  201. </if>
  202. </delete>
  203. <insert id="insert" parameterType="com.gyee.frame.model.auto.Wobugeq">
  204. <!--
  205. WARNING - @mbg.generated
  206. This element is automatically generated by MyBatis Generator, do not modify.
  207. -->
  208. insert into WOBUGEQ (ID, BUGNUM, EQNUM,
  209. EQTYPE, EQCLASS, DESCRIPTION,
  210. REPORTLABORNUM, FINDLABORNUM, FINDTIME,
  211. BUGTYPE, RUNDEPTOPINION, RUNDEPTLABORNUM,
  212. RUNDEPTBUGTYPE, ISPOWERCUT, TRANSMITTIME,
  213. TRANSMITDEPTNUM, PRODTDEPTOPINION, PRODTDEPTTIME,
  214. LOCATION, PRODTDEPTLABORNUM, REPAIRDEPTOPINION,
  215. REPAIRDEPTBUGTYPE, REPAIRDEPTTIME, REPAIRDEPTLABORNUM,
  216. REPAIREDTIME, REPAIREDCOMMENT, ISRESOLVED,
  217. UNRESOLVEDBUG, ISDEGRADED, DEGRADEBUGTYPE,
  218. CHECKDEPTOPINION, CHECKTIME, CHECKDEPTLABORNUM,
  219. LASTBUGTYPE, BUGANALIS, REMARK,
  220. STATUS, STATUSDATE, APPROVELABORNUM,
  221. SITENUM, CORPNUM, LOADEROPINION,
  222. CJZROPINION, YIJICHUSHI, YXISPOWERCUT,
  223. DEPARTURETIME, ARRIVALTIME, WORKLEADER,
  224. WORKGROUP, STAFFNUMBER, WORKGROUP1,
  225. WORKGROUP2, ACUSSTA, GRIDTIME,
  226. NODETYPE, WTNUM, FAILURECODE,
  227. WFNUM, AVGWINSPE, CLASSIFICATION,
  228. REPAIRDEPTBUGTYPE1, WSPEED, WARNID,
  229. SNAPID, SNAPNAME)
  230. values (#{id,jdbcType=NUMERIC}, #{bugnum,jdbcType=NVARCHAR}, #{eqnum,jdbcType=NVARCHAR},
  231. #{eqtype,jdbcType=NVARCHAR}, #{eqclass,jdbcType=NVARCHAR}, #{description,jdbcType=NVARCHAR},
  232. #{reportlabornum,jdbcType=NVARCHAR}, #{findlabornum,jdbcType=NVARCHAR}, #{findtime,jdbcType=TIMESTAMP},
  233. #{bugtype,jdbcType=NVARCHAR}, #{rundeptopinion,jdbcType=NVARCHAR}, #{rundeptlabornum,jdbcType=NVARCHAR},
  234. #{rundeptbugtype,jdbcType=NVARCHAR}, #{ispowercut,jdbcType=NVARCHAR}, #{transmittime,jdbcType=TIMESTAMP},
  235. #{transmitdeptnum,jdbcType=NVARCHAR}, #{prodtdeptopinion,jdbcType=NVARCHAR}, #{prodtdepttime,jdbcType=TIMESTAMP},
  236. #{location,jdbcType=NVARCHAR}, #{prodtdeptlabornum,jdbcType=NVARCHAR}, #{repairdeptopinion,jdbcType=NVARCHAR},
  237. #{repairdeptbugtype,jdbcType=NVARCHAR}, #{repairdepttime,jdbcType=TIMESTAMP}, #{repairdeptlabornum,jdbcType=NVARCHAR},
  238. #{repairedtime,jdbcType=TIMESTAMP}, #{repairedcomment,jdbcType=NVARCHAR}, #{isresolved,jdbcType=NVARCHAR},
  239. #{unresolvedbug,jdbcType=NVARCHAR}, #{isdegraded,jdbcType=NVARCHAR}, #{degradebugtype,jdbcType=NVARCHAR},
  240. #{checkdeptopinion,jdbcType=NVARCHAR}, #{checktime,jdbcType=TIMESTAMP}, #{checkdeptlabornum,jdbcType=NVARCHAR},
  241. #{lastbugtype,jdbcType=NVARCHAR}, #{buganalis,jdbcType=NVARCHAR}, #{remark,jdbcType=NVARCHAR},
  242. #{status,jdbcType=NVARCHAR}, #{statusdate,jdbcType=TIMESTAMP}, #{approvelabornum,jdbcType=NVARCHAR},
  243. #{sitenum,jdbcType=NVARCHAR}, #{corpnum,jdbcType=NVARCHAR}, #{loaderopinion,jdbcType=NVARCHAR},
  244. #{cjzropinion,jdbcType=NVARCHAR}, #{yijichushi,jdbcType=NVARCHAR}, #{yxispowercut,jdbcType=NVARCHAR},
  245. #{departuretime,jdbcType=TIMESTAMP}, #{arrivaltime,jdbcType=TIMESTAMP}, #{workleader,jdbcType=NVARCHAR},
  246. #{workgroup,jdbcType=NVARCHAR}, #{staffnumber,jdbcType=NVARCHAR}, #{workgroup1,jdbcType=NVARCHAR},
  247. #{workgroup2,jdbcType=NVARCHAR}, #{acussta,jdbcType=NVARCHAR}, #{gridtime,jdbcType=TIMESTAMP},
  248. #{nodetype,jdbcType=NVARCHAR}, #{wtnum,jdbcType=NVARCHAR}, #{failurecode,jdbcType=NVARCHAR},
  249. #{wfnum,jdbcType=NVARCHAR}, #{avgwinspe,jdbcType=DECIMAL}, #{classification,jdbcType=NVARCHAR},
  250. #{repairdeptbugtype1,jdbcType=NVARCHAR}, #{wspeed,jdbcType=DECIMAL}, #{warnid,jdbcType=NUMERIC},
  251. #{snapid,jdbcType=NVARCHAR}, #{snapname,jdbcType=NVARCHAR})
  252. </insert>
  253. <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Wobugeq">
  254. <!--
  255. WARNING - @mbg.generated
  256. This element is automatically generated by MyBatis Generator, do not modify.
  257. -->
  258. insert into WOBUGEQ
  259. <trim prefix="(" suffix=")" suffixOverrides=",">
  260. <if test="id != null">
  261. ID,
  262. </if>
  263. <if test="bugnum != null">
  264. BUGNUM,
  265. </if>
  266. <if test="eqnum != null">
  267. EQNUM,
  268. </if>
  269. <if test="eqtype != null">
  270. EQTYPE,
  271. </if>
  272. <if test="eqclass != null">
  273. EQCLASS,
  274. </if>
  275. <if test="description != null">
  276. DESCRIPTION,
  277. </if>
  278. <if test="reportlabornum != null">
  279. REPORTLABORNUM,
  280. </if>
  281. <if test="findlabornum != null">
  282. FINDLABORNUM,
  283. </if>
  284. <if test="findtime != null">
  285. FINDTIME,
  286. </if>
  287. <if test="bugtype != null">
  288. BUGTYPE,
  289. </if>
  290. <if test="rundeptopinion != null">
  291. RUNDEPTOPINION,
  292. </if>
  293. <if test="rundeptlabornum != null">
  294. RUNDEPTLABORNUM,
  295. </if>
  296. <if test="rundeptbugtype != null">
  297. RUNDEPTBUGTYPE,
  298. </if>
  299. <if test="ispowercut != null">
  300. ISPOWERCUT,
  301. </if>
  302. <if test="transmittime != null">
  303. TRANSMITTIME,
  304. </if>
  305. <if test="transmitdeptnum != null">
  306. TRANSMITDEPTNUM,
  307. </if>
  308. <if test="prodtdeptopinion != null">
  309. PRODTDEPTOPINION,
  310. </if>
  311. <if test="prodtdepttime != null">
  312. PRODTDEPTTIME,
  313. </if>
  314. <if test="location != null">
  315. LOCATION,
  316. </if>
  317. <if test="prodtdeptlabornum != null">
  318. PRODTDEPTLABORNUM,
  319. </if>
  320. <if test="repairdeptopinion != null">
  321. REPAIRDEPTOPINION,
  322. </if>
  323. <if test="repairdeptbugtype != null">
  324. REPAIRDEPTBUGTYPE,
  325. </if>
  326. <if test="repairdepttime != null">
  327. REPAIRDEPTTIME,
  328. </if>
  329. <if test="repairdeptlabornum != null">
  330. REPAIRDEPTLABORNUM,
  331. </if>
  332. <if test="repairedtime != null">
  333. REPAIREDTIME,
  334. </if>
  335. <if test="repairedcomment != null">
  336. REPAIREDCOMMENT,
  337. </if>
  338. <if test="isresolved != null">
  339. ISRESOLVED,
  340. </if>
  341. <if test="unresolvedbug != null">
  342. UNRESOLVEDBUG,
  343. </if>
  344. <if test="isdegraded != null">
  345. ISDEGRADED,
  346. </if>
  347. <if test="degradebugtype != null">
  348. DEGRADEBUGTYPE,
  349. </if>
  350. <if test="checkdeptopinion != null">
  351. CHECKDEPTOPINION,
  352. </if>
  353. <if test="checktime != null">
  354. CHECKTIME,
  355. </if>
  356. <if test="checkdeptlabornum != null">
  357. CHECKDEPTLABORNUM,
  358. </if>
  359. <if test="lastbugtype != null">
  360. LASTBUGTYPE,
  361. </if>
  362. <if test="buganalis != null">
  363. BUGANALIS,
  364. </if>
  365. <if test="remark != null">
  366. REMARK,
  367. </if>
  368. <if test="status != null">
  369. STATUS,
  370. </if>
  371. <if test="statusdate != null">
  372. STATUSDATE,
  373. </if>
  374. <if test="approvelabornum != null">
  375. APPROVELABORNUM,
  376. </if>
  377. <if test="sitenum != null">
  378. SITENUM,
  379. </if>
  380. <if test="corpnum != null">
  381. CORPNUM,
  382. </if>
  383. <if test="loaderopinion != null">
  384. LOADEROPINION,
  385. </if>
  386. <if test="cjzropinion != null">
  387. CJZROPINION,
  388. </if>
  389. <if test="yijichushi != null">
  390. YIJICHUSHI,
  391. </if>
  392. <if test="yxispowercut != null">
  393. YXISPOWERCUT,
  394. </if>
  395. <if test="departuretime != null">
  396. DEPARTURETIME,
  397. </if>
  398. <if test="arrivaltime != null">
  399. ARRIVALTIME,
  400. </if>
  401. <if test="workleader != null">
  402. WORKLEADER,
  403. </if>
  404. <if test="workgroup != null">
  405. WORKGROUP,
  406. </if>
  407. <if test="staffnumber != null">
  408. STAFFNUMBER,
  409. </if>
  410. <if test="workgroup1 != null">
  411. WORKGROUP1,
  412. </if>
  413. <if test="workgroup2 != null">
  414. WORKGROUP2,
  415. </if>
  416. <if test="acussta != null">
  417. ACUSSTA,
  418. </if>
  419. <if test="gridtime != null">
  420. GRIDTIME,
  421. </if>
  422. <if test="nodetype != null">
  423. NODETYPE,
  424. </if>
  425. <if test="wtnum != null">
  426. WTNUM,
  427. </if>
  428. <if test="failurecode != null">
  429. FAILURECODE,
  430. </if>
  431. <if test="wfnum != null">
  432. WFNUM,
  433. </if>
  434. <if test="avgwinspe != null">
  435. AVGWINSPE,
  436. </if>
  437. <if test="classification != null">
  438. CLASSIFICATION,
  439. </if>
  440. <if test="repairdeptbugtype1 != null">
  441. REPAIRDEPTBUGTYPE1,
  442. </if>
  443. <if test="wspeed != null">
  444. WSPEED,
  445. </if>
  446. <if test="warnid != null">
  447. WARNID,
  448. </if>
  449. <if test="snapid != null">
  450. SNAPID,
  451. </if>
  452. <if test="snapname != null">
  453. SNAPNAME,
  454. </if>
  455. </trim>
  456. <trim prefix="values (" suffix=")" suffixOverrides=",">
  457. <if test="id != null">
  458. #{id,jdbcType=NUMERIC},
  459. </if>
  460. <if test="bugnum != null">
  461. #{bugnum,jdbcType=NVARCHAR},
  462. </if>
  463. <if test="eqnum != null">
  464. #{eqnum,jdbcType=NVARCHAR},
  465. </if>
  466. <if test="eqtype != null">
  467. #{eqtype,jdbcType=NVARCHAR},
  468. </if>
  469. <if test="eqclass != null">
  470. #{eqclass,jdbcType=NVARCHAR},
  471. </if>
  472. <if test="description != null">
  473. #{description,jdbcType=NVARCHAR},
  474. </if>
  475. <if test="reportlabornum != null">
  476. #{reportlabornum,jdbcType=NVARCHAR},
  477. </if>
  478. <if test="findlabornum != null">
  479. #{findlabornum,jdbcType=NVARCHAR},
  480. </if>
  481. <if test="findtime != null">
  482. #{findtime,jdbcType=TIMESTAMP},
  483. </if>
  484. <if test="bugtype != null">
  485. #{bugtype,jdbcType=NVARCHAR},
  486. </if>
  487. <if test="rundeptopinion != null">
  488. #{rundeptopinion,jdbcType=NVARCHAR},
  489. </if>
  490. <if test="rundeptlabornum != null">
  491. #{rundeptlabornum,jdbcType=NVARCHAR},
  492. </if>
  493. <if test="rundeptbugtype != null">
  494. #{rundeptbugtype,jdbcType=NVARCHAR},
  495. </if>
  496. <if test="ispowercut != null">
  497. #{ispowercut,jdbcType=NVARCHAR},
  498. </if>
  499. <if test="transmittime != null">
  500. #{transmittime,jdbcType=TIMESTAMP},
  501. </if>
  502. <if test="transmitdeptnum != null">
  503. #{transmitdeptnum,jdbcType=NVARCHAR},
  504. </if>
  505. <if test="prodtdeptopinion != null">
  506. #{prodtdeptopinion,jdbcType=NVARCHAR},
  507. </if>
  508. <if test="prodtdepttime != null">
  509. #{prodtdepttime,jdbcType=TIMESTAMP},
  510. </if>
  511. <if test="location != null">
  512. #{location,jdbcType=NVARCHAR},
  513. </if>
  514. <if test="prodtdeptlabornum != null">
  515. #{prodtdeptlabornum,jdbcType=NVARCHAR},
  516. </if>
  517. <if test="repairdeptopinion != null">
  518. #{repairdeptopinion,jdbcType=NVARCHAR},
  519. </if>
  520. <if test="repairdeptbugtype != null">
  521. #{repairdeptbugtype,jdbcType=NVARCHAR},
  522. </if>
  523. <if test="repairdepttime != null">
  524. #{repairdepttime,jdbcType=TIMESTAMP},
  525. </if>
  526. <if test="repairdeptlabornum != null">
  527. #{repairdeptlabornum,jdbcType=NVARCHAR},
  528. </if>
  529. <if test="repairedtime != null">
  530. #{repairedtime,jdbcType=TIMESTAMP},
  531. </if>
  532. <if test="repairedcomment != null">
  533. #{repairedcomment,jdbcType=NVARCHAR},
  534. </if>
  535. <if test="isresolved != null">
  536. #{isresolved,jdbcType=NVARCHAR},
  537. </if>
  538. <if test="unresolvedbug != null">
  539. #{unresolvedbug,jdbcType=NVARCHAR},
  540. </if>
  541. <if test="isdegraded != null">
  542. #{isdegraded,jdbcType=NVARCHAR},
  543. </if>
  544. <if test="degradebugtype != null">
  545. #{degradebugtype,jdbcType=NVARCHAR},
  546. </if>
  547. <if test="checkdeptopinion != null">
  548. #{checkdeptopinion,jdbcType=NVARCHAR},
  549. </if>
  550. <if test="checktime != null">
  551. #{checktime,jdbcType=TIMESTAMP},
  552. </if>
  553. <if test="checkdeptlabornum != null">
  554. #{checkdeptlabornum,jdbcType=NVARCHAR},
  555. </if>
  556. <if test="lastbugtype != null">
  557. #{lastbugtype,jdbcType=NVARCHAR},
  558. </if>
  559. <if test="buganalis != null">
  560. #{buganalis,jdbcType=NVARCHAR},
  561. </if>
  562. <if test="remark != null">
  563. #{remark,jdbcType=NVARCHAR},
  564. </if>
  565. <if test="status != null">
  566. #{status,jdbcType=NVARCHAR},
  567. </if>
  568. <if test="statusdate != null">
  569. #{statusdate,jdbcType=TIMESTAMP},
  570. </if>
  571. <if test="approvelabornum != null">
  572. #{approvelabornum,jdbcType=NVARCHAR},
  573. </if>
  574. <if test="sitenum != null">
  575. #{sitenum,jdbcType=NVARCHAR},
  576. </if>
  577. <if test="corpnum != null">
  578. #{corpnum,jdbcType=NVARCHAR},
  579. </if>
  580. <if test="loaderopinion != null">
  581. #{loaderopinion,jdbcType=NVARCHAR},
  582. </if>
  583. <if test="cjzropinion != null">
  584. #{cjzropinion,jdbcType=NVARCHAR},
  585. </if>
  586. <if test="yijichushi != null">
  587. #{yijichushi,jdbcType=NVARCHAR},
  588. </if>
  589. <if test="yxispowercut != null">
  590. #{yxispowercut,jdbcType=NVARCHAR},
  591. </if>
  592. <if test="departuretime != null">
  593. #{departuretime,jdbcType=TIMESTAMP},
  594. </if>
  595. <if test="arrivaltime != null">
  596. #{arrivaltime,jdbcType=TIMESTAMP},
  597. </if>
  598. <if test="workleader != null">
  599. #{workleader,jdbcType=NVARCHAR},
  600. </if>
  601. <if test="workgroup != null">
  602. #{workgroup,jdbcType=NVARCHAR},
  603. </if>
  604. <if test="staffnumber != null">
  605. #{staffnumber,jdbcType=NVARCHAR},
  606. </if>
  607. <if test="workgroup1 != null">
  608. #{workgroup1,jdbcType=NVARCHAR},
  609. </if>
  610. <if test="workgroup2 != null">
  611. #{workgroup2,jdbcType=NVARCHAR},
  612. </if>
  613. <if test="acussta != null">
  614. #{acussta,jdbcType=NVARCHAR},
  615. </if>
  616. <if test="gridtime != null">
  617. #{gridtime,jdbcType=TIMESTAMP},
  618. </if>
  619. <if test="nodetype != null">
  620. #{nodetype,jdbcType=NVARCHAR},
  621. </if>
  622. <if test="wtnum != null">
  623. #{wtnum,jdbcType=NVARCHAR},
  624. </if>
  625. <if test="failurecode != null">
  626. #{failurecode,jdbcType=NVARCHAR},
  627. </if>
  628. <if test="wfnum != null">
  629. #{wfnum,jdbcType=NVARCHAR},
  630. </if>
  631. <if test="avgwinspe != null">
  632. #{avgwinspe,jdbcType=DECIMAL},
  633. </if>
  634. <if test="classification != null">
  635. #{classification,jdbcType=NVARCHAR},
  636. </if>
  637. <if test="repairdeptbugtype1 != null">
  638. #{repairdeptbugtype1,jdbcType=NVARCHAR},
  639. </if>
  640. <if test="wspeed != null">
  641. #{wspeed,jdbcType=DECIMAL},
  642. </if>
  643. <if test="warnid != null">
  644. #{warnid,jdbcType=NUMERIC},
  645. </if>
  646. <if test="snapid != null">
  647. #{snapid,jdbcType=NVARCHAR},
  648. </if>
  649. <if test="snapname != null">
  650. #{snapname,jdbcType=NVARCHAR},
  651. </if>
  652. </trim>
  653. </insert>
  654. <select id="countByExample" parameterType="com.gyee.frame.model.auto.WobugeqExample" resultType="java.lang.Long">
  655. <!--
  656. WARNING - @mbg.generated
  657. This element is automatically generated by MyBatis Generator, do not modify.
  658. -->
  659. select count(*) from WOBUGEQ
  660. <if test="_parameter != null">
  661. <include refid="Example_Where_Clause" />
  662. </if>
  663. </select>
  664. <update id="updateByExampleSelective" parameterType="map">
  665. <!--
  666. WARNING - @mbg.generated
  667. This element is automatically generated by MyBatis Generator, do not modify.
  668. -->
  669. update WOBUGEQ
  670. <set>
  671. <if test="record.id != null">
  672. ID = #{record.id,jdbcType=NUMERIC},
  673. </if>
  674. <if test="record.bugnum != null">
  675. BUGNUM = #{record.bugnum,jdbcType=NVARCHAR},
  676. </if>
  677. <if test="record.eqnum != null">
  678. EQNUM = #{record.eqnum,jdbcType=NVARCHAR},
  679. </if>
  680. <if test="record.eqtype != null">
  681. EQTYPE = #{record.eqtype,jdbcType=NVARCHAR},
  682. </if>
  683. <if test="record.eqclass != null">
  684. EQCLASS = #{record.eqclass,jdbcType=NVARCHAR},
  685. </if>
  686. <if test="record.description != null">
  687. DESCRIPTION = #{record.description,jdbcType=NVARCHAR},
  688. </if>
  689. <if test="record.reportlabornum != null">
  690. REPORTLABORNUM = #{record.reportlabornum,jdbcType=NVARCHAR},
  691. </if>
  692. <if test="record.findlabornum != null">
  693. FINDLABORNUM = #{record.findlabornum,jdbcType=NVARCHAR},
  694. </if>
  695. <if test="record.findtime != null">
  696. FINDTIME = #{record.findtime,jdbcType=TIMESTAMP},
  697. </if>
  698. <if test="record.bugtype != null">
  699. BUGTYPE = #{record.bugtype,jdbcType=NVARCHAR},
  700. </if>
  701. <if test="record.rundeptopinion != null">
  702. RUNDEPTOPINION = #{record.rundeptopinion,jdbcType=NVARCHAR},
  703. </if>
  704. <if test="record.rundeptlabornum != null">
  705. RUNDEPTLABORNUM = #{record.rundeptlabornum,jdbcType=NVARCHAR},
  706. </if>
  707. <if test="record.rundeptbugtype != null">
  708. RUNDEPTBUGTYPE = #{record.rundeptbugtype,jdbcType=NVARCHAR},
  709. </if>
  710. <if test="record.ispowercut != null">
  711. ISPOWERCUT = #{record.ispowercut,jdbcType=NVARCHAR},
  712. </if>
  713. <if test="record.transmittime != null">
  714. TRANSMITTIME = #{record.transmittime,jdbcType=TIMESTAMP},
  715. </if>
  716. <if test="record.transmitdeptnum != null">
  717. TRANSMITDEPTNUM = #{record.transmitdeptnum,jdbcType=NVARCHAR},
  718. </if>
  719. <if test="record.prodtdeptopinion != null">
  720. PRODTDEPTOPINION = #{record.prodtdeptopinion,jdbcType=NVARCHAR},
  721. </if>
  722. <if test="record.prodtdepttime != null">
  723. PRODTDEPTTIME = #{record.prodtdepttime,jdbcType=TIMESTAMP},
  724. </if>
  725. <if test="record.location != null">
  726. LOCATION = #{record.location,jdbcType=NVARCHAR},
  727. </if>
  728. <if test="record.prodtdeptlabornum != null">
  729. PRODTDEPTLABORNUM = #{record.prodtdeptlabornum,jdbcType=NVARCHAR},
  730. </if>
  731. <if test="record.repairdeptopinion != null">
  732. REPAIRDEPTOPINION = #{record.repairdeptopinion,jdbcType=NVARCHAR},
  733. </if>
  734. <if test="record.repairdeptbugtype != null">
  735. REPAIRDEPTBUGTYPE = #{record.repairdeptbugtype,jdbcType=NVARCHAR},
  736. </if>
  737. <if test="record.repairdepttime != null">
  738. REPAIRDEPTTIME = #{record.repairdepttime,jdbcType=TIMESTAMP},
  739. </if>
  740. <if test="record.repairdeptlabornum != null">
  741. REPAIRDEPTLABORNUM = #{record.repairdeptlabornum,jdbcType=NVARCHAR},
  742. </if>
  743. <if test="record.repairedtime != null">
  744. REPAIREDTIME = #{record.repairedtime,jdbcType=TIMESTAMP},
  745. </if>
  746. <if test="record.repairedcomment != null">
  747. REPAIREDCOMMENT = #{record.repairedcomment,jdbcType=NVARCHAR},
  748. </if>
  749. <if test="record.isresolved != null">
  750. ISRESOLVED = #{record.isresolved,jdbcType=NVARCHAR},
  751. </if>
  752. <if test="record.unresolvedbug != null">
  753. UNRESOLVEDBUG = #{record.unresolvedbug,jdbcType=NVARCHAR},
  754. </if>
  755. <if test="record.isdegraded != null">
  756. ISDEGRADED = #{record.isdegraded,jdbcType=NVARCHAR},
  757. </if>
  758. <if test="record.degradebugtype != null">
  759. DEGRADEBUGTYPE = #{record.degradebugtype,jdbcType=NVARCHAR},
  760. </if>
  761. <if test="record.checkdeptopinion != null">
  762. CHECKDEPTOPINION = #{record.checkdeptopinion,jdbcType=NVARCHAR},
  763. </if>
  764. <if test="record.checktime != null">
  765. CHECKTIME = #{record.checktime,jdbcType=TIMESTAMP},
  766. </if>
  767. <if test="record.checkdeptlabornum != null">
  768. CHECKDEPTLABORNUM = #{record.checkdeptlabornum,jdbcType=NVARCHAR},
  769. </if>
  770. <if test="record.lastbugtype != null">
  771. LASTBUGTYPE = #{record.lastbugtype,jdbcType=NVARCHAR},
  772. </if>
  773. <if test="record.buganalis != null">
  774. BUGANALIS = #{record.buganalis,jdbcType=NVARCHAR},
  775. </if>
  776. <if test="record.remark != null">
  777. REMARK = #{record.remark,jdbcType=NVARCHAR},
  778. </if>
  779. <if test="record.status != null">
  780. STATUS = #{record.status,jdbcType=NVARCHAR},
  781. </if>
  782. <if test="record.statusdate != null">
  783. STATUSDATE = #{record.statusdate,jdbcType=TIMESTAMP},
  784. </if>
  785. <if test="record.approvelabornum != null">
  786. APPROVELABORNUM = #{record.approvelabornum,jdbcType=NVARCHAR},
  787. </if>
  788. <if test="record.sitenum != null">
  789. SITENUM = #{record.sitenum,jdbcType=NVARCHAR},
  790. </if>
  791. <if test="record.corpnum != null">
  792. CORPNUM = #{record.corpnum,jdbcType=NVARCHAR},
  793. </if>
  794. <if test="record.loaderopinion != null">
  795. LOADEROPINION = #{record.loaderopinion,jdbcType=NVARCHAR},
  796. </if>
  797. <if test="record.cjzropinion != null">
  798. CJZROPINION = #{record.cjzropinion,jdbcType=NVARCHAR},
  799. </if>
  800. <if test="record.yijichushi != null">
  801. YIJICHUSHI = #{record.yijichushi,jdbcType=NVARCHAR},
  802. </if>
  803. <if test="record.yxispowercut != null">
  804. YXISPOWERCUT = #{record.yxispowercut,jdbcType=NVARCHAR},
  805. </if>
  806. <if test="record.departuretime != null">
  807. DEPARTURETIME = #{record.departuretime,jdbcType=TIMESTAMP},
  808. </if>
  809. <if test="record.arrivaltime != null">
  810. ARRIVALTIME = #{record.arrivaltime,jdbcType=TIMESTAMP},
  811. </if>
  812. <if test="record.workleader != null">
  813. WORKLEADER = #{record.workleader,jdbcType=NVARCHAR},
  814. </if>
  815. <if test="record.workgroup != null">
  816. WORKGROUP = #{record.workgroup,jdbcType=NVARCHAR},
  817. </if>
  818. <if test="record.staffnumber != null">
  819. STAFFNUMBER = #{record.staffnumber,jdbcType=NVARCHAR},
  820. </if>
  821. <if test="record.workgroup1 != null">
  822. WORKGROUP1 = #{record.workgroup1,jdbcType=NVARCHAR},
  823. </if>
  824. <if test="record.workgroup2 != null">
  825. WORKGROUP2 = #{record.workgroup2,jdbcType=NVARCHAR},
  826. </if>
  827. <if test="record.acussta != null">
  828. ACUSSTA = #{record.acussta,jdbcType=NVARCHAR},
  829. </if>
  830. <if test="record.gridtime != null">
  831. GRIDTIME = #{record.gridtime,jdbcType=TIMESTAMP},
  832. </if>
  833. <if test="record.nodetype != null">
  834. NODETYPE = #{record.nodetype,jdbcType=NVARCHAR},
  835. </if>
  836. <if test="record.wtnum != null">
  837. WTNUM = #{record.wtnum,jdbcType=NVARCHAR},
  838. </if>
  839. <if test="record.failurecode != null">
  840. FAILURECODE = #{record.failurecode,jdbcType=NVARCHAR},
  841. </if>
  842. <if test="record.wfnum != null">
  843. WFNUM = #{record.wfnum,jdbcType=NVARCHAR},
  844. </if>
  845. <if test="record.avgwinspe != null">
  846. AVGWINSPE = #{record.avgwinspe,jdbcType=DECIMAL},
  847. </if>
  848. <if test="record.classification != null">
  849. CLASSIFICATION = #{record.classification,jdbcType=NVARCHAR},
  850. </if>
  851. <if test="record.repairdeptbugtype1 != null">
  852. REPAIRDEPTBUGTYPE1 = #{record.repairdeptbugtype1,jdbcType=NVARCHAR},
  853. </if>
  854. <if test="record.wspeed != null">
  855. WSPEED = #{record.wspeed,jdbcType=DECIMAL},
  856. </if>
  857. <if test="record.warnid != null">
  858. WARNID = #{record.warnid,jdbcType=NUMERIC},
  859. </if>
  860. <if test="record.snapid != null">
  861. SNAPID = #{record.snapid,jdbcType=NVARCHAR},
  862. </if>
  863. <if test="record.snapname != null">
  864. SNAPNAME = #{record.snapname,jdbcType=NVARCHAR},
  865. </if>
  866. </set>
  867. <if test="_parameter != null">
  868. <include refid="Update_By_Example_Where_Clause" />
  869. </if>
  870. </update>
  871. <update id="updateByExample" parameterType="map">
  872. <!--
  873. WARNING - @mbg.generated
  874. This element is automatically generated by MyBatis Generator, do not modify.
  875. -->
  876. update WOBUGEQ
  877. set ID = #{record.id,jdbcType=NUMERIC},
  878. BUGNUM = #{record.bugnum,jdbcType=NVARCHAR},
  879. EQNUM = #{record.eqnum,jdbcType=NVARCHAR},
  880. EQTYPE = #{record.eqtype,jdbcType=NVARCHAR},
  881. EQCLASS = #{record.eqclass,jdbcType=NVARCHAR},
  882. DESCRIPTION = #{record.description,jdbcType=NVARCHAR},
  883. REPORTLABORNUM = #{record.reportlabornum,jdbcType=NVARCHAR},
  884. FINDLABORNUM = #{record.findlabornum,jdbcType=NVARCHAR},
  885. FINDTIME = #{record.findtime,jdbcType=TIMESTAMP},
  886. BUGTYPE = #{record.bugtype,jdbcType=NVARCHAR},
  887. RUNDEPTOPINION = #{record.rundeptopinion,jdbcType=NVARCHAR},
  888. RUNDEPTLABORNUM = #{record.rundeptlabornum,jdbcType=NVARCHAR},
  889. RUNDEPTBUGTYPE = #{record.rundeptbugtype,jdbcType=NVARCHAR},
  890. ISPOWERCUT = #{record.ispowercut,jdbcType=NVARCHAR},
  891. TRANSMITTIME = #{record.transmittime,jdbcType=TIMESTAMP},
  892. TRANSMITDEPTNUM = #{record.transmitdeptnum,jdbcType=NVARCHAR},
  893. PRODTDEPTOPINION = #{record.prodtdeptopinion,jdbcType=NVARCHAR},
  894. PRODTDEPTTIME = #{record.prodtdepttime,jdbcType=TIMESTAMP},
  895. LOCATION = #{record.location,jdbcType=NVARCHAR},
  896. PRODTDEPTLABORNUM = #{record.prodtdeptlabornum,jdbcType=NVARCHAR},
  897. REPAIRDEPTOPINION = #{record.repairdeptopinion,jdbcType=NVARCHAR},
  898. REPAIRDEPTBUGTYPE = #{record.repairdeptbugtype,jdbcType=NVARCHAR},
  899. REPAIRDEPTTIME = #{record.repairdepttime,jdbcType=TIMESTAMP},
  900. REPAIRDEPTLABORNUM = #{record.repairdeptlabornum,jdbcType=NVARCHAR},
  901. REPAIREDTIME = #{record.repairedtime,jdbcType=TIMESTAMP},
  902. REPAIREDCOMMENT = #{record.repairedcomment,jdbcType=NVARCHAR},
  903. ISRESOLVED = #{record.isresolved,jdbcType=NVARCHAR},
  904. UNRESOLVEDBUG = #{record.unresolvedbug,jdbcType=NVARCHAR},
  905. ISDEGRADED = #{record.isdegraded,jdbcType=NVARCHAR},
  906. DEGRADEBUGTYPE = #{record.degradebugtype,jdbcType=NVARCHAR},
  907. CHECKDEPTOPINION = #{record.checkdeptopinion,jdbcType=NVARCHAR},
  908. CHECKTIME = #{record.checktime,jdbcType=TIMESTAMP},
  909. CHECKDEPTLABORNUM = #{record.checkdeptlabornum,jdbcType=NVARCHAR},
  910. LASTBUGTYPE = #{record.lastbugtype,jdbcType=NVARCHAR},
  911. BUGANALIS = #{record.buganalis,jdbcType=NVARCHAR},
  912. REMARK = #{record.remark,jdbcType=NVARCHAR},
  913. STATUS = #{record.status,jdbcType=NVARCHAR},
  914. STATUSDATE = #{record.statusdate,jdbcType=TIMESTAMP},
  915. APPROVELABORNUM = #{record.approvelabornum,jdbcType=NVARCHAR},
  916. SITENUM = #{record.sitenum,jdbcType=NVARCHAR},
  917. CORPNUM = #{record.corpnum,jdbcType=NVARCHAR},
  918. LOADEROPINION = #{record.loaderopinion,jdbcType=NVARCHAR},
  919. CJZROPINION = #{record.cjzropinion,jdbcType=NVARCHAR},
  920. YIJICHUSHI = #{record.yijichushi,jdbcType=NVARCHAR},
  921. YXISPOWERCUT = #{record.yxispowercut,jdbcType=NVARCHAR},
  922. DEPARTURETIME = #{record.departuretime,jdbcType=TIMESTAMP},
  923. ARRIVALTIME = #{record.arrivaltime,jdbcType=TIMESTAMP},
  924. WORKLEADER = #{record.workleader,jdbcType=NVARCHAR},
  925. WORKGROUP = #{record.workgroup,jdbcType=NVARCHAR},
  926. STAFFNUMBER = #{record.staffnumber,jdbcType=NVARCHAR},
  927. WORKGROUP1 = #{record.workgroup1,jdbcType=NVARCHAR},
  928. WORKGROUP2 = #{record.workgroup2,jdbcType=NVARCHAR},
  929. ACUSSTA = #{record.acussta,jdbcType=NVARCHAR},
  930. GRIDTIME = #{record.gridtime,jdbcType=TIMESTAMP},
  931. NODETYPE = #{record.nodetype,jdbcType=NVARCHAR},
  932. WTNUM = #{record.wtnum,jdbcType=NVARCHAR},
  933. FAILURECODE = #{record.failurecode,jdbcType=NVARCHAR},
  934. WFNUM = #{record.wfnum,jdbcType=NVARCHAR},
  935. AVGWINSPE = #{record.avgwinspe,jdbcType=DECIMAL},
  936. CLASSIFICATION = #{record.classification,jdbcType=NVARCHAR},
  937. REPAIRDEPTBUGTYPE1 = #{record.repairdeptbugtype1,jdbcType=NVARCHAR},
  938. WSPEED = #{record.wspeed,jdbcType=DECIMAL},
  939. WARNID = #{record.warnid,jdbcType=NUMERIC},
  940. SNAPID = #{record.snapid,jdbcType=NVARCHAR},
  941. SNAPNAME = #{record.snapname,jdbcType=NVARCHAR}
  942. <if test="_parameter != null">
  943. <include refid="Update_By_Example_Where_Clause" />
  944. </if>
  945. </update>
  946. <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Wobugeq">
  947. <!--
  948. WARNING - @mbg.generated
  949. This element is automatically generated by MyBatis Generator, do not modify.
  950. -->
  951. update WOBUGEQ
  952. <set>
  953. <if test="bugnum != null">
  954. BUGNUM = #{bugnum,jdbcType=NVARCHAR},
  955. </if>
  956. <if test="eqnum != null">
  957. EQNUM = #{eqnum,jdbcType=NVARCHAR},
  958. </if>
  959. <if test="eqtype != null">
  960. EQTYPE = #{eqtype,jdbcType=NVARCHAR},
  961. </if>
  962. <if test="eqclass != null">
  963. EQCLASS = #{eqclass,jdbcType=NVARCHAR},
  964. </if>
  965. <if test="description != null">
  966. DESCRIPTION = #{description,jdbcType=NVARCHAR},
  967. </if>
  968. <if test="reportlabornum != null">
  969. REPORTLABORNUM = #{reportlabornum,jdbcType=NVARCHAR},
  970. </if>
  971. <if test="findlabornum != null">
  972. FINDLABORNUM = #{findlabornum,jdbcType=NVARCHAR},
  973. </if>
  974. <if test="findtime != null">
  975. FINDTIME = #{findtime,jdbcType=TIMESTAMP},
  976. </if>
  977. <if test="bugtype != null">
  978. BUGTYPE = #{bugtype,jdbcType=NVARCHAR},
  979. </if>
  980. <if test="rundeptopinion != null">
  981. RUNDEPTOPINION = #{rundeptopinion,jdbcType=NVARCHAR},
  982. </if>
  983. <if test="rundeptlabornum != null">
  984. RUNDEPTLABORNUM = #{rundeptlabornum,jdbcType=NVARCHAR},
  985. </if>
  986. <if test="rundeptbugtype != null">
  987. RUNDEPTBUGTYPE = #{rundeptbugtype,jdbcType=NVARCHAR},
  988. </if>
  989. <if test="ispowercut != null">
  990. ISPOWERCUT = #{ispowercut,jdbcType=NVARCHAR},
  991. </if>
  992. <if test="transmittime != null">
  993. TRANSMITTIME = #{transmittime,jdbcType=TIMESTAMP},
  994. </if>
  995. <if test="transmitdeptnum != null">
  996. TRANSMITDEPTNUM = #{transmitdeptnum,jdbcType=NVARCHAR},
  997. </if>
  998. <if test="prodtdeptopinion != null">
  999. PRODTDEPTOPINION = #{prodtdeptopinion,jdbcType=NVARCHAR},
  1000. </if>
  1001. <if test="prodtdepttime != null">
  1002. PRODTDEPTTIME = #{prodtdepttime,jdbcType=TIMESTAMP},
  1003. </if>
  1004. <if test="location != null">
  1005. LOCATION = #{location,jdbcType=NVARCHAR},
  1006. </if>
  1007. <if test="prodtdeptlabornum != null">
  1008. PRODTDEPTLABORNUM = #{prodtdeptlabornum,jdbcType=NVARCHAR},
  1009. </if>
  1010. <if test="repairdeptopinion != null">
  1011. REPAIRDEPTOPINION = #{repairdeptopinion,jdbcType=NVARCHAR},
  1012. </if>
  1013. <if test="repairdeptbugtype != null">
  1014. REPAIRDEPTBUGTYPE = #{repairdeptbugtype,jdbcType=NVARCHAR},
  1015. </if>
  1016. <if test="repairdepttime != null">
  1017. REPAIRDEPTTIME = #{repairdepttime,jdbcType=TIMESTAMP},
  1018. </if>
  1019. <if test="repairdeptlabornum != null">
  1020. REPAIRDEPTLABORNUM = #{repairdeptlabornum,jdbcType=NVARCHAR},
  1021. </if>
  1022. <if test="repairedtime != null">
  1023. REPAIREDTIME = #{repairedtime,jdbcType=TIMESTAMP},
  1024. </if>
  1025. <if test="repairedcomment != null">
  1026. REPAIREDCOMMENT = #{repairedcomment,jdbcType=NVARCHAR},
  1027. </if>
  1028. <if test="isresolved != null">
  1029. ISRESOLVED = #{isresolved,jdbcType=NVARCHAR},
  1030. </if>
  1031. <if test="unresolvedbug != null">
  1032. UNRESOLVEDBUG = #{unresolvedbug,jdbcType=NVARCHAR},
  1033. </if>
  1034. <if test="isdegraded != null">
  1035. ISDEGRADED = #{isdegraded,jdbcType=NVARCHAR},
  1036. </if>
  1037. <if test="degradebugtype != null">
  1038. DEGRADEBUGTYPE = #{degradebugtype,jdbcType=NVARCHAR},
  1039. </if>
  1040. <if test="checkdeptopinion != null">
  1041. CHECKDEPTOPINION = #{checkdeptopinion,jdbcType=NVARCHAR},
  1042. </if>
  1043. <if test="checktime != null">
  1044. CHECKTIME = #{checktime,jdbcType=TIMESTAMP},
  1045. </if>
  1046. <if test="checkdeptlabornum != null">
  1047. CHECKDEPTLABORNUM = #{checkdeptlabornum,jdbcType=NVARCHAR},
  1048. </if>
  1049. <if test="lastbugtype != null">
  1050. LASTBUGTYPE = #{lastbugtype,jdbcType=NVARCHAR},
  1051. </if>
  1052. <if test="buganalis != null">
  1053. BUGANALIS = #{buganalis,jdbcType=NVARCHAR},
  1054. </if>
  1055. <if test="remark != null">
  1056. REMARK = #{remark,jdbcType=NVARCHAR},
  1057. </if>
  1058. <if test="status != null">
  1059. STATUS = #{status,jdbcType=NVARCHAR},
  1060. </if>
  1061. <if test="statusdate != null">
  1062. STATUSDATE = #{statusdate,jdbcType=TIMESTAMP},
  1063. </if>
  1064. <if test="approvelabornum != null">
  1065. APPROVELABORNUM = #{approvelabornum,jdbcType=NVARCHAR},
  1066. </if>
  1067. <if test="sitenum != null">
  1068. SITENUM = #{sitenum,jdbcType=NVARCHAR},
  1069. </if>
  1070. <if test="corpnum != null">
  1071. CORPNUM = #{corpnum,jdbcType=NVARCHAR},
  1072. </if>
  1073. <if test="loaderopinion != null">
  1074. LOADEROPINION = #{loaderopinion,jdbcType=NVARCHAR},
  1075. </if>
  1076. <if test="cjzropinion != null">
  1077. CJZROPINION = #{cjzropinion,jdbcType=NVARCHAR},
  1078. </if>
  1079. <if test="yijichushi != null">
  1080. YIJICHUSHI = #{yijichushi,jdbcType=NVARCHAR},
  1081. </if>
  1082. <if test="yxispowercut != null">
  1083. YXISPOWERCUT = #{yxispowercut,jdbcType=NVARCHAR},
  1084. </if>
  1085. <if test="departuretime != null">
  1086. DEPARTURETIME = #{departuretime,jdbcType=TIMESTAMP},
  1087. </if>
  1088. <if test="arrivaltime != null">
  1089. ARRIVALTIME = #{arrivaltime,jdbcType=TIMESTAMP},
  1090. </if>
  1091. <if test="workleader != null">
  1092. WORKLEADER = #{workleader,jdbcType=NVARCHAR},
  1093. </if>
  1094. <if test="workgroup != null">
  1095. WORKGROUP = #{workgroup,jdbcType=NVARCHAR},
  1096. </if>
  1097. <if test="staffnumber != null">
  1098. STAFFNUMBER = #{staffnumber,jdbcType=NVARCHAR},
  1099. </if>
  1100. <if test="workgroup1 != null">
  1101. WORKGROUP1 = #{workgroup1,jdbcType=NVARCHAR},
  1102. </if>
  1103. <if test="workgroup2 != null">
  1104. WORKGROUP2 = #{workgroup2,jdbcType=NVARCHAR},
  1105. </if>
  1106. <if test="acussta != null">
  1107. ACUSSTA = #{acussta,jdbcType=NVARCHAR},
  1108. </if>
  1109. <if test="gridtime != null">
  1110. GRIDTIME = #{gridtime,jdbcType=TIMESTAMP},
  1111. </if>
  1112. <if test="nodetype != null">
  1113. NODETYPE = #{nodetype,jdbcType=NVARCHAR},
  1114. </if>
  1115. <if test="wtnum != null">
  1116. WTNUM = #{wtnum,jdbcType=NVARCHAR},
  1117. </if>
  1118. <if test="failurecode != null">
  1119. FAILURECODE = #{failurecode,jdbcType=NVARCHAR},
  1120. </if>
  1121. <if test="wfnum != null">
  1122. WFNUM = #{wfnum,jdbcType=NVARCHAR},
  1123. </if>
  1124. <if test="avgwinspe != null">
  1125. AVGWINSPE = #{avgwinspe,jdbcType=DECIMAL},
  1126. </if>
  1127. <if test="classification != null">
  1128. CLASSIFICATION = #{classification,jdbcType=NVARCHAR},
  1129. </if>
  1130. <if test="repairdeptbugtype1 != null">
  1131. REPAIRDEPTBUGTYPE1 = #{repairdeptbugtype1,jdbcType=NVARCHAR},
  1132. </if>
  1133. <if test="wspeed != null">
  1134. WSPEED = #{wspeed,jdbcType=DECIMAL},
  1135. </if>
  1136. <if test="warnid != null">
  1137. WARNID = #{warnid,jdbcType=NUMERIC},
  1138. </if>
  1139. <if test="snapid != null">
  1140. SNAPID = #{snapid,jdbcType=NVARCHAR},
  1141. </if>
  1142. <if test="snapname != null">
  1143. SNAPNAME = #{snapname,jdbcType=NVARCHAR},
  1144. </if>
  1145. </set>
  1146. where ID = #{id,jdbcType=NUMERIC}
  1147. </update>
  1148. <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Wobugeq">
  1149. <!--
  1150. WARNING - @mbg.generated
  1151. This element is automatically generated by MyBatis Generator, do not modify.
  1152. -->
  1153. update WOBUGEQ
  1154. set BUGNUM = #{bugnum,jdbcType=NVARCHAR},
  1155. EQNUM = #{eqnum,jdbcType=NVARCHAR},
  1156. EQTYPE = #{eqtype,jdbcType=NVARCHAR},
  1157. EQCLASS = #{eqclass,jdbcType=NVARCHAR},
  1158. DESCRIPTION = #{description,jdbcType=NVARCHAR},
  1159. REPORTLABORNUM = #{reportlabornum,jdbcType=NVARCHAR},
  1160. FINDLABORNUM = #{findlabornum,jdbcType=NVARCHAR},
  1161. FINDTIME = #{findtime,jdbcType=TIMESTAMP},
  1162. BUGTYPE = #{bugtype,jdbcType=NVARCHAR},
  1163. RUNDEPTOPINION = #{rundeptopinion,jdbcType=NVARCHAR},
  1164. RUNDEPTLABORNUM = #{rundeptlabornum,jdbcType=NVARCHAR},
  1165. RUNDEPTBUGTYPE = #{rundeptbugtype,jdbcType=NVARCHAR},
  1166. ISPOWERCUT = #{ispowercut,jdbcType=NVARCHAR},
  1167. TRANSMITTIME = #{transmittime,jdbcType=TIMESTAMP},
  1168. TRANSMITDEPTNUM = #{transmitdeptnum,jdbcType=NVARCHAR},
  1169. PRODTDEPTOPINION = #{prodtdeptopinion,jdbcType=NVARCHAR},
  1170. PRODTDEPTTIME = #{prodtdepttime,jdbcType=TIMESTAMP},
  1171. LOCATION = #{location,jdbcType=NVARCHAR},
  1172. PRODTDEPTLABORNUM = #{prodtdeptlabornum,jdbcType=NVARCHAR},
  1173. REPAIRDEPTOPINION = #{repairdeptopinion,jdbcType=NVARCHAR},
  1174. REPAIRDEPTBUGTYPE = #{repairdeptbugtype,jdbcType=NVARCHAR},
  1175. REPAIRDEPTTIME = #{repairdepttime,jdbcType=TIMESTAMP},
  1176. REPAIRDEPTLABORNUM = #{repairdeptlabornum,jdbcType=NVARCHAR},
  1177. REPAIREDTIME = #{repairedtime,jdbcType=TIMESTAMP},
  1178. REPAIREDCOMMENT = #{repairedcomment,jdbcType=NVARCHAR},
  1179. ISRESOLVED = #{isresolved,jdbcType=NVARCHAR},
  1180. UNRESOLVEDBUG = #{unresolvedbug,jdbcType=NVARCHAR},
  1181. ISDEGRADED = #{isdegraded,jdbcType=NVARCHAR},
  1182. DEGRADEBUGTYPE = #{degradebugtype,jdbcType=NVARCHAR},
  1183. CHECKDEPTOPINION = #{checkdeptopinion,jdbcType=NVARCHAR},
  1184. CHECKTIME = #{checktime,jdbcType=TIMESTAMP},
  1185. CHECKDEPTLABORNUM = #{checkdeptlabornum,jdbcType=NVARCHAR},
  1186. LASTBUGTYPE = #{lastbugtype,jdbcType=NVARCHAR},
  1187. BUGANALIS = #{buganalis,jdbcType=NVARCHAR},
  1188. REMARK = #{remark,jdbcType=NVARCHAR},
  1189. STATUS = #{status,jdbcType=NVARCHAR},
  1190. STATUSDATE = #{statusdate,jdbcType=TIMESTAMP},
  1191. APPROVELABORNUM = #{approvelabornum,jdbcType=NVARCHAR},
  1192. SITENUM = #{sitenum,jdbcType=NVARCHAR},
  1193. CORPNUM = #{corpnum,jdbcType=NVARCHAR},
  1194. LOADEROPINION = #{loaderopinion,jdbcType=NVARCHAR},
  1195. CJZROPINION = #{cjzropinion,jdbcType=NVARCHAR},
  1196. YIJICHUSHI = #{yijichushi,jdbcType=NVARCHAR},
  1197. YXISPOWERCUT = #{yxispowercut,jdbcType=NVARCHAR},
  1198. DEPARTURETIME = #{departuretime,jdbcType=TIMESTAMP},
  1199. ARRIVALTIME = #{arrivaltime,jdbcType=TIMESTAMP},
  1200. WORKLEADER = #{workleader,jdbcType=NVARCHAR},
  1201. WORKGROUP = #{workgroup,jdbcType=NVARCHAR},
  1202. STAFFNUMBER = #{staffnumber,jdbcType=NVARCHAR},
  1203. WORKGROUP1 = #{workgroup1,jdbcType=NVARCHAR},
  1204. WORKGROUP2 = #{workgroup2,jdbcType=NVARCHAR},
  1205. ACUSSTA = #{acussta,jdbcType=NVARCHAR},
  1206. GRIDTIME = #{gridtime,jdbcType=TIMESTAMP},
  1207. NODETYPE = #{nodetype,jdbcType=NVARCHAR},
  1208. WTNUM = #{wtnum,jdbcType=NVARCHAR},
  1209. FAILURECODE = #{failurecode,jdbcType=NVARCHAR},
  1210. WFNUM = #{wfnum,jdbcType=NVARCHAR},
  1211. AVGWINSPE = #{avgwinspe,jdbcType=DECIMAL},
  1212. CLASSIFICATION = #{classification,jdbcType=NVARCHAR},
  1213. REPAIRDEPTBUGTYPE1 = #{repairdeptbugtype1,jdbcType=NVARCHAR},
  1214. WSPEED = #{wspeed,jdbcType=DECIMAL},
  1215. WARNID = #{warnid,jdbcType=NUMERIC},
  1216. SNAPID = #{snapid,jdbcType=NVARCHAR},
  1217. SNAPNAME = #{snapname,jdbcType=NVARCHAR}
  1218. where ID = #{id,jdbcType=NUMERIC}
  1219. </update>
  1220. <select id="getWtnum" resultType="java.lang.Integer">
  1221. select wtnum,wtid from windturbine
  1222. where wtid = #{wtId}
  1223. </select>
  1224. <select id="findDuration" resultType="com.gyee.frame.model.custom.MainTrackVo">
  1225. SELECT avg(rwfpsc) rwfppjsc,avg(ddxcsc) ddxcpjsc,avg(qxclsc) qxclpjsc,avg(yssc) yspjsc FROM
  1226. (SELECT ABS(DATEDIFF(mi,a.Operationdate,b.Prodtdepttime)) rwfpsc,DATEDIFF(mi,b.Departuretime,b.Arrivaltime) ddxcsc,
  1227. DATEDIFF(mi,b.Arrivaltime,b.Gridtime) qxclsc,DATEDIFF(mi,b.Gridtime,b.Checktime) yssc FROM RECOMMENMAIN a,WOBUGEQ b
  1228. WHERE a.WOBUGID=b.BUGNUM ) a
  1229. </select>
  1230. <select id="totalNum" resultType="com.gyee.frame.model.custom.SimpleVo">
  1231. SELECT count(*) value FROM WOBUGEQ where
  1232. FINDTIME >= #{beginDate} and FINDTIME &lt; #{endDate}
  1233. </select>
  1234. </mapper>