WtTragetReportChartMapper.xml 12 KB

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