删除git上的class
parent
2458397609
commit
f0cc9be460
|
@ -1,27 +0,0 @@
|
||||||
server:
|
|
||||||
port: 9191
|
|
||||||
spring:
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: jdbc:mysql://139.196.201.231:3306/mall?serverTimezone=GMT%2b8&userSSL=false&allowPublicKeyRetrieval=true
|
|
||||||
username: "myuser"
|
|
||||||
password: 'Fzhang5.'
|
|
||||||
servlet:
|
|
||||||
multipart:
|
|
||||||
max-file-size: 30MB
|
|
||||||
redis:
|
|
||||||
database: 0
|
|
||||||
host: 127.0.0.1
|
|
||||||
port: 6379
|
|
||||||
lettuce:
|
|
||||||
pool:
|
|
||||||
min-idle: 0
|
|
||||||
max-active: 8
|
|
||||||
max-idle: 8
|
|
||||||
max-wait: -1ms
|
|
||||||
connect-timeout: 30000ms
|
|
||||||
|
|
||||||
mybatis:
|
|
||||||
mapper-locations: classpath:mapper/*.xml
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.AddressMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.CarouselMapper">
|
|
||||||
|
|
||||||
<select id="getAllCarousel" resultType="com.rabbiter.em.entity.Carousel">
|
|
||||||
select carousel.*,good.name as good_name,good.imgs as img from carousel,good where good.id = carousel.good_id order by show_order asc
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,26 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.CartMapper">
|
|
||||||
<resultMap id="cartResultMap" type="hashmap">
|
|
||||||
<result column="id" property="id"></result>
|
|
||||||
<result column="user_id" property="userId"></result>
|
|
||||||
<result column="good_id" property="goodId"></result>
|
|
||||||
<result column="name" property="goodName"></result>
|
|
||||||
<result column="imgs" property="img"></result>
|
|
||||||
<result column="standard" property="standard"></result>
|
|
||||||
<result column="store" property="store"></result>
|
|
||||||
<result column="price" property="price"></result>
|
|
||||||
<result column="discount" property="discount"></result>
|
|
||||||
<result column="count" property="count"></result>
|
|
||||||
<result column="create_time" property="createTime"></result>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<select id="selectByUserId" resultMap="cartResultMap">
|
|
||||||
SELECT cart.*,good_standard.price,good.imgs,`name`,discount,store
|
|
||||||
FROM cart,good_standard,good
|
|
||||||
WHERE cart.good_id = good.id AND cart.good_id = good_standard.good_id AND cart.standard = good_standard.`value`
|
|
||||||
AND cart.user_id = #{userId}
|
|
||||||
ORDER BY cart.create_time DESC
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.CategoryMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.GoodMapper">
|
|
||||||
<insert id="insertGood" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into good(name, description, discount, category_id, imgs, create_time) value (#{good.name},#{good.description},#{good.discount},#{good.categoryId},#{good.imgs},#{good.createTime})
|
|
||||||
</insert>
|
|
||||||
<update id="saleGood">
|
|
||||||
update `good` set sales = sales + #{count} ,sale_money = sale_money + #{money} where good.id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
|
|
||||||
<select id="findFrontGoods" resultType="com.rabbiter.em.entity.dto.GoodDTO">
|
|
||||||
SELECT good.*,MIN(good_standard.price)*discount as price FROM `good` LEFT JOIN good_standard on good.id = good_standard.good_id WHERE is_delete = 0 AND recommend = 1 GROUP BY id ORDER BY price ASC
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.IconMapper">
|
|
||||||
<resultMap id="IconCategoryMap" type="com.rabbiter.em.entity.Icon">
|
|
||||||
<id property="id" column="id"></id>
|
|
||||||
<result property="value" column="value"></result>
|
|
||||||
<collection property="categories" column="id" select="selectCategories"></collection>
|
|
||||||
</resultMap>
|
|
||||||
<select id="selectCategories" resultType="com.rabbiter.em.entity.Category">
|
|
||||||
SELECT category.* FROM icon_category LEFT JOIN category ON icon_category.category_id = category.id WHERE icon_category.icon_id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getIconCategoryMapList" resultMap="IconCategoryMap">
|
|
||||||
select * from icon
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,19 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.IncomeMapper">
|
|
||||||
<resultMap id="chartMap" type="hashmap">
|
|
||||||
<result property="categoryId" column="category_id"></result>
|
|
||||||
<result property="categoryName" column="category_name"></result>
|
|
||||||
<result property="categoryIncome" column="category_income"></result>
|
|
||||||
</resultMap>
|
|
||||||
<select id="selectCategoryIncome" resultMap="chartMap">
|
|
||||||
select category_id,category.name as category_name,SUM(sale_money) as category_income from good,category
|
|
||||||
where good.category_id = category.id GROUP BY category_id
|
|
||||||
</select>
|
|
||||||
<select id="selectSumIncome" resultType="decimal">
|
|
||||||
select sum(sale_money) from good
|
|
||||||
</select>
|
|
||||||
<select id="getDayIncome" resultType="java.math.BigDecimal">
|
|
||||||
SELECT sum(total_price) FROM `t_order` WHERE state != '待付款' AND create_time >= #{thisDay} AND create_time < #{nextDay}
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,25 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.OrderMapper">
|
|
||||||
<resultMap id="goodMap" type="Map">
|
|
||||||
<result property="goodId" column="good_id"></result>
|
|
||||||
<result property="goodName" column="good_name"></result>
|
|
||||||
<result property="count" column="count"></result>
|
|
||||||
<result property="price" column="price"></result>
|
|
||||||
<result property="discount" column="discount"></result>
|
|
||||||
<result property="standard" column="standard"></result>
|
|
||||||
<result property="img" column="imgs"></result>
|
|
||||||
</resultMap>
|
|
||||||
<select id="selectByUserId" parameterType="int" resultType="java.util.HashMap">
|
|
||||||
SELECT o.*, og.good_id,good.`name` as good_name, og.count, og.standard, good.imgs
|
|
||||||
FROM t_order o, order_goods og ,good
|
|
||||||
WHERE o.id = og.order_id AND o.user_id = #{userId} AND og.good_id = good.id
|
|
||||||
ORDER BY o.create_time DESC
|
|
||||||
</select>
|
|
||||||
<select id="selectByOrderNo" parameterType="String" resultMap="goodMap">
|
|
||||||
SELECT og.good_id,good.`name` as good_name, og.standard,gs.price ,good.discount ,og.count, good.imgs
|
|
||||||
FROM t_order o, order_goods og ,good,good_standard gs
|
|
||||||
WHERE o.id = og.order_id AND o.order_no = #{orderNo} AND og.good_id = good.id
|
|
||||||
AND gs.good_id = og.good_id AND gs.`value` = standard
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.OrderGoodsMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.StandardMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
|
@ -1,34 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.rabbiter.em.mapper.UserMapper">
|
|
||||||
|
|
||||||
<!-- <update id="update">-->
|
|
||||||
<!-- update sys_user-->
|
|
||||||
<!-- <set>-->
|
|
||||||
<!-- <if test="username!=null">username = #{username},</if>-->
|
|
||||||
<!-- <if test="nickname!=null">nickname = #{nickname},</if>-->
|
|
||||||
<!-- <if test="email!=null">email = #{email},</if>-->
|
|
||||||
<!-- <if test="phone!=null">phone = #{phone},</if>-->
|
|
||||||
<!-- <if test="address!=null">address = #{address}</if>-->
|
|
||||||
<!-- </set>-->
|
|
||||||
<!-- where id = #{id}-->
|
|
||||||
<!-- </update>-->
|
|
||||||
<!-- <!–查询人数–>-->
|
|
||||||
<!-- <select id="searchTotal" resultType="int">-->
|
|
||||||
<!-- select count(*) from sys_user-->
|
|
||||||
<!-- <where>-->
|
|
||||||
<!-- <if test="username!=null and username!=''">username like concat('%',#{username},'%')</if>-->
|
|
||||||
<!-- <if test="nickname!=null and nickname!=''">and nickname like concat('%',#{nickname},'%')</if>-->
|
|
||||||
<!-- </where>-->
|
|
||||||
<!-- </select>-->
|
|
||||||
<!--<!–查询用户列表–>-->
|
|
||||||
<!-- <select id="selectPage" resultType="User">-->
|
|
||||||
<!-- select * from sys_user-->
|
|
||||||
<!-- <where>-->
|
|
||||||
<!-- <if test="username!=null and username!=''">username like concat('%',#{username},'%')</if>-->
|
|
||||||
<!-- <if test="nickname!=null and nickname!=''">and nickname like concat('%',#{nickname},'%')</if>-->
|
|
||||||
<!-- </where>-->
|
|
||||||
<!-- limit #{index},#{pageSize}-->
|
|
||||||
<!-- </select>-->
|
|
||||||
</mapper>
|
|
Binary file not shown.
Loading…
Reference in New Issue