Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
promotion-service
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
promotion-service
Commits
fffaa0cf
提交
fffaa0cf
authored
3月 04, 2025
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
当促销类型是mini秀、校园活动,允许计划被多次使用
上级
4a0f8366
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
32 行增加
和
12 行删除
+32
-12
TemporaryActivityPlanQueryController.java
...ivity/temporary/TemporaryActivityPlanQueryController.java
+2
-2
PromPlanCoreController.java
...ion/controller/activityplanv2/PromPlanCoreController.java
+0
-3
ActivityPlanInfoDao.java
...motion/domain/activityplanv2/dao/ActivityPlanInfoDao.java
+1
-1
ActivityPlanInfoDaoImpl.java
...main/activityplanv2/dao/impl/ActivityPlanInfoDaoImpl.java
+3
-3
ActivityPlanInfoMapper.java
.../domain/activityplanv2/mapper/ActivityPlanInfoMapper.java
+3
-0
PromPlanQueryService.java
...romotion/service/activityplanv2/PromPlanQueryService.java
+1
-1
PromPlanQueryServiceImpl.java
...service/activityplanv2/impl/PromPlanQueryServiceImpl.java
+2
-2
ActivityPlanInfoMapper.xml
...esources/mapper/activityplanv2/ActivityPlanInfoMapper.xml
+20
-0
没有找到文件。
src/main/java/com/wangxiaolu/promotion/controller/activity/temporary/TemporaryActivityPlanQueryController.java
浏览文件 @
fffaa0cf
...
...
@@ -33,11 +33,11 @@ public class TemporaryActivityPlanQueryController {
}
/**
*
todo
小程序端促销员查询促销计划
* 小程序端促销员查询促销计划
*/
@GetMapping
(
"/plans"
)
public
R
findActivityPlanInfo
(
TemporaryActivityPlanVo
temporaryActivityPlanVo
){
return
R
.
success
(
promPlanQueryService
.
findList
(
temporaryActivityPlanVo
));
return
R
.
success
(
promPlanQueryService
.
find
Clock
List
(
temporaryActivityPlanVo
));
}
...
...
src/main/java/com/wangxiaolu/promotion/controller/activityplanv2/PromPlanCoreController.java
浏览文件 @
fffaa0cf
...
...
@@ -55,7 +55,6 @@ public class PromPlanCoreController {
String
[]
urlArr
=
activityPlanVo
.
getExcelUrl
().
split
(
"/"
);
String
fileId
=
urlArr
[
urlArr
.
length
-
1
];
String
filePath
=
"/root/promotion/planv2/"
+
fileId
;
//todo String filePath = "/Users/a02200059/Desktop/2.0/" + fileId;
FileUtils
.
downloadExcel
(
activityPlanVo
.
getExcelUrl
(),
filePath
);
activityPlanVo
.
setExcelId
(
fileId
);
Map
<
String
,
Object
>
map
=
promPlanCoreService
.
selfPlanUp
(
activityPlanVo
,
filePath
);
...
...
@@ -87,7 +86,6 @@ public class PromPlanCoreController {
String
[]
urlArr
=
activityPlanVo
.
getExcelUrl
().
split
(
"/"
);
String
fileId
=
urlArr
[
urlArr
.
length
-
1
];
String
filePath
=
"/root/promotion/planv2/"
+
fileId
;
// todo String filePath = "/Users/a02200059/Desktop/2.0/" + fileId;
FileUtils
.
downloadExcel
(
activityPlanVo
.
getExcelUrl
(),
filePath
);
activityPlanVo
.
setExcelId
(
fileId
);
Map
<
String
,
Object
>
map
=
promPlanCoreService
.
authPlanUp
(
activityPlanVo
,
filePath
);
...
...
@@ -127,7 +125,6 @@ public class PromPlanCoreController {
String
[]
urlArr
=
activityPlanVo
.
getExcelUrl
().
split
(
"/"
);
String
fileId
=
urlArr
[
urlArr
.
length
-
1
];
String
filePath
=
"/root/promotion/planv2/"
+
fileId
;
//todo String filePath = "/Users/a02200059/Desktop/2.0/" + fileId;
FileUtils
.
downloadExcel
(
activityPlanVo
.
getExcelUrl
(),
filePath
);
activityPlanVo
.
setExcelId
(
fileId
);
Map
<
String
,
Object
>
map
=
promPlanCoreService
.
selfPlanPut
(
activityPlanVo
,
filePath
);
...
...
src/main/java/com/wangxiaolu/promotion/domain/activityplanv2/dao/ActivityPlanInfoDao.java
浏览文件 @
fffaa0cf
...
...
@@ -31,7 +31,7 @@ public interface ActivityPlanInfoDao {
void
save
(
ActivityPlanInfoDto
planDto
);
List
<
ActivityPlanInfoDto
>
findList
(
ActivityPlanInfoWrapper
wrapper
);
List
<
ActivityPlanInfoDto
>
find
Clock
List
(
ActivityPlanInfoWrapper
wrapper
);
void
updatePlanStatus
(
Long
planId
,
PlanStatus
planStatus
);
}
src/main/java/com/wangxiaolu/promotion/domain/activityplanv2/dao/impl/ActivityPlanInfoDaoImpl.java
浏览文件 @
fffaa0cf
...
...
@@ -83,9 +83,9 @@ public class ActivityPlanInfoDaoImpl implements ActivityPlanInfoDao {
}
@Override
public
List
<
ActivityPlanInfoDto
>
findList
(
ActivityPlanInfoWrapper
wrapper
)
{
LambdaQueryWrapper
<
ActivityPlanInfoDo
>
qw
=
buildWrapper
(
wrapper
);
List
<
ActivityPlanInfoDo
>
activityPlanInfoDos
=
activityPlanInfoMapper
.
selectList
(
qw
);
public
List
<
ActivityPlanInfoDto
>
find
Clock
List
(
ActivityPlanInfoWrapper
wrapper
)
{
//
LambdaQueryWrapper<ActivityPlanInfoDo> qw = buildWrapper(wrapper);
List
<
ActivityPlanInfoDo
>
activityPlanInfoDos
=
activityPlanInfoMapper
.
findClockList
(
wrapper
);
return
BeanUtils
.
transitionDtos
(
activityPlanInfoDos
,
ActivityPlanInfoDto
.
class
);
}
...
...
src/main/java/com/wangxiaolu/promotion/domain/activityplanv2/mapper/ActivityPlanInfoMapper.java
浏览文件 @
fffaa0cf
...
...
@@ -3,6 +3,7 @@ package com.wangxiaolu.promotion.domain.activityplanv2.mapper;
import
com.alibaba.fastjson.JSONArray
;
import
com.wangxiaolu.promotion.domain.activityplanv2.mapper.entity.ActivityPlanInfoDo
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.wangxiaolu.promotion.domain.manage.wrapperQo.ActivityPlanInfoWrapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -33,6 +34,8 @@ public interface ActivityPlanInfoMapper extends BaseMapper<ActivityPlanInfoDo> {
Integer
selectTodayCount
(
List
<
Long
>
planIds
);
void
updatePlanStatus
(
@Param
(
"id"
)
Long
planId
,
@Param
(
"status"
)
Integer
status
);
List
<
ActivityPlanInfoDo
>
findClockList
(
ActivityPlanInfoWrapper
wrapper
);
}
...
...
src/main/java/com/wangxiaolu/promotion/service/activityplanv2/PromPlanQueryService.java
浏览文件 @
fffaa0cf
...
...
@@ -14,7 +14,7 @@ import java.util.List;
public
interface
PromPlanQueryService
{
void
queryPage
(
PageInfo
pageInfo
);
List
<
ActivityPlanInfoDto
>
findList
(
TemporaryActivityPlanVo
temporaryActivityPlanVo
);
List
<
ActivityPlanInfoDto
>
find
Clock
List
(
TemporaryActivityPlanVo
temporaryActivityPlanVo
);
ActivityPlanInfoDto
selectById
(
Long
planId
);
}
src/main/java/com/wangxiaolu/promotion/service/activityplanv2/impl/PromPlanQueryServiceImpl.java
浏览文件 @
fffaa0cf
...
...
@@ -37,12 +37,12 @@ public class PromPlanQueryServiceImpl implements PromPlanQueryService {
* 促销员查询
*/
@Override
public
List
<
ActivityPlanInfoDto
>
findList
(
TemporaryActivityPlanVo
temporaryActivityPlanVo
)
{
public
List
<
ActivityPlanInfoDto
>
find
Clock
List
(
TemporaryActivityPlanVo
temporaryActivityPlanVo
)
{
ActivityPlanInfoWrapper
wrapper
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
temporaryActivityPlanVo
),
ActivityPlanInfoWrapper
.
class
);
wrapper
.
setActivityDate
(
Date
.
from
(
LocalDate
.
now
().
atStartOfDay
(
ZoneId
.
systemDefault
()).
toInstant
()));
wrapper
.
setPlanStatus
(
PlanStatus
.
NOT_EXECUTION
);
wrapper
.
setLimitNum
(
50
);
return
activityPlanInfoDao
.
findList
(
wrapper
);
return
activityPlanInfoDao
.
find
Clock
List
(
wrapper
);
}
@Override
...
...
src/main/resources/mapper/activityplanv2/ActivityPlanInfoMapper.xml
浏览文件 @
fffaa0cf
...
...
@@ -155,4 +155,24 @@
where id = #{id}
</update>
<select
id=
"findClockList"
parameterType=
"com.wangxiaolu.promotion.domain.manage.wrapperQo.ActivityPlanInfoWrapper"
resultMap=
"BaseResultMap"
>
select id,
employee_name, date, line_name, store_name, store_code, pattern, dealer_id, dealer_name, province, city, area,
addr, clock_in_time, clock_out_time, plan_status
from activity_plan_info
<where>
date = #{activityDate} and is_delete = 1
<if
test=
"city != null and city != ''"
>
and city = #{city}
</if>
<if
test=
"area != null and area != ''"
>
and area = #{area}
</if>
<if
test=
"storeNameLike != null and storeNameLike != ''"
>
and store_name like concat('%',#{storeNameLike},'%')
</if>
and ( plan_status = 0 or pattern != '单点CP' )
</where>
limit 50
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论