Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
bbb91b4e
提交
bbb91b4e
authored
8月 07, 2024
作者:
李瑞鑫
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v20.9_settlement_20240805' into dev
上级
a17b1bed
417c52fe
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
0 行删除
+8
-0
PerformanceResultEnum.java
...java/com/clx/performance/enums/PerformanceResultEnum.java
+2
-0
CarrierSettlementOwnerDetailController.java
...er/pc/carrier/CarrierSettlementOwnerDetailController.java
+6
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/enums/PerformanceResultEnum.java
浏览文件 @
bbb91b4e
...
...
@@ -183,6 +183,8 @@ public enum PerformanceResultEnum implements ResultEnum {
UNLOAD_TIME_BEFORE_ARRIVE_RECEIVE_TIME
(
2106
,
"交货时间不可早于到达目的地时间"
),
UNLOAD_TIME_AFTER_NOW
(
2107
,
"交货时间不可晚于当前时间"
),
UNLOAD_TIME_AFTER_FIRST_UNLOAD_TIME
(
2108
,
"交货时间不可晚于首次提交时间"
),
SETTLEMENT_NO_NULL_ERROR
(
2109
,
"请选择需要下载的数据"
),
;
private
final
int
code
;
private
final
String
msg
;
...
...
performance-web/src/main/java/com/clx/performance/controller/pc/carrier/CarrierSettlementOwnerDetailController.java
浏览文件 @
bbb91b4e
package
com
.
clx
.
performance
.
controller
.
pc
.
carrier
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.param.pc.carrier.ExportBatchOwnerSettlementDetailParam
;
import
com.clx.performance.param.pc.owner.PageCarrierSettlementOwnerDetailParam
;
import
com.clx.performance.param.pc.owner.PageOwnerSettlementOwnerDetailParam
;
...
...
@@ -11,6 +13,7 @@ import com.clx.performance.vo.pc.carrier.settle.CarrierPageSettlementOwnerDetail
import
com.clx.performance.vo.pc.owner.settle.PageOwnerSettlementOwnerDetailVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.exception.ServiceSystemException
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -83,6 +86,9 @@ public class CarrierSettlementOwnerDetailController {
@ApiOperation
(
value
=
"批量下载结算运单明细"
,
notes
=
"<br>By:liruixin"
)
@PostMapping
(
"/exportBatchSettlementOwnerDetail"
)
public
void
exportBatchSettlementOwnerDetail
(
@RequestBody
@Validated
ExportBatchOwnerSettlementDetailParam
param
,
HttpServletResponse
response
)
throws
Exception
{
if
(
CollectionUtil
.
isEmpty
(
param
.
getSettlementNos
())){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
SETTLEMENT_NO_NULL_ERROR
);
}
SXSSFWorkbook
workbook
=
settlementOwnerDetailService
.
exportBatchSettlementOwnerDetail
(
param
);
response
.
setHeader
(
HttpHeaders
.
CONTENT_TYPE
,
MediaType
.
APPLICATION_OCTET_STREAM_VALUE
);
workbook
.
write
(
response
.
getOutputStream
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论