Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
promotion-service
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
promotion-service
Commits
f80020ab
提交
f80020ab
authored
4月 22, 2024
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
促销员查询当日活动上报信息
上级
d8664c5d
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
58 行增加
和
2 行删除
+58
-2
TemporaryActivityQueryController.java
.../activity/temporary/TemporaryActivityQueryController.java
+10
-1
TemporaryActivityReportedDao.java
...ion/domain/activity/dao/TemporaryActivityReportedDao.java
+2
-0
TemporaryActivityReportedDaoImpl.java
...n/activity/dao/impl/TemporaryActivityReportedDaoImpl.java
+8
-0
PageVo.java
src/main/java/com/wangxiaolu/promotion/pojo/PageVo.java
+28
-0
WxTemporaryInfoDto.java
...angxiaolu/promotion/pojo/user/dto/WxTemporaryInfoDto.java
+1
-1
TemporaryActivityQueryService.java
...ice/activity/temporary/TemporaryActivityQueryService.java
+2
-0
TemporaryActivityCoreServiceImpl.java
...vity/temporary/impl/TemporaryActivityCoreServiceImpl.java
+1
-0
TemporaryActivityQueryServiceImpl.java
...ity/temporary/impl/TemporaryActivityQueryServiceImpl.java
+6
-0
没有找到文件。
src/main/java/com/wangxiaolu/promotion/controller/activity/temporary/TemporaryActivityQueryController.java
浏览文件 @
f80020ab
...
...
@@ -39,8 +39,17 @@ public class TemporaryActivityQueryController {
* 根据促销员id查询今日任务
*/
@GetMapping
(
"/today/{id}"
)
public
TemporaryActivityReportedDto
find
temporaryId
TodayActivityData
(
@PathVariable
(
"id"
)
@NotNull
Long
temporaryId
)
{
public
TemporaryActivityReportedDto
find
Temporary
TodayActivityData
(
@PathVariable
(
"id"
)
@NotNull
Long
temporaryId
)
{
TemporaryActivityReportedDto
dto
=
temporaryActivityQueryService
.
findtemporaryIdTodayActivityData
(
temporaryId
);
return
dto
;
}
/**
* 根据任务id查询
*/
@GetMapping
(
"/{id}"
)
public
TemporaryActivityReportedDto
findTemporaryActivityById
(
@PathVariable
(
"id"
)
@NotNull
Long
activityId
){
TemporaryActivityReportedDto
dto
=
temporaryActivityQueryService
.
findTemporaryActivityById
(
activityId
);
return
dto
;
}
}
src/main/java/com/wangxiaolu/promotion/domain/activity/dao/TemporaryActivityReportedDao.java
浏览文件 @
f80020ab
...
...
@@ -15,4 +15,6 @@ public interface TemporaryActivityReportedDao {
List
<
TemporaryActivityReportedDto
>
findListByTemporaryId
(
Long
temporaryId
);
TemporaryActivityReportedDto
findOneByCurrentDate
(
Long
temporaryId
);
TemporaryActivityReportedDto
findTemporaryActivityById
(
Long
activityId
);
}
src/main/java/com/wangxiaolu/promotion/domain/activity/dao/impl/TemporaryActivityReportedDaoImpl.java
浏览文件 @
f80020ab
...
...
@@ -39,6 +39,8 @@ public class TemporaryActivityReportedDaoImpl implements TemporaryActivityReport
TemporaryActivityReportedDO
tDo
=
new
TemporaryActivityReportedDO
();
BeanUtils
.
copyProperties
(
temActDto
,
tDo
);
tDo
.
setApproveStatus
(
temActDto
.
getApproveStatus
().
name
());
tDo
.
setCreateDate
(
DateUtil
.
today
());
int
tId
=
temporaryActivityReportedMapper
.
insert
(
tDo
);
...
...
@@ -71,6 +73,12 @@ public class TemporaryActivityReportedDaoImpl implements TemporaryActivityReport
return
transitionDto
(
temDO
);
}
@Override
public
TemporaryActivityReportedDto
findTemporaryActivityById
(
Long
activityId
)
{
TemporaryActivityReportedDO
temDO
=
temporaryActivityReportedMapper
.
selectById
(
activityId
);
return
transitionDto
(
temDO
);
}
private
LambdaQueryWrapper
<
TemporaryActivityReportedDO
>
buildQueryList
(
TemporaryActivityWrapper
tw
)
{
LambdaQueryWrapper
<
TemporaryActivityReportedDO
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
...
...
src/main/java/com/wangxiaolu/promotion/pojo/PageVo.java
0 → 100644
浏览文件 @
f80020ab
package
com
.
wangxiaolu
.
promotion
.
pojo
;
/**
* @author : liqiulin
* @date : 2024-04-19 13
* @describe : 分页配置,默认每页10条记录
*/
public
class
PageVo
{
/**
* 当前页数,从0开始
*/
private
Integer
pageNum
;
/**
* 每页条数
*/
private
Integer
pageSize
;
/**
* 总条数
*/
private
Integer
totalRecord
;
/**
* 总页数
*/
private
Integer
totalPage
;
}
src/main/java/com/wangxiaolu/promotion/pojo/user/dto/WxTemporaryInfoDto.java
浏览文件 @
f80020ab
...
...
@@ -21,7 +21,7 @@ public class WxTemporaryInfoDto {
/**
* temporary_info表id
*/
private
Integer
id
;
Integer
id
;
/**
* openId
*/
...
...
src/main/java/com/wangxiaolu/promotion/service/activity/temporary/TemporaryActivityQueryService.java
浏览文件 @
f80020ab
...
...
@@ -20,4 +20,6 @@ public interface TemporaryActivityQueryService {
* 根据促销员id查询今日任务
*/
TemporaryActivityReportedDto
findtemporaryIdTodayActivityData
(
Long
temporaryId
);
TemporaryActivityReportedDto
findTemporaryActivityById
(
Long
activityId
);
}
src/main/java/com/wangxiaolu/promotion/service/activity/temporary/impl/TemporaryActivityCoreServiceImpl.java
浏览文件 @
f80020ab
...
...
@@ -28,6 +28,7 @@ public class TemporaryActivityCoreServiceImpl implements TemporaryActivityCoreSe
*/
@Override
public
long
activityDataReportedSave
(
TemporaryActivityReportedDto
temActDto
)
{
temActDto
.
setApproveStatus
(
TemActApproveStatus
.
SUBMITTED
);
return
temporaryActivityReportedDao
.
activityDataSave
(
temActDto
);
}
}
src/main/java/com/wangxiaolu/promotion/service/activity/temporary/impl/TemporaryActivityQueryServiceImpl.java
浏览文件 @
f80020ab
...
...
@@ -39,4 +39,10 @@ public class TemporaryActivityQueryServiceImpl implements TemporaryActivityQuery
TemporaryActivityReportedDto
dto
=
temporaryActivityReportedDao
.
findOneByCurrentDate
(
temporaryId
);
return
dto
;
}
@Override
public
TemporaryActivityReportedDto
findTemporaryActivityById
(
Long
activityId
)
{
TemporaryActivityReportedDto
dto
=
temporaryActivityReportedDao
.
findTemporaryActivityById
(
activityId
);
return
dto
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论