Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
有来技术
youlai-mall
提交
9e532a49
Y
youlai-mall
项目概览
有来技术
/
youlai-mall
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
youlai-mall
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9e532a49
编写于
3月 05, 2021
作者:
H
haoxr
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitee.com/youlaitech/youlai-mall
上级
e7aa2678
a905d5b3
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
275 addition
and
0 deletion
+275
-0
mall-sms/sms-api/src/main/java/com/youlai/mall/sms/pojo/domain/SmsSeckillSession.java
...va/com/youlai/mall/sms/pojo/domain/SmsSeckillSession.java
+50
-0
mall-sms/sms-api/src/main/java/com/youlai/mall/sms/pojo/domain/SmsSeckillSkuRelation.java
...om/youlai/mall/sms/pojo/domain/SmsSeckillSkuRelation.java
+60
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SeckillController.java
...m/youlai/mall/sms/controller/admin/SeckillController.java
+17
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SeckillSkuRelationController.java
...ll/sms/controller/admin/SeckillSkuRelationController.java
+17
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsSeckillSessionMapper.java
...a/com/youlai/mall/sms/mapper/SmsSeckillSessionMapper.java
+15
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsSeckillSkuRelationMapper.java
...m/youlai/mall/sms/mapper/SmsSeckillSkuRelationMapper.java
+15
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsSeckillSessionService.java
...com/youlai/mall/sms/service/SmsSeckillSessionService.java
+13
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsSeckillSkuRelationService.java
...youlai/mall/sms/service/SmsSeckillSkuRelationService.java
+13
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsSeckillSessionServiceImpl.java
...i/mall/sms/service/impl/SmsSeckillSessionServiceImpl.java
+19
-0
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsSeckillSkuRelationServiceImpl.java
...ll/sms/service/impl/SmsSeckillSkuRelationServiceImpl.java
+19
-0
mall-sms/sms-boot/src/main/resources/mapper/SmsSeckillSessionMapper.xml
...oot/src/main/resources/mapper/SmsSeckillSessionMapper.xml
+17
-0
mall-sms/sms-boot/src/main/resources/mapper/SmsSeckillSkuRelationMapper.xml
...src/main/resources/mapper/SmsSeckillSkuRelationMapper.xml
+20
-0
未找到文件。
mall-sms/sms-api/src/main/java/com/youlai/mall/sms/pojo/domain/SmsSeckillSession.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.pojo.domain
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* sms_seckill_session
* @author huawei
*/
@Data
public
class
SmsSeckillSession
implements
Serializable
{
/**
* id
*/
private
Long
id
;
/**
* 场次名称
*/
private
String
name
;
/**
* 每日开始时间
*/
private
Date
startTime
;
/**
* 每日结束时间
*/
private
Date
endTime
;
/**
* 启用状态 1-开启 0-关闭
*/
private
Boolean
status
;
/**
* 创建时间
*/
private
Date
gmtCreate
;
/**
* 修改时间
*/
private
Date
gmtModified
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
mall-sms/sms-api/src/main/java/com/youlai/mall/sms/pojo/domain/SmsSeckillSkuRelation.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.pojo.domain
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* sms_seckill_sku_relation
* @author huawei
*/
@Data
public
class
SmsSeckillSkuRelation
implements
Serializable
{
/**
* id
*/
private
Long
id
;
/**
* 活动场次id
*/
private
Long
sessionId
;
/**
* 商品id
*/
private
Long
skuId
;
/**
* 秒杀价格
*/
private
Long
seckillPrice
;
/**
* 秒杀总量
*/
private
Integer
seckillCount
;
/**
* 每人限购数量
*/
private
Integer
seckillLimit
;
/**
* 排序
*/
private
Integer
seckillSort
;
/**
* 创建时间
*/
private
Date
gmtCreate
;
/**
* 修改时间
*/
private
Date
gmtModified
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SeckillController.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.controller.admin
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author huawei
* @desc 秒杀活动场次管理
* @email huawei_code@163.com
* @date 2021/3/4
*/
@Api
(
tags
=
"秒杀活动场次管理"
)
@RestController
@RequestMapping
(
"/api.admin/v1/seckill"
)
public
class
SeckillController
{
}
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SeckillSkuRelationController.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.controller.admin
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author huawei
* @desc 秒杀活动商品关联管理模块
* @email huawei_code@163.com
* @date 2021/3/4
*/
@Api
(
tags
=
"秒杀活动商品关联管理模块"
)
@RestController
@RequestMapping
(
"/api.admin/v1/seckill/sku/relation"
)
public
class
SeckillSkuRelationController
{
}
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsSeckillSessionMapper.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.youlai.mall.sms.pojo.domain.SmsSeckillSession
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @author huawei
* @email huawei_code@163.com
* @date 2021/3/4
*/
@Mapper
public
interface
SmsSeckillSessionMapper
extends
BaseMapper
<
SmsSeckillSession
>
{
}
\ No newline at end of file
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsSeckillSkuRelationMapper.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.youlai.mall.sms.pojo.domain.SmsSeckillSkuRelation
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @author huawei
* @email huawei_code@163.com
* @date 2021/3/4
*/
@Mapper
public
interface
SmsSeckillSkuRelationMapper
extends
BaseMapper
<
SmsSeckillSkuRelation
>
{
}
\ No newline at end of file
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsSeckillSessionService.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.youlai.mall.sms.pojo.domain.SmsSeckillSession
;
/**
* @author huawei
* @desc 秒杀活动场次业务接口
* @email huawei_code@163.com
* @date 2021/3/5
*/
public
interface
SmsSeckillSessionService
extends
IService
<
SmsSeckillSession
>
{
}
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsSeckillSkuRelationService.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.youlai.mall.sms.pojo.domain.SmsSeckillSkuRelation
;
/**
* @author huawei
* @desc 秒杀活动场次商品关联业务接口
* @email huawei_code@163.com
* @date 2021/3/5
*/
public
interface
SmsSeckillSkuRelationService
extends
IService
<
SmsSeckillSkuRelation
>
{
}
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsSeckillSessionServiceImpl.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.service.impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.youlai.mall.sms.mapper.SmsSeckillSessionMapper
;
import
com.youlai.mall.sms.pojo.domain.SmsSeckillSession
;
import
com.youlai.mall.sms.service.SmsSeckillSessionService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
* @author huawei
* @desc 秒杀活动场次管理业务实现类
* @email huawei_code@163.com
* @date 2021/3/5
*/
@Service
@Slf4j
public
class
SmsSeckillSessionServiceImpl
extends
ServiceImpl
<
SmsSeckillSessionMapper
,
SmsSeckillSession
>
implements
SmsSeckillSessionService
{
}
mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsSeckillSkuRelationServiceImpl.java
0 → 100644
浏览文件 @
9e532a49
package
com.youlai.mall.sms.service.impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.youlai.mall.sms.mapper.SmsSeckillSkuRelationMapper
;
import
com.youlai.mall.sms.pojo.domain.SmsSeckillSkuRelation
;
import
com.youlai.mall.sms.service.SmsSeckillSkuRelationService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
* @author huawei
* @desc 秒杀活动场次商品关联业务实现类
* @email huawei_code@163.com
* @date 2021/3/5
*/
@Service
@Slf4j
public
class
SmsSeckillSkuRelationServiceImpl
extends
ServiceImpl
<
SmsSeckillSkuRelationMapper
,
SmsSeckillSkuRelation
>
implements
SmsSeckillSkuRelationService
{
}
mall-sms/sms-boot/src/main/resources/mapper/SmsSeckillSessionMapper.xml
0 → 100644
浏览文件 @
9e532a49
<?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.youlai.mall.sms.mapper.SmsSeckillSessionMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.youlai.mall.sms.pojo.domain.SmsSeckillSession"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"start_time"
jdbcType=
"TIMESTAMP"
property=
"startTime"
/>
<result
column=
"end_time"
jdbcType=
"TIMESTAMP"
property=
"endTime"
/>
<result
column=
"status"
jdbcType=
"BOOLEAN"
property=
"status"
/>
<result
column=
"gmt_create"
jdbcType=
"TIMESTAMP"
property=
"gmtCreate"
/>
<result
column=
"gmt_modified"
jdbcType=
"TIMESTAMP"
property=
"gmtModified"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, `name`, start_time, end_time, `status`, gmt_create, gmt_modified
</sql>
</mapper>
\ No newline at end of file
mall-sms/sms-boot/src/main/resources/mapper/SmsSeckillSkuRelationMapper.xml
0 → 100644
浏览文件 @
9e532a49
<?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.youlai.mall.sms.mapper.SmsSeckillSkuRelationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.youlai.mall.sms.pojo.domain.SmsSeckillSkuRelation"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"session_id"
jdbcType=
"BIGINT"
property=
"sessionId"
/>
<result
column=
"sku_id"
jdbcType=
"BIGINT"
property=
"skuId"
/>
<result
column=
"seckill_price"
jdbcType=
"BIGINT"
property=
"seckillPrice"
/>
<result
column=
"seckill_count"
jdbcType=
"INTEGER"
property=
"seckillCount"
/>
<result
column=
"seckill_limit"
jdbcType=
"INTEGER"
property=
"seckillLimit"
/>
<result
column=
"seckill_sort"
jdbcType=
"INTEGER"
property=
"seckillSort"
/>
<result
column=
"gmt_create"
jdbcType=
"TIMESTAMP"
property=
"gmtCreate"
/>
<result
column=
"gmt_modified"
jdbcType=
"TIMESTAMP"
property=
"gmtModified"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, session_id, sku_id, seckill_price, seckill_count, seckill_limit, seckill_sort,
gmt_create, gmt_modified
</sql>
</mapper>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录