Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-export
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
wangxiaolu-export
Commits
1ec437cd
提交
1ec437cd
authored
7月 04, 2024
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
导出查询推广类照片
上级
a7e28e7d
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
5 行删除
+15
-5
PromotionActivityExport.java
.../export/controller/promotion/PromotionActivityExport.java
+2
-1
TemporaryActivityPhotoMapper.java
...angxiaolu/export/mapper/TemporaryActivityPhotoMapper.java
+2
-1
application-dev.yml
src/main/resources/application-dev.yml
+7
-2
TemporaryActivityPhotoMapper.xml
src/main/resources/mapper/TemporaryActivityPhotoMapper.xml
+4
-1
没有找到文件。
src/main/java/com/wangxiaolu/export/controller/promotion/PromotionActivityExport.java
浏览文件 @
1ec437cd
...
...
@@ -36,7 +36,7 @@ public class PromotionActivityExport {
@PostMapping
(
"/activity"
)
public
void
activityList
(
HttpServletResponse
response
,
@RequestBody
ActivityVo
activityVo
)
{
log
.
info
(
"
活动记录导出
"
);
log
.
info
(
"
============== 活动记录导出 start ==============
"
);
List
<
TemporaryActivityReportedDO
>
reportedDos
=
promotionActivityService
.
findActivityList
(
activityVo
);
List
<
Long
>
activityId
=
reportedDos
.
stream
().
map
(
TemporaryActivityReportedDO:
:
getId
).
collect
(
Collectors
.
toList
());
Map
<
Long
,
List
<
TemporaryActivityPhotoDO
>>
activityPhotos
=
promotionActivityService
.
findActivityPhotos
(
activityId
);
...
...
@@ -212,6 +212,7 @@ public class PromotionActivityExport {
log
.
info
(
"活动记录数据处理完成,开始导出"
);
ExcelUtils
.
export
(
response
,
"活动数据导出_"
+
DateUtil
.
today
(),
sheet
);
log
.
info
(
"============== 活动记录导出 end =============="
);
}
}
src/main/java/com/wangxiaolu/export/mapper/TemporaryActivityPhotoMapper.java
浏览文件 @
1ec437cd
...
...
@@ -3,6 +3,7 @@ package com.wangxiaolu.export.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.wangxiaolu.export.mapper.entity.TemporaryActivityPhotoDO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
...
...
@@ -16,7 +17,7 @@ import java.util.List;
@Mapper
@Repository
public
interface
TemporaryActivityPhotoMapper
extends
BaseMapper
<
TemporaryActivityPhotoDO
>
{
List
<
TemporaryActivityPhotoDO
>
findActivityPhotos
(
List
<
Long
>
activityId
);
List
<
TemporaryActivityPhotoDO
>
findActivityPhotos
(
@Param
(
"aids"
)
List
<
Long
>
activityId
);
}
...
...
src/main/resources/application-dev.yml
浏览文件 @
1ec437cd
...
...
@@ -19,4 +19,9 @@ spring:
group
:
promotion
logging
:
config
:
classpath:logback-spring.xml
\ No newline at end of file
config
:
classpath:logback-spring.xml
# mybatis-plus 控制台打印sql日志
mybatis-plus
:
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
\ No newline at end of file
src/main/resources/mapper/TemporaryActivityPhotoMapper.xml
浏览文件 @
1ec437cd
...
...
@@ -16,7 +16,10 @@
select reported_id, type, photo_url
from temporary_activity_photo
where is_delete = 1
and reported_id in (45, 46, 47);
and reported_id in
<foreach
collection=
"aids"
item=
"aid"
open=
"("
close=
")"
separator=
","
>
#{aid}
</foreach>
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论