Daylygradeassessmentmain2Mapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  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.Daylygradeassessmentmain2Mapper">
  4. <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
  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="WTID" jdbcType="VARCHAR" property="wtid" />
  11. <result column="WPID" jdbcType="VARCHAR" property="wpid" />
  12. <result column="PROJECTID" jdbcType="VARCHAR" property="projectid" />
  13. <result column="LINEID" jdbcType="VARCHAR" property="lineid" />
  14. <result column="RECORDDATE" jdbcType="TIMESTAMP" property="recorddate" />
  15. <result column="SCORE" jdbcType="DECIMAL" property="score" />
  16. <result column="PLEVEL" jdbcType="VARCHAR" property="plevel" />
  17. <result column="STATE" jdbcType="DECIMAL" property="state" />
  18. <result column="MODSCORE" jdbcType="DECIMAL" property="modscore" />
  19. <result column="MODLEVEL" jdbcType="VARCHAR" property="modlevel" />
  20. <result column="TOTALSCORE" jdbcType="DECIMAL" property="totalscore" />
  21. <result column="TID" jdbcType="VARCHAR" property="tid" />
  22. </resultMap>
  23. <sql id="Example_Where_Clause">
  24. <!--
  25. WARNING - @mbg.generated
  26. This element is automatically generated by MyBatis Generator, do not modify.
  27. -->
  28. <where>
  29. <foreach collection="oredCriteria" item="criteria" separator="or">
  30. <if test="criteria.valid">
  31. <trim prefix="(" prefixOverrides="and" suffix=")">
  32. <foreach collection="criteria.criteria" item="criterion">
  33. <choose>
  34. <when test="criterion.noValue">
  35. and ${criterion.condition}
  36. </when>
  37. <when test="criterion.singleValue">
  38. and ${criterion.condition} #{criterion.value}
  39. </when>
  40. <when test="criterion.betweenValue">
  41. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  42. </when>
  43. <when test="criterion.listValue">
  44. and ${criterion.condition}
  45. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  46. #{listItem}
  47. </foreach>
  48. </when>
  49. </choose>
  50. </foreach>
  51. </trim>
  52. </if>
  53. </foreach>
  54. </where>
  55. </sql>
  56. <sql id="Update_By_Example_Where_Clause">
  57. <!--
  58. WARNING - @mbg.generated
  59. This element is automatically generated by MyBatis Generator, do not modify.
  60. -->
  61. <where>
  62. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  63. <if test="criteria.valid">
  64. <trim prefix="(" prefixOverrides="and" suffix=")">
  65. <foreach collection="criteria.criteria" item="criterion">
  66. <choose>
  67. <when test="criterion.noValue">
  68. and ${criterion.condition}
  69. </when>
  70. <when test="criterion.singleValue">
  71. and ${criterion.condition} #{criterion.value}
  72. </when>
  73. <when test="criterion.betweenValue">
  74. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  75. </when>
  76. <when test="criterion.listValue">
  77. and ${criterion.condition}
  78. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  79. #{listItem}
  80. </foreach>
  81. </when>
  82. </choose>
  83. </foreach>
  84. </trim>
  85. </if>
  86. </foreach>
  87. </where>
  88. </sql>
  89. <sql id="Base_Column_List">
  90. <!--
  91. WARNING - @mbg.generated
  92. This element is automatically generated by MyBatis Generator, do not modify.
  93. -->
  94. ID, WTID, WPID, PROJECTID, LINEID, RECORDDATE, SCORE, PLEVEL, STATE, MODSCORE, MODLEVEL,
  95. TOTALSCORE, TID
  96. </sql>
  97. <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example" resultMap="BaseResultMap">
  98. <!--
  99. WARNING - @mbg.generated
  100. This element is automatically generated by MyBatis Generator, do not modify.
  101. -->
  102. select
  103. <if test="distinct">
  104. distinct
  105. </if>
  106. <include refid="Base_Column_List" />
  107. from DAYLYGRADEASSESSMENTMAIN2
  108. <if test="_parameter != null">
  109. <include refid="Example_Where_Clause" />
  110. </if>
  111. <if test="orderByClause != null">
  112. order by ${orderByClause}
  113. </if>
  114. </select>
  115. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  116. <!--
  117. WARNING - @mbg.generated
  118. This element is automatically generated by MyBatis Generator, do not modify.
  119. -->
  120. select
  121. <include refid="Base_Column_List" />
  122. from DAYLYGRADEASSESSMENTMAIN2
  123. where ID = #{id,jdbcType=VARCHAR}
  124. </select>
  125. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  126. <!--
  127. WARNING - @mbg.generated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. delete from DAYLYGRADEASSESSMENTMAIN2
  131. where ID = #{id,jdbcType=VARCHAR}
  132. </delete>
  133. <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example">
  134. <!--
  135. WARNING - @mbg.generated
  136. This element is automatically generated by MyBatis Generator, do not modify.
  137. -->
  138. delete from DAYLYGRADEASSESSMENTMAIN2
  139. <if test="_parameter != null">
  140. <include refid="Example_Where_Clause" />
  141. </if>
  142. </delete>
  143. <insert id="insert" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
  144. <!--
  145. WARNING - @mbg.generated
  146. This element is automatically generated by MyBatis Generator, do not modify.
  147. -->
  148. insert into DAYLYGRADEASSESSMENTMAIN2 (ID, WTID, WPID,
  149. PROJECTID, LINEID, RECORDDATE,
  150. SCORE, PLEVEL, STATE,
  151. MODSCORE, MODLEVEL, TOTALSCORE,
  152. TID)
  153. values (#{id,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, #{wpid,jdbcType=VARCHAR},
  154. #{projectid,jdbcType=VARCHAR}, #{lineid,jdbcType=VARCHAR}, #{recorddate,jdbcType=TIMESTAMP},
  155. #{score,jdbcType=DECIMAL}, #{plevel,jdbcType=VARCHAR}, #{state,jdbcType=DECIMAL},
  156. #{modscore,jdbcType=DECIMAL}, #{modlevel,jdbcType=VARCHAR}, #{totalscore,jdbcType=DECIMAL},
  157. #{tid,jdbcType=VARCHAR})
  158. </insert>
  159. <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
  160. <!--
  161. WARNING - @mbg.generated
  162. This element is automatically generated by MyBatis Generator, do not modify.
  163. -->
  164. insert into DAYLYGRADEASSESSMENTMAIN2
  165. <trim prefix="(" suffix=")" suffixOverrides=",">
  166. <if test="id != null">
  167. ID,
  168. </if>
  169. <if test="wtid != null">
  170. WTID,
  171. </if>
  172. <if test="wpid != null">
  173. WPID,
  174. </if>
  175. <if test="projectid != null">
  176. PROJECTID,
  177. </if>
  178. <if test="lineid != null">
  179. LINEID,
  180. </if>
  181. <if test="recorddate != null">
  182. RECORDDATE,
  183. </if>
  184. <if test="score != null">
  185. SCORE,
  186. </if>
  187. <if test="plevel != null">
  188. PLEVEL,
  189. </if>
  190. <if test="state != null">
  191. STATE,
  192. </if>
  193. <if test="modscore != null">
  194. MODSCORE,
  195. </if>
  196. <if test="modlevel != null">
  197. MODLEVEL,
  198. </if>
  199. <if test="totalscore != null">
  200. TOTALSCORE,
  201. </if>
  202. <if test="tid != null">
  203. TID,
  204. </if>
  205. </trim>
  206. <trim prefix="values (" suffix=")" suffixOverrides=",">
  207. <if test="id != null">
  208. #{id,jdbcType=VARCHAR},
  209. </if>
  210. <if test="wtid != null">
  211. #{wtid,jdbcType=VARCHAR},
  212. </if>
  213. <if test="wpid != null">
  214. #{wpid,jdbcType=VARCHAR},
  215. </if>
  216. <if test="projectid != null">
  217. #{projectid,jdbcType=VARCHAR},
  218. </if>
  219. <if test="lineid != null">
  220. #{lineid,jdbcType=VARCHAR},
  221. </if>
  222. <if test="recorddate != null">
  223. #{recorddate,jdbcType=TIMESTAMP},
  224. </if>
  225. <if test="score != null">
  226. #{score,jdbcType=DECIMAL},
  227. </if>
  228. <if test="plevel != null">
  229. #{plevel,jdbcType=VARCHAR},
  230. </if>
  231. <if test="state != null">
  232. #{state,jdbcType=DECIMAL},
  233. </if>
  234. <if test="modscore != null">
  235. #{modscore,jdbcType=DECIMAL},
  236. </if>
  237. <if test="modlevel != null">
  238. #{modlevel,jdbcType=VARCHAR},
  239. </if>
  240. <if test="totalscore != null">
  241. #{totalscore,jdbcType=DECIMAL},
  242. </if>
  243. <if test="tid != null">
  244. #{tid,jdbcType=VARCHAR},
  245. </if>
  246. </trim>
  247. </insert>
  248. <select id="countByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example" resultType="java.lang.Long">
  249. <!--
  250. WARNING - @mbg.generated
  251. This element is automatically generated by MyBatis Generator, do not modify.
  252. -->
  253. select count(*) from DAYLYGRADEASSESSMENTMAIN2
  254. <if test="_parameter != null">
  255. <include refid="Example_Where_Clause" />
  256. </if>
  257. </select>
  258. <update id="updateByExampleSelective" parameterType="map">
  259. <!--
  260. WARNING - @mbg.generated
  261. This element is automatically generated by MyBatis Generator, do not modify.
  262. -->
  263. update DAYLYGRADEASSESSMENTMAIN2
  264. <set>
  265. <if test="record.id != null">
  266. ID = #{record.id,jdbcType=VARCHAR},
  267. </if>
  268. <if test="record.wtid != null">
  269. WTID = #{record.wtid,jdbcType=VARCHAR},
  270. </if>
  271. <if test="record.wpid != null">
  272. WPID = #{record.wpid,jdbcType=VARCHAR},
  273. </if>
  274. <if test="record.projectid != null">
  275. PROJECTID = #{record.projectid,jdbcType=VARCHAR},
  276. </if>
  277. <if test="record.lineid != null">
  278. LINEID = #{record.lineid,jdbcType=VARCHAR},
  279. </if>
  280. <if test="record.recorddate != null">
  281. RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
  282. </if>
  283. <if test="record.score != null">
  284. SCORE = #{record.score,jdbcType=DECIMAL},
  285. </if>
  286. <if test="record.plevel != null">
  287. PLEVEL = #{record.plevel,jdbcType=VARCHAR},
  288. </if>
  289. <if test="record.state != null">
  290. STATE = #{record.state,jdbcType=DECIMAL},
  291. </if>
  292. <if test="record.modscore != null">
  293. MODSCORE = #{record.modscore,jdbcType=DECIMAL},
  294. </if>
  295. <if test="record.modlevel != null">
  296. MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
  297. </if>
  298. <if test="record.totalscore != null">
  299. TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
  300. </if>
  301. <if test="record.tid != null">
  302. TID = #{record.tid,jdbcType=VARCHAR},
  303. </if>
  304. </set>
  305. <if test="_parameter != null">
  306. <include refid="Update_By_Example_Where_Clause" />
  307. </if>
  308. </update>
  309. <update id="updateByExample" parameterType="map">
  310. <!--
  311. WARNING - @mbg.generated
  312. This element is automatically generated by MyBatis Generator, do not modify.
  313. -->
  314. update DAYLYGRADEASSESSMENTMAIN2
  315. set ID = #{record.id,jdbcType=VARCHAR},
  316. WTID = #{record.wtid,jdbcType=VARCHAR},
  317. WPID = #{record.wpid,jdbcType=VARCHAR},
  318. PROJECTID = #{record.projectid,jdbcType=VARCHAR},
  319. LINEID = #{record.lineid,jdbcType=VARCHAR},
  320. RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
  321. SCORE = #{record.score,jdbcType=DECIMAL},
  322. PLEVEL = #{record.plevel,jdbcType=VARCHAR},
  323. STATE = #{record.state,jdbcType=DECIMAL},
  324. MODSCORE = #{record.modscore,jdbcType=DECIMAL},
  325. MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
  326. TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
  327. TID = #{record.tid,jdbcType=VARCHAR}
  328. <if test="_parameter != null">
  329. <include refid="Update_By_Example_Where_Clause" />
  330. </if>
  331. </update>
  332. <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
  333. <!--
  334. WARNING - @mbg.generated
  335. This element is automatically generated by MyBatis Generator, do not modify.
  336. -->
  337. update DAYLYGRADEASSESSMENTMAIN2
  338. <set>
  339. <if test="wtid != null">
  340. WTID = #{wtid,jdbcType=VARCHAR},
  341. </if>
  342. <if test="wpid != null">
  343. WPID = #{wpid,jdbcType=VARCHAR},
  344. </if>
  345. <if test="projectid != null">
  346. PROJECTID = #{projectid,jdbcType=VARCHAR},
  347. </if>
  348. <if test="lineid != null">
  349. LINEID = #{lineid,jdbcType=VARCHAR},
  350. </if>
  351. <if test="recorddate != null">
  352. RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
  353. </if>
  354. <if test="score != null">
  355. SCORE = #{score,jdbcType=DECIMAL},
  356. </if>
  357. <if test="plevel != null">
  358. PLEVEL = #{plevel,jdbcType=VARCHAR},
  359. </if>
  360. <if test="state != null">
  361. STATE = #{state,jdbcType=DECIMAL},
  362. </if>
  363. <if test="modscore != null">
  364. MODSCORE = #{modscore,jdbcType=DECIMAL},
  365. </if>
  366. <if test="modlevel != null">
  367. MODLEVEL = #{modlevel,jdbcType=VARCHAR},
  368. </if>
  369. <if test="totalscore != null">
  370. TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
  371. </if>
  372. <if test="tid != null">
  373. TID = #{tid,jdbcType=VARCHAR},
  374. </if>
  375. </set>
  376. where ID = #{id,jdbcType=VARCHAR}
  377. </update>
  378. <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
  379. <!--
  380. WARNING - @mbg.generated
  381. This element is automatically generated by MyBatis Generator, do not modify.
  382. -->
  383. update DAYLYGRADEASSESSMENTMAIN2
  384. set WTID = #{wtid,jdbcType=VARCHAR},
  385. WPID = #{wpid,jdbcType=VARCHAR},
  386. PROJECTID = #{projectid,jdbcType=VARCHAR},
  387. LINEID = #{lineid,jdbcType=VARCHAR},
  388. RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
  389. SCORE = #{score,jdbcType=DECIMAL},
  390. PLEVEL = #{plevel,jdbcType=VARCHAR},
  391. STATE = #{state,jdbcType=DECIMAL},
  392. MODSCORE = #{modscore,jdbcType=DECIMAL},
  393. MODLEVEL = #{modlevel,jdbcType=VARCHAR},
  394. TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
  395. TID = #{tid,jdbcType=VARCHAR}
  396. where ID = #{id,jdbcType=VARCHAR}
  397. </update>
  398. </mapper>