WtMttrAndMtbfMonthMapper.xml 11 KB

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