Skip to content

Commit

Permalink
[ADD]添加用户权限管理
Browse files Browse the repository at this point in the history
  • Loading branch information
Exrick committed Oct 15, 2017
1 parent 36eadba commit 7a3a342
Show file tree
Hide file tree
Showing 115 changed files with 6,514 additions and 772 deletions.
952 changes: 615 additions & 337 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# XMall
### 基于SOA架构的分布式购物电商商城
- [x] 后台管理系统:管理商品、订单、类目、商品规格属性、用户管理以及内容发布等功能 //TODO:权限管理
- [x] 后台管理系统:管理商品、订单、类目、商品规格属性、用户管理、权限管理以及内容管理等功能
- [x] 前台系统:用户可以在前台系统中进行注册、登录、浏览商品、首页、下单等操作
- [x] 会员系统:用户可以在该系统中查询已下的订单、管理订单、我的优惠券等信息
- [x] 订单系统:提供下单、查询订单、修改订单状态、定时处理订单
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cn.exrick.mapper;
package cn.exrick.manager.mapper;

import cn.exrick.pojo.TbAddress;
import cn.exrick.pojo.TbAddressExample;
import cn.exrick.manager.pojo.TbAddress;
import cn.exrick.manager.pojo.TbAddressExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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="cn.exrick.mapper.TbAddressMapper">
<resultMap id="BaseResultMap" type="cn.exrick.pojo.TbAddress">
<mapper namespace="cn.exrick.manager.mapper.TbAddressMapper">
<resultMap id="BaseResultMap" type="cn.exrick.manager.pojo.TbAddress">
<id column="address_id" jdbcType="BIGINT" property="addressId" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="user_name" jdbcType="VARCHAR" property="userName" />
Expand Down Expand Up @@ -70,7 +70,7 @@
<sql id="Base_Column_List">
address_id, user_id, user_name, tel, street_name, is_default
</sql>
<select id="selectByExample" parameterType="cn.exrick.pojo.TbAddressExample" resultMap="BaseResultMap">
<select id="selectByExample" parameterType="cn.exrick.manager.pojo.TbAddressExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
Expand All @@ -94,21 +94,21 @@
delete from tb_address
where address_id = #{addressId,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="cn.exrick.pojo.TbAddressExample">
<delete id="deleteByExample" parameterType="cn.exrick.manager.pojo.TbAddressExample">
delete from tb_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="cn.exrick.pojo.TbAddress">
<insert id="insert" parameterType="cn.exrick.manager.pojo.TbAddress">
insert into tb_address (address_id, user_id, user_name,
tel, street_name, is_default
)
values (#{addressId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR},
#{tel,jdbcType=VARCHAR}, #{streetName,jdbcType=VARCHAR}, #{isDefault,jdbcType=BIT}
)
</insert>
<insert id="insertSelective" parameterType="cn.exrick.pojo.TbAddress">
<insert id="insertSelective" parameterType="cn.exrick.manager.pojo.TbAddress">
insert into tb_address
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="addressId != null">
Expand Down Expand Up @@ -151,7 +151,7 @@
</if>
</trim>
</insert>
<select id="countByExample" parameterType="cn.exrick.pojo.TbAddressExample" resultType="java.lang.Long">
<select id="countByExample" parameterType="cn.exrick.manager.pojo.TbAddressExample" resultType="java.lang.Long">
select count(*) from tb_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
Expand Down Expand Up @@ -195,7 +195,7 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.pojo.TbAddress">
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.manager.pojo.TbAddress">
update tb_address
<set>
<if test="userId != null">
Expand All @@ -216,7 +216,7 @@
</set>
where address_id = #{addressId,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="cn.exrick.pojo.TbAddress">
<update id="updateByPrimaryKey" parameterType="cn.exrick.manager.pojo.TbAddress">
update tb_address
set user_id = #{userId,jdbcType=BIGINT},
user_name = #{userName,jdbcType=VARCHAR},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cn.exrick.mapper;
package cn.exrick.manager.mapper;

import cn.exrick.pojo.TbContentCategory;
import cn.exrick.pojo.TbContentCategoryExample;
import cn.exrick.manager.pojo.TbContentCategory;
import cn.exrick.manager.pojo.TbContentCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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="cn.exrick.mapper.TbContentCategoryMapper">
<resultMap id="BaseResultMap" type="cn.exrick.pojo.TbContentCategory">
<mapper namespace="cn.exrick.manager.mapper.TbContentCategoryMapper">
<resultMap id="BaseResultMap" type="cn.exrick.manager.pojo.TbContentCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="name" jdbcType="VARCHAR" property="name" />
Expand Down Expand Up @@ -76,7 +76,7 @@
id, parent_id, name, status, sort_order, is_parent, created, updated, num, icon,
remark
</sql>
<select id="selectByExample" parameterType="cn.exrick.pojo.TbContentCategoryExample" resultMap="BaseResultMap">
<select id="selectByExample" parameterType="cn.exrick.manager.pojo.TbContentCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
Expand All @@ -100,13 +100,13 @@
delete from tb_content_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="cn.exrick.pojo.TbContentCategoryExample">
<delete id="deleteByExample" parameterType="cn.exrick.manager.pojo.TbContentCategoryExample">
delete from tb_content_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="cn.exrick.pojo.TbContentCategory">
<insert id="insert" parameterType="cn.exrick.manager.pojo.TbContentCategory">
insert into tb_content_category (id, parent_id, name,
status, sort_order, is_parent,
created, updated, num,
Expand All @@ -116,7 +116,7 @@
#{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}, #{num,jdbcType=INTEGER},
#{icon,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="cn.exrick.pojo.TbContentCategory">
<insert id="insertSelective" parameterType="cn.exrick.manager.pojo.TbContentCategory">
insert into tb_content_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
Expand Down Expand Up @@ -189,7 +189,7 @@
</if>
</trim>
</insert>
<select id="countByExample" parameterType="cn.exrick.pojo.TbContentCategoryExample" resultType="java.lang.Long">
<select id="countByExample" parameterType="cn.exrick.manager.pojo.TbContentCategoryExample" resultType="java.lang.Long">
select count(*) from tb_content_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
Expand Down Expand Up @@ -253,7 +253,7 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.pojo.TbContentCategory">
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.manager.pojo.TbContentCategory">
update tb_content_category
<set>
<if test="parentId != null">
Expand Down Expand Up @@ -289,7 +289,7 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="cn.exrick.pojo.TbContentCategory">
<update id="updateByPrimaryKey" parameterType="cn.exrick.manager.pojo.TbContentCategory">
update tb_content_category
set parent_id = #{parentId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cn.exrick.mapper;
package cn.exrick.manager.mapper;

import cn.exrick.pojo.TbContent;
import cn.exrick.pojo.TbContentExample;
import cn.exrick.manager.pojo.TbContent;
import cn.exrick.manager.pojo.TbContentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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="cn.exrick.mapper.TbContentMapper">
<resultMap id="BaseResultMap" type="cn.exrick.pojo.TbContent">
<mapper namespace="cn.exrick.manager.mapper.TbContentMapper">
<resultMap id="BaseResultMap" type="cn.exrick.manager.pojo.TbContent">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="product_id" jdbcType="VARCHAR" property="productId" />
Expand Down Expand Up @@ -70,7 +70,7 @@
<sql id="Base_Column_List">
id, category_id, product_id, created, updated, image
</sql>
<select id="selectByExample" parameterType="cn.exrick.pojo.TbContentExample" resultMap="BaseResultMap">
<select id="selectByExample" parameterType="cn.exrick.manager.pojo.TbContentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
Expand All @@ -94,21 +94,21 @@
delete from tb_content
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="cn.exrick.pojo.TbContentExample">
<delete id="deleteByExample" parameterType="cn.exrick.manager.pojo.TbContentExample">
delete from tb_content
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="cn.exrick.pojo.TbContent">
<insert id="insert" parameterType="cn.exrick.manager.pojo.TbContent">
insert into tb_content (id, category_id, product_id,
created, updated, image
)
values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{productId,jdbcType=VARCHAR},
#{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}, #{image,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="cn.exrick.pojo.TbContent">
<insert id="insertSelective" parameterType="cn.exrick.manager.pojo.TbContent">
insert into tb_content
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
Expand Down Expand Up @@ -151,7 +151,7 @@
</if>
</trim>
</insert>
<select id="countByExample" parameterType="cn.exrick.pojo.TbContentExample" resultType="java.lang.Long">
<select id="countByExample" parameterType="cn.exrick.manager.pojo.TbContentExample" resultType="java.lang.Long">
select count(*) from tb_content
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
Expand Down Expand Up @@ -195,7 +195,7 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.pojo.TbContent">
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.manager.pojo.TbContent">
update tb_content
<set>
<if test="categoryId != null">
Expand All @@ -216,7 +216,7 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="cn.exrick.pojo.TbContent">
<update id="updateByPrimaryKey" parameterType="cn.exrick.manager.pojo.TbContent">
update tb_content
set category_id = #{categoryId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=VARCHAR},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cn.exrick.mapper;
package cn.exrick.manager.mapper;

import cn.exrick.pojo.TbImage;
import cn.exrick.pojo.TbImageExample;
import cn.exrick.manager.pojo.TbImage;
import cn.exrick.manager.pojo.TbImageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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="cn.exrick.mapper.TbImageMapper">
<resultMap id="BaseResultMap" type="cn.exrick.pojo.TbImage">
<mapper namespace="cn.exrick.manager.mapper.TbImageMapper">
<resultMap id="BaseResultMap" type="cn.exrick.manager.pojo.TbImage">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="category_id" jdbcType="INTEGER" property="categoryId" />
<result column="image" jdbcType="VARCHAR" property="image" />
Expand Down Expand Up @@ -71,7 +71,7 @@
<sql id="Base_Column_List">
id, category_id, image, image_mobile, link, created, updated
</sql>
<select id="selectByExample" parameterType="cn.exrick.pojo.TbImageExample" resultMap="BaseResultMap">
<select id="selectByExample" parameterType="cn.exrick.manager.pojo.TbImageExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
Expand All @@ -95,21 +95,21 @@
delete from tb_image
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="cn.exrick.pojo.TbImageExample">
<delete id="deleteByExample" parameterType="cn.exrick.manager.pojo.TbImageExample">
delete from tb_image
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="cn.exrick.pojo.TbImage">
<insert id="insert" parameterType="cn.exrick.manager.pojo.TbImage">
insert into tb_image (id, category_id, image,
image_mobile, link, created,
updated)
values (#{id,jdbcType=INTEGER}, #{categoryId,jdbcType=INTEGER}, #{image,jdbcType=VARCHAR},
#{imageMobile,jdbcType=VARCHAR}, #{link,jdbcType=VARCHAR}, #{created,jdbcType=TIMESTAMP},
#{updated,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="cn.exrick.pojo.TbImage">
<insert id="insertSelective" parameterType="cn.exrick.manager.pojo.TbImage">
insert into tb_image
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
Expand Down Expand Up @@ -158,7 +158,7 @@
</if>
</trim>
</insert>
<select id="countByExample" parameterType="cn.exrick.pojo.TbImageExample" resultType="java.lang.Long">
<select id="countByExample" parameterType="cn.exrick.manager.pojo.TbImageExample" resultType="java.lang.Long">
select count(*) from tb_image
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
Expand Down Expand Up @@ -206,7 +206,7 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.pojo.TbImage">
<update id="updateByPrimaryKeySelective" parameterType="cn.exrick.manager.pojo.TbImage">
update tb_image
<set>
<if test="categoryId != null">
Expand All @@ -230,7 +230,7 @@
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="cn.exrick.pojo.TbImage">
<update id="updateByPrimaryKey" parameterType="cn.exrick.manager.pojo.TbImage">
update tb_image
set category_id = #{categoryId,jdbcType=INTEGER},
image = #{image,jdbcType=VARCHAR},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cn.exrick.mapper;
package cn.exrick.manager.mapper;

import cn.exrick.pojo.TbItemCat;
import cn.exrick.pojo.TbItemCatExample;
import cn.exrick.manager.pojo.TbItemCat;
import cn.exrick.manager.pojo.TbItemCatExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

Expand Down
Loading

0 comments on commit 7a3a342

Please sign in to comment.