• 【开源项目】基于springboot vue前后端分离的音乐网站源码


     源码下载地址:https://share.weiyun.com/83cKJL2m 这是微云,在qq里面可以打开,其他的有可能显示已被删除

     

     

     

     

     

     

     

     

    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.shop.dao.ActivityMapper">
    4. <resultMap id="BaseResultMap" type="com.shop.entity.Activity">
    5. <id column="activityId" jdbcType="INTEGER" property="activityid" />
    6. <result column="activityName" jdbcType="VARCHAR" property="activityname" />
    7. <result column="activityDes" jdbcType="VARCHAR" property="activitydes" />
    8. <result column="discount" jdbcType="REAL" property="discount" />
    9. <result column="fullPrice" jdbcType="INTEGER" property="fullprice" />
    10. <result column="reducePrice" jdbcType="INTEGER" property="reduceprice" />
    11. <result column="fullNum" jdbcType="INTEGER" property="fullnum" />
    12. <result column="reduceNum" jdbcType="INTEGER" property="reducenum" />
    13. </resultMap>
    14. <sql id="Example_Where_Clause">
    15. <where>
    16. <foreach collection="oredCriteria" item="criteria" separator="or">
    17. <if test="criteria.valid">
    18. <trim prefix="(" prefixOverrides="and" suffix=")">
    19. <foreach collection="criteria.criteria" item="criterion">
    20. <choose>
    21. <when test="criterion.noValue">
    22. and ${criterion.condition}
    23. </when>
    24. <when test="criterion.singleValue">
    25. and ${criterion.condition} #{criterion.value}
    26. </when>
    27. <when test="criterion.betweenValue">
    28. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
    29. </when>
    30. <when test="criterion.listValue">
    31. and ${criterion.condition}
    32. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
    33. #{listItem}
    34. </foreach>
    35. </when>
    36. </choose>
    37. </foreach>
    38. </trim>
    39. </if>
    40. </foreach>
    41. </where>
    42. </sql>
    43. <sql id="Update_By_Example_Where_Clause">
    44. <where>
    45. <foreach collection="example.oredCriteria" item="criteria" separator="or">
    46. <if test="criteria.valid">
    47. <trim prefix="(" prefixOverrides="and" suffix=")">
    48. <foreach collection="criteria.criteria" item="criterion">
    49. <choose>
    50. <when test="criterion.noValue">
    51. and ${criterion.condition}
    52. </when>
    53. <when test="criterion.singleValue">
    54. and ${criterion.condition} #{criterion.value}
    55. </when>
    56. <when test="criterion.betweenValue">
    57. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
    58. </when>
    59. <when test="criterion.listValue">
    60. and ${criterion.condition}
    61. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
    62. #{listItem}
    63. </foreach>
    64. </when>
    65. </choose>
    66. </foreach>
    67. </trim>
    68. </if>
    69. </foreach>
    70. </where>
    71. </sql>
    72. <sql id="Base_Column_List">
    73. activityId, activityName, activityDes, discount, fullPrice, reducePrice, fullNum,
    74. reduceNum
    75. </sql>
    76. <select id="selectByExample" parameterType="com.shop.entity.ActivityExample" resultMap="BaseResultMap">
    77. select
    78. <if test="distinct">
    79. distinct
    80. </if>
    81. <include refid="Base_Column_List" />
    82. from activity
    83. <if test="_parameter != null">
    84. <include refid="Example_Where_Clause" />
    85. </if>
    86. <if test="orderByClause != null">
    87. order by ${orderByClause}
    88. </if>
    89. </select>
    90. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    91. select
    92. <include refid="Base_Column_List" />
    93. from activity
    94. where activityId = #{activityid,jdbcType=INTEGER}
    95. </select>
    96. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    97. delete from activity
    98. where activityId = #{activityid,jdbcType=INTEGER}
    99. </delete>
    100. <delete id="deleteByExample" parameterType="com.shop.entity.ActivityExample">
    101. delete from activity
    102. <if test="_parameter != null">
    103. <include refid="Example_Where_Clause" />
    104. </if>
    105. </delete>
    106. <insert id="insert" parameterType="com.shop.entity.Activity">
    107. insert into activity (activityId, activityName, activityDes,
    108. discount, fullPrice, reducePrice,
    109. fullNum, reduceNum)
    110. values (#{activityid,jdbcType=INTEGER}, #{activityname,jdbcType=VARCHAR}, #{activitydes,jdbcType=VARCHAR},
    111. #{discount,jdbcType=REAL}, #{fullprice,jdbcType=INTEGER}, #{reduceprice,jdbcType=INTEGER},
    112. #{fullnum,jdbcType=INTEGER}, #{reducenum,jdbcType=INTEGER})
    113. </insert>
    114. <insert id="insertSelective" parameterType="com.shop.entity.Activity">
    115. insert into activity
    116. <trim prefix="(" suffix=")" suffixOverrides=",">
    117. <if test="activityid != null">
    118. activityId,
    119. </if>
    120. <if test="activityname != null">
    121. activityName,
    122. </if>
    123. <if test="activitydes != null">
    124. activityDes,
    125. </if>
    126. <if test="discount != null">
    127. discount,
    128. </if>
    129. <if test="fullprice != null">
    130. fullPrice,
    131. </if>
    132. <if test="reduceprice != null">
    133. reducePrice,
    134. </if>
    135. <if test="fullnum != null">
    136. fullNum,
    137. </if>
    138. <if test="reducenum != null">
    139. reduceNum,
    140. </if>
    141. </trim>
    142. <trim prefix="values (" suffix=")" suffixOverrides=",">
    143. <if test="activityid != null">
    144. #{activityid,jdbcType=INTEGER},
    145. </if>
    146. <if test="activityname != null">
    147. #{activityname,jdbcType=VARCHAR},
    148. </if>
    149. <if test="activitydes != null">
    150. #{activitydes,jdbcType=VARCHAR},
    151. </if>
    152. <if test="discount != null">
    153. #{discount,jdbcType=REAL},
    154. </if>
    155. <if test="fullprice != null">
    156. #{fullprice,jdbcType=INTEGER},
    157. </if>
    158. <if test="reduceprice != null">
    159. #{reduceprice,jdbcType=INTEGER},
    160. </if>
    161. <if test="fullnum != null">
    162. #{fullnum,jdbcType=INTEGER},
    163. </if>
    164. <if test="reducenum != null">
    165. #{reducenum,jdbcType=INTEGER},
    166. </if>
    167. </trim>
    168. </insert>
    169. <select id="countByExample" parameterType="com.shop.entity.ActivityExample" resultType="java.lang.Long">
    170. select count(*) from activity
    171. <if test="_parameter != null">
    172. <include refid="Example_Where_Clause" />
    173. </if>
    174. </select>
    175. <update id="updateByExampleSelective" parameterType="map">
    176. update activity
    177. <set>
    178. <if test="record.activityid != null">
    179. activityId = #{record.activityid,jdbcType=INTEGER},
    180. </if>
    181. <if test="record.activityname != null">
    182. activityName = #{record.activityname,jdbcType=VARCHAR},
    183. </if>
    184. <if test="record.activitydes != null">
    185. activityDes = #{record.activitydes,jdbcType=VARCHAR},
    186. </if>
    187. <if test="record.discount != null">
    188. discount = #{record.discount,jdbcType=REAL},
    189. </if>
    190. <if test="record.fullprice != null">
    191. fullPrice = #{record.fullprice,jdbcType=INTEGER},
    192. </if>
    193. <if test="record.reduceprice != null">
    194. reducePrice = #{record.reduceprice,jdbcType=INTEGER},
    195. </if>
    196. <if test="record.fullnum != null">
    197. fullNum = #{record.fullnum,jdbcType=INTEGER},
    198. </if>
    199. <if test="record.reducenum != null">
    200. reduceNum = #{record.reducenum,jdbcType=INTEGER},
    201. </if>
    202. </set>
    203. <if test="_parameter != null">
    204. <include refid="Update_By_Example_Where_Clause" />
    205. </if>
    206. </update>
    207. <update id="updateByExample" parameterType="map">
    208. update activity
    209. set activityId = #{record.activityid,jdbcType=INTEGER},
    210. activityName = #{record.activityname,jdbcType=VARCHAR},
    211. activityDes = #{record.activitydes,jdbcType=VARCHAR},
    212. discount = #{record.discount,jdbcType=REAL},
    213. fullPrice = #{record.fullprice,jdbcType=INTEGER},
    214. reducePrice = #{record.reduceprice,jdbcType=INTEGER},
    215. fullNum = #{record.fullnum,jdbcType=INTEGER},
    216. reduceNum = #{record.reducenum,jdbcType=INTEGER}
    217. <if test="_parameter != null">
    218. <include refid="Update_By_Example_Where_Clause" />
    219. </if>
    220. </update>
    221. <update id="updateByPrimaryKeySelective" parameterType="com.shop.entity.Activity">
    222. update activity
    223. <set>
    224. <if test="activityname != null">
    225. activityName = #{activityname,jdbcType=VARCHAR},
    226. </if>
    227. <if test="activitydes != null">
    228. activityDes = #{activitydes,jdbcType=VARCHAR},
    229. </if>
    230. <if test="discount != null">
    231. discount = #{discount,jdbcType=REAL},
    232. </if>
    233. <if test="fullprice != null">
    234. fullPrice = #{fullprice,jdbcType=INTEGER},
    235. </if>
    236. <if test="reduceprice != null">
    237. reducePrice = #{reduceprice,jdbcType=INTEGER},
    238. </if>
    239. <if test="fullnum != null">
    240. fullNum = #{fullnum,jdbcType=INTEGER},
    241. </if>
    242. <if test="reducenum != null">
    243. reduceNum = #{reducenum,jdbcType=INTEGER},
    244. </if>
    245. </set>
    246. where activityId = #{activityid,jdbcType=INTEGER}
    247. </update>
    248. <update id="updateByPrimaryKey" parameterType="com.shop.entity.Activity">
    249. update activity
    250. set activityName = #{activityname,jdbcType=VARCHAR},
    251. activityDes = #{activitydes,jdbcType=VARCHAR},
    252. discount = #{discount,jdbcType=REAL},
    253. fullPrice = #{fullprice,jdbcType=INTEGER},
    254. reducePrice = #{reduceprice,jdbcType=INTEGER},
    255. fullNum = #{fullnum,jdbcType=INTEGER},
    256. reduceNum = #{reducenum,jdbcType=INTEGER}
    257. where activityId = #{activityid,jdbcType=INTEGER}
    258. </update>
    259. </mapper>

     

     源码下载地址:https://share.weiyun.com/83cKJL2m 这是微云,在qq里面可以打开,其他的有可能显示已被删除

  • 相关阅读:
    这些并发测试知识点,你掌握了吗?
    记录--UNI-APP安卓本地打包详细教程(保姆级)
    排序:归并(Merge)排序算法分析
    趣味算法-读书笔记(三)
    Java版分布式微服务云开发架构 Spring Cloud+Spring Boot+Mybatis 电子招标采购系统功能清单
    PyTorch入门教学——在虚拟环境中安装Jupyter
    ThreadPool实现机制
    【搜索引擎选型】Solr vs. Elasticsearch:怎么选?
    PaddleOCR ‘could not create a primitive descriptor for a reorder primitive‘异常处理
    多线程(一)线程与进程
  • 原文地址:https://blog.csdn.net/weixin_46437112/article/details/128035579