Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
promotion-service
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
promotion-service
Commits
2e3e0a00
提交
2e3e0a00
authored
4月 18, 2025
作者:
000516
提交者:
Coding
4月 18, 2025
浏览文件
操作
浏览文件
下载
差异文件
促销计划excel文件上传时,捕捉到异常后日志打印
Merge Request: 促销计划excel文件上传时,捕捉到异常后日志打印 Created By: @李秋林 Accepted By: @李秋林 URL:
https://g-pkkp8204.coding.net/p/promotion/d/promotion-service/git/merge/278?initial=true
上级
ba82b35e
a4c2bb7a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
1 行删除
+11
-1
PromPlanCoreController.java
...ion/controller/activityplanv2/PromPlanCoreController.java
+11
-1
没有找到文件。
src/main/java/com/wangxiaolu/promotion/controller/activityplanv2/PromPlanCoreController.java
浏览文件 @
2e3e0a00
package
com
.
wangxiaolu
.
promotion
.
controller
.
activityplanv2
;
package
com
.
wangxiaolu
.
promotion
.
controller
.
activityplanv2
;
import
com.alibaba.fastjson2.JSONObject
;
import
com.wangxiaolu.promotion.common.excel.FileUtils
;
import
com.wangxiaolu.promotion.common.excel.FileUtils
;
import
com.wangxiaolu.promotion.exception.DataException
;
import
com.wangxiaolu.promotion.exception.DataException
;
import
com.wangxiaolu.promotion.exception.ParamException
;
import
com.wangxiaolu.promotion.exception.ParamException
;
...
@@ -12,12 +13,12 @@ import com.wangxiaolu.promotion.result.basedata.RCode;
...
@@ -12,12 +13,12 @@ import com.wangxiaolu.promotion.result.basedata.RCode;
import
com.wangxiaolu.promotion.service.activityplanv2.PromPlanCoreService
;
import
com.wangxiaolu.promotion.service.activityplanv2.PromPlanCoreService
;
import
com.wangxiaolu.promotion.service.user.ManageEmployeeQueryService
;
import
com.wangxiaolu.promotion.service.user.ManageEmployeeQueryService
;
import
io.jsonwebtoken.lang.Collections
;
import
io.jsonwebtoken.lang.Collections
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.YearMonth
;
import
java.time.ZoneId
;
import
java.time.ZoneId
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Objects
;
...
@@ -27,6 +28,7 @@ import java.util.Objects;
...
@@ -27,6 +28,7 @@ import java.util.Objects;
* @date : 2025-01-07 13
* @date : 2025-01-07 13
* @describe :
* @describe :
*/
*/
@Slf4j
@RestController
@RestController
@RequestMapping
(
"/plan/v2/core"
)
@RequestMapping
(
"/plan/v2/core"
)
public
class
PromPlanCoreController
{
public
class
PromPlanCoreController
{
...
@@ -64,8 +66,12 @@ public class PromPlanCoreController {
...
@@ -64,8 +66,12 @@ public class PromPlanCoreController {
Map
<
String
,
Object
>
map
=
promPlanCoreService
.
selfPlanUp
(
activityPlanVo
,
filePath
);
Map
<
String
,
Object
>
map
=
promPlanCoreService
.
selfPlanUp
(
activityPlanVo
,
filePath
);
return
R
.
success
(
map
);
return
R
.
success
(
map
);
}
catch
(
DataException
e
)
{
}
catch
(
DataException
e
)
{
log
.
error
(
JSONObject
.
toJSONString
(
activityPlanVo
));
log
.
error
(
e
.
toString
());
return
new
R
(
e
.
getCode
(),
e
.
getMsg
(),
null
);
return
new
R
(
e
.
getCode
(),
e
.
getMsg
(),
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
JSONObject
.
toJSONString
(
activityPlanVo
));
log
.
error
(
e
.
toString
());
return
R
.
fail
(
e
.
getMessage
());
return
R
.
fail
(
e
.
getMessage
());
}
}
}
}
...
@@ -95,8 +101,12 @@ public class PromPlanCoreController {
...
@@ -95,8 +101,12 @@ public class PromPlanCoreController {
Map
<
String
,
Object
>
map
=
promPlanCoreService
.
authPlanUp
(
activityPlanVo
,
filePath
);
Map
<
String
,
Object
>
map
=
promPlanCoreService
.
authPlanUp
(
activityPlanVo
,
filePath
);
return
R
.
success
(
map
);
return
R
.
success
(
map
);
}
catch
(
DataException
e
)
{
}
catch
(
DataException
e
)
{
log
.
error
(
JSONObject
.
toJSONString
(
activityPlanVo
));
log
.
error
(
e
.
toString
());
return
new
R
(
e
.
getCode
(),
e
.
getMsg
(),
null
);
return
new
R
(
e
.
getCode
(),
e
.
getMsg
(),
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
JSONObject
.
toJSONString
(
activityPlanVo
));
log
.
error
(
e
.
toString
());
return
R
.
fail
(
e
.
getMessage
());
return
R
.
fail
(
e
.
getMessage
());
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论