Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
ms
soss
Commits
4e22b068
Commit
4e22b068
authored
Jul 21, 2022
by
caiyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加表映射相关类
parent
36c2328f
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
649 additions
and
0 deletions
+649
-0
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponCategoryController.java
+19
-0
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponController.java
+19
-0
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponRuleController.java
+19
-0
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponUserController.java
+19
-0
soss-system/src/main/java/com/soss/system/domain/Coupon.java
+70
-0
soss-system/src/main/java/com/soss/system/domain/CouponCategory.java
+57
-0
soss-system/src/main/java/com/soss/system/domain/CouponRule.java
+147
-0
soss-system/src/main/java/com/soss/system/domain/CouponUser.java
+101
-0
soss-system/src/main/java/com/soss/system/mapper/CouponCategoryMapper.java
+13
-0
soss-system/src/main/java/com/soss/system/mapper/CouponMapper.java
+13
-0
soss-system/src/main/java/com/soss/system/mapper/CouponRuleMapper.java
+13
-0
soss-system/src/main/java/com/soss/system/mapper/CouponUserMapper.java
+13
-0
soss-system/src/main/java/com/soss/system/service/ICouponCategoryService.java
+13
-0
soss-system/src/main/java/com/soss/system/service/ICouponRuleService.java
+16
-0
soss-system/src/main/java/com/soss/system/service/ICouponService.java
+13
-0
soss-system/src/main/java/com/soss/system/service/ICouponUserService.java
+16
-0
soss-system/src/main/java/com/soss/system/service/impl/CouponCategoryServiceImpl.java
+17
-0
soss-system/src/main/java/com/soss/system/service/impl/CouponRuleServiceImpl.java
+17
-0
soss-system/src/main/java/com/soss/system/service/impl/CouponServiceImpl.java
+17
-0
soss-system/src/main/java/com/soss/system/service/impl/CouponUserServiceImpl.java
+17
-0
soss-system/src/main/resources/mapper/system/CouponCategoryMapper.xml
+5
-0
soss-system/src/main/resources/mapper/system/CouponMapper.xml
+5
-0
soss-system/src/main/resources/mapper/system/CouponRuleMapper.xml
+5
-0
soss-system/src/main/resources/mapper/system/CouponUserMapper.xml
+5
-0
No files found.
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponCategoryController.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
web
.
controller
.
coupon
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* <p>
* 优惠券类别 前端控制器
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@RestController
@RequestMapping
(
"/coupon-category"
)
public
class
CouponCategoryController
{
}
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponController.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
web
.
controller
.
coupon
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* <p>
* 优惠券 前端控制器
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@RestController
@RequestMapping
(
"/coupon"
)
public
class
CouponController
{
}
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponRuleController.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
web
.
controller
.
coupon
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* <p>
* 优惠券规则 前端控制器
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@RestController
@RequestMapping
(
"/coupon-rule"
)
public
class
CouponRuleController
{
}
soss-admin/src/main/java/com/soss/web/controller/coupon/CouponUserController.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
web
.
controller
.
coupon
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* <p>
* 用户领取优惠券记录表 前端控制器
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@RestController
@RequestMapping
(
"/coupon-user"
)
public
class
CouponUserController
{
}
soss-system/src/main/java/com/soss/system/domain/Coupon.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
domain
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.soss.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* <p>
* 优惠券
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Data
public
class
Coupon
extends
BaseEntity
{
/**
* 主键
*/
private
Integer
id
;
/**
* 优惠劵名
*/
private
String
name
;
/**
* 优惠券编码
*/
private
String
serialNo
;
/**
* 优惠券类别ID
*/
private
Integer
categoryId
;
/**
* 优惠券类别名
*/
private
String
categoryName
;
/**
* 优惠券规则id
*/
private
Integer
ruleId
;
/**
* 优惠券类型 1 抵扣 2 折扣 3 免单
*/
private
Integer
type
;
/**
* 状态 0 默认 1 上线 2 下线
*/
private
Integer
state
;
/**
* 创建时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
createdAt
;
/**
* 更新时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
updatedAt
;
}
soss-system/src/main/java/com/soss/system/domain/CouponCategory.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
domain
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.soss.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* <p>
* 优惠券类别
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Data
public
class
CouponCategory
extends
BaseEntity
{
/**
* 主键
*/
private
Integer
id
;
/**
* 优惠劵类别名
*/
private
String
name
;
/**
* 状态 0 默认 1 生效 2 下线 3删除
*/
private
Integer
state
;
/**
* 优惠券类别描述
*/
private
String
desc
;
/**
* 优惠券类型 1 抵扣 2 折扣 3 免单
*/
private
Integer
type
;
/**
* 创建时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
createdAt
;
/**
* 更新时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
updatedAt
;
}
soss-system/src/main/java/com/soss/system/domain/CouponRule.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
domain
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.soss.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* <p>
* 优惠券规则
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Data
public
class
CouponRule
extends
BaseEntity
{
/**
* 主键
*/
private
Integer
id
;
/**
* 优惠劵规则名
*/
private
String
name
;
/**
* 优惠劵规则描述
*/
private
String
desc
;
/**
* 可用省份列表 可存code列表
*/
private
String
province
;
/**
* 可用城市列表
*/
private
String
city
;
/**
* 可用区域列表
*/
private
String
area
;
/**
* 可用店铺ID列表
*/
private
String
shopIds
;
/**
* 可用商品类别列表
*/
private
String
categoryIds
;
/**
* 可用商品id列表
*/
private
String
goodsIds
;
/**
* 领取开始时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
startTime
;
/**
* 领取截止时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
endTime
;
/**
* 使用绝对开始时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
useStartTime
;
/**
* 使用绝对截止时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
useEndTime
;
/**
* 领取后相对有效天数
*/
private
Integer
relativeTime
;
/**
* 价格门槛
*/
private
BigDecimal
priceLimit
;
/**
* 订单限制 0 整单 1 单杯
*/
private
Integer
orderLimit
;
/**
* 周几限制 1,2,3
*/
private
String
weekLimit
;
/**
* 用户领取次数限制0无限制
*/
private
Integer
userLimit
;
/**
* 用户领取天数限制0无限制
*/
private
Integer
daysLimit
;
/**
* 是否发送短信0不1发
*/
private
Integer
sendMsg
;
/**
* 短信模板ID
*/
private
Integer
msgId
;
/**
* 规则状态0正常1停用
*/
private
Integer
state
;
/**
* 创建时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
createdAt
;
/**
* 更新时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
updatedAt
;
}
soss-system/src/main/java/com/soss/system/domain/CouponUser.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
domain
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.soss.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* <p>
* 用户领取优惠券记录表
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Data
public
class
CouponUser
extends
BaseEntity
{
/**
* 主键
*/
private
Integer
id
;
/**
* 用户ID
*/
private
String
userId
;
/**
* 用户名
*/
private
String
userName
;
/**
* 用户手机号
*/
private
String
userPhone
;
/**
* 关联订单
*/
private
Integer
orderId
;
/**
* 关联优惠券
*/
private
Integer
couponId
;
/**
* 领取时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
receiveTime
;
/**
* 激活使用时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
activeTime
;
/**
* 失效时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
expiredTime
;
/**
* 优惠金额
*/
private
BigDecimal
discount
;
/**
* 优惠券来源 order index等等
*/
private
String
source
;
/**
* 1领取 2 发放
*/
private
Integer
type
;
/**
* 状态 0 默认 1 已使用 2 已过期 3 已禁用
*/
private
Integer
state
;
/**
* 创建时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
createdAt
;
/**
* 更新时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
LocalDateTime
updatedAt
;
}
soss-system/src/main/java/com/soss/system/mapper/CouponCategoryMapper.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
mapper
;
/**
* <p>
* 优惠券类别 Mapper 接口
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
CouponCategoryMapper
{
}
soss-system/src/main/java/com/soss/system/mapper/CouponMapper.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
mapper
;
/**
* <p>
* 优惠券 Mapper 接口
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
CouponMapper
{
}
soss-system/src/main/java/com/soss/system/mapper/CouponRuleMapper.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
mapper
;
/**
* <p>
* 优惠券规则 Mapper 接口
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
CouponRuleMapper
{
}
soss-system/src/main/java/com/soss/system/mapper/CouponUserMapper.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
mapper
;
/**
* <p>
* 用户领取优惠券记录表 Mapper 接口
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
CouponUserMapper
{
}
soss-system/src/main/java/com/soss/system/service/ICouponCategoryService.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
;
/**
* <p>
* 优惠券类别 服务类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
ICouponCategoryService
{
}
soss-system/src/main/java/com/soss/system/service/ICouponRuleService.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.sskuaixiu.settlement.bo.CouponRule
;
/**
* <p>
* 优惠券规则 服务类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
ICouponRuleService
{
}
soss-system/src/main/java/com/soss/system/service/ICouponService.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
;
/**
* <p>
* 优惠券 服务类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
ICouponService
{
}
soss-system/src/main/java/com/soss/system/service/ICouponUserService.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.sskuaixiu.settlement.bo.CouponUser
;
/**
* <p>
* 用户领取优惠券记录表 服务类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
public
interface
ICouponUserService
{
}
soss-system/src/main/java/com/soss/system/service/impl/CouponCategoryServiceImpl.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
.
impl
;
import
com.soss.system.service.ICouponCategoryService
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 优惠券类别 服务实现类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Service
public
class
CouponCategoryServiceImpl
implements
ICouponCategoryService
{
}
soss-system/src/main/java/com/soss/system/service/impl/CouponRuleServiceImpl.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
.
impl
;
import
com.soss.system.service.ICouponRuleService
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 优惠券规则 服务实现类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Service
public
class
CouponRuleServiceImpl
implements
ICouponRuleService
{
}
soss-system/src/main/java/com/soss/system/service/impl/CouponServiceImpl.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
.
impl
;
import
com.soss.system.service.ICouponService
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 优惠券 服务实现类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Service
public
class
CouponServiceImpl
implements
ICouponService
{
}
soss-system/src/main/java/com/soss/system/service/impl/CouponUserServiceImpl.java
0 → 100644
View file @
4e22b068
package
com
.
soss
.
system
.
service
.
impl
;
import
com.soss.system.service.ICouponUserService
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 用户领取优惠券记录表 服务实现类
* </p>
*
* @author caiyt
* @since 2022-07-21
*/
@Service
public
class
CouponUserServiceImpl
implements
ICouponUserService
{
}
soss-system/src/main/resources/mapper/system/CouponCategoryMapper.xml
0 → 100644
View file @
4e22b068
<?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.soss.system.mapper.CouponCategoryMapper"
>
</mapper>
soss-system/src/main/resources/mapper/system/CouponMapper.xml
0 → 100644
View file @
4e22b068
<?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.soss.system.mapper.CouponMapper"
>
</mapper>
soss-system/src/main/resources/mapper/system/CouponRuleMapper.xml
0 → 100644
View file @
4e22b068
<?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.soss.system.mapper.CouponRuleMapper"
>
</mapper>
soss-system/src/main/resources/mapper/system/CouponUserMapper.xml
0 → 100644
View file @
4e22b068
<?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.soss.system.mapper.CouponUserMapper"
>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment