Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
promotion-service
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
promotion-service
Commits
9a5c50c5
提交
9a5c50c5
authored
3月 31, 2025
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
根据计划ID查询多个促销任务,每个促销任务查询促销任务推广照片
上级
c09a91f1
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
18 行增加
和
16 行删除
+18
-16
PromPlanQueryController.java
...on/controller/activityplanv2/PromPlanQueryController.java
+5
-2
TemporaryActivityQueryService.java
...ice/activity/temporary/TemporaryActivityQueryService.java
+2
-0
TemporaryActivityQueryServiceImpl.java
...ity/temporary/impl/TemporaryActivityQueryServiceImpl.java
+10
-0
PromPlanQueryServiceImpl.java
...service/activityplanv2/impl/PromPlanQueryServiceImpl.java
+1
-14
没有找到文件。
src/main/java/com/wangxiaolu/promotion/controller/activityplanv2/PromPlanQueryController.java
浏览文件 @
9a5c50c5
package
com
.
wangxiaolu
.
promotion
.
controller
.
activityplanv2
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.wangxiaolu.promotion.domain.activity.wrapperQo.TemporaryActivityWrapper
;
import
com.wangxiaolu.promotion.domain.activity.wrapperQo.TemporaryClockWrapper
;
import
com.wangxiaolu.promotion.pojo.PageInfo
;
import
com.wangxiaolu.promotion.pojo.activity.planv2.response.ActivityResponse
;
...
...
@@ -8,6 +9,7 @@ import com.wangxiaolu.promotion.pojo.activity.temporary.dto.TemporaryActivityRep
import
com.wangxiaolu.promotion.pojo.activity.temporary.dto.TemporaryClockDto
;
import
com.wangxiaolu.promotion.result.basedata.R
;
import
com.wangxiaolu.promotion.service.activity.temporary.TemporaryActivityClockQueryService
;
import
com.wangxiaolu.promotion.service.activity.temporary.TemporaryActivityQueryService
;
import
com.wangxiaolu.promotion.service.activityplanv2.PromPlanQueryService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -30,6 +32,8 @@ public class PromPlanQueryController {
private
PromPlanQueryService
promPlanQueryService
;
@Autowired
private
TemporaryActivityClockQueryService
temporaryActivityClockQueryService
;
@Autowired
private
TemporaryActivityQueryService
temporaryActivityQueryService
;
@PostMapping
(
"/page"
)
public
R
queryPage
(
@RequestBody
PageInfo
pageInfo
){
...
...
@@ -43,8 +47,7 @@ public class PromPlanQueryController {
@GetMapping
(
"/{id}"
)
public
R
queryPlanById
(
@PathParam
(
"id"
)
@PathVariable
Long
id
){
ActivityResponse
activityResponse
=
promPlanQueryService
.
queryPlanById
(
id
);
List
<
TemporaryActivityReportedDto
>
reportedDtos
=
activityResponse
.
getReportedDtos
();
List
<
TemporaryActivityReportedDto
>
reportedDtos
=
temporaryActivityQueryService
.
findListByPlan
(
id
);
if
(
CollectionUtil
.
isEmpty
(
reportedDtos
)){
return
R
.
success
(
activityResponse
);
}
...
...
src/main/java/com/wangxiaolu/promotion/service/activity/temporary/TemporaryActivityQueryService.java
浏览文件 @
9a5c50c5
...
...
@@ -29,4 +29,6 @@ public interface TemporaryActivityQueryService {
JSONArray
findActivityMarketCell
(
Integer
temporaryId
);
List
<
TemporaryActivityMarketCellDto
>
findActivityMarketCellByDb
(
Long
activityId
);
List
<
TemporaryActivityReportedDto
>
findListByPlan
(
Long
planId
);
}
src/main/java/com/wangxiaolu/promotion/service/activity/temporary/impl/TemporaryActivityQueryServiceImpl.java
浏览文件 @
9a5c50c5
...
...
@@ -87,6 +87,16 @@ public class TemporaryActivityQueryServiceImpl implements TemporaryActivityQuery
return
dtos
;
}
@Override
public
List
<
TemporaryActivityReportedDto
>
findListByPlan
(
Long
planId
)
{
TemporaryActivityWrapper
taw
=
new
TemporaryActivityWrapper
().
setPlanId
(
planId
);
List
<
TemporaryActivityReportedDto
>
reportedDtos
=
temporaryActivityReportedDao
.
findList
(
taw
);
for
(
TemporaryActivityReportedDto
reportedDto
:
reportedDtos
)
{
findActivityReportedPhotoInfo
(
reportedDto
);
}
return
reportedDtos
;
}
private
void
findActivityReportedPhoto
(
TemporaryActivityReportedDto
dto
)
{
if
(
Objects
.
isNull
(
dto
))
{
return
;
...
...
src/main/java/com/wangxiaolu/promotion/service/activityplanv2/impl/PromPlanQueryServiceImpl.java
浏览文件 @
9a5c50c5
package
com
.
wangxiaolu
.
promotion
.
service
.
activityplanv2
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.wangxiaolu.promotion.domain.activity.dao.TemporaryActivityClockDao
;
import
com.wangxiaolu.promotion.domain.activity.dao.TemporaryActivityReportedDao
;
import
com.wangxiaolu.promotion.domain.activity.wrapperQo.TemporaryActivityWrapper
;
import
com.wangxiaolu.promotion.domain.activityplanv2.dao.ActivityPlanInfoDao
;
import
com.wangxiaolu.promotion.domain.manage.wrapperQo.ActivityPlanInfoWrapper
;
import
com.wangxiaolu.promotion.enums.plan.PlanStatus
;
import
com.wangxiaolu.promotion.pojo.PageInfo
;
import
com.wangxiaolu.promotion.pojo.activity.planv2.dto.ActivityPlanInfoDto
;
import
com.wangxiaolu.promotion.pojo.activity.planv2.response.ActivityResponse
;
import
com.wangxiaolu.promotion.pojo.activity.temporary.dto.TemporaryActivityReportedDto
;
import
com.wangxiaolu.promotion.pojo.activity.temporary.vo.TemporaryActivityPlanVo
;
import
com.wangxiaolu.promotion.service.activityplanv2.PromPlanQueryService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -18,7 +14,6 @@ import org.springframework.stereotype.Service;
import
java.time.LocalDate
;
import
java.time.ZoneId
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -32,10 +27,6 @@ public class PromPlanQueryServiceImpl implements PromPlanQueryService {
@Autowired
private
ActivityPlanInfoDao
activityPlanInfoDao
;
@Autowired
private
TemporaryActivityReportedDao
temporaryActivityReportedDao
;
@Autowired
private
TemporaryActivityClockDao
temporaryActivityClockDao
;
@Override
public
void
queryPage
(
PageInfo
pageInfo
)
{
...
...
@@ -63,10 +54,6 @@ public class PromPlanQueryServiceImpl implements PromPlanQueryService {
@Override
public
ActivityResponse
queryPlanById
(
Long
id
)
{
ActivityPlanInfoDto
planInfoDto
=
activityPlanInfoDao
.
selectById
(
id
);
TemporaryActivityWrapper
taw
=
new
TemporaryActivityWrapper
().
setPlanId
(
id
);
List
<
TemporaryActivityReportedDto
>
reportedDtos
=
temporaryActivityReportedDao
.
findList
(
taw
);
ActivityResponse
response
=
new
ActivityResponse
().
setPlanInfo
(
planInfoDto
).
setReportedDtos
(
reportedDtos
);
return
response
;
return
new
ActivityResponse
().
setPlanInfo
(
planInfoDto
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论