Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
bad0cb89
提交
bad0cb89
authored
10月 23, 2024
作者:
刘海泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加页面接口
上级
bb6adcc0
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
64 行增加
和
0 行删除
+64
-0
OrderChildExceptionReportController.java
...ce/controller/pc/OrderChildExceptionReportController.java
+14
-0
OrderChildExceptionReportService.java
...performance/service/OrderChildExceptionReportService.java
+3
-0
OrderChildExceptionReportServiceImpl.java
...ce/service/impl/OrderChildExceptionReportServiceImpl.java
+18
-0
TransferDriverBreakContractParam.java
...erformance/param/pc/TransferDriverBreakContractParam.java
+29
-0
没有找到文件。
clx-performance-web/src/main/java/com/clx/performance/controller/pc/OrderChildExceptionReportController.java
浏览文件 @
bad0cb89
...
...
@@ -3,9 +3,11 @@ package com.clx.performance.controller.pc;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.performance.param.pc.DealExceptionReportParam
;
import
com.clx.performance.param.pc.PageExceptionReportParam
;
import
com.clx.performance.param.pc.TransferDriverBreakContractParam
;
import
com.clx.performance.service.OrderChildExceptionReportService
;
import
com.clx.performance.vo.pc.OrderChildExceptionReportVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.result.Result
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
...
...
@@ -40,6 +42,7 @@ public class OrderChildExceptionReportController {
@Operation
(
summary
=
"异常上报分页列表"
,
description
=
"<br>By:刘海泉"
)
@PostMapping
(
value
=
"pageExceptionReport"
)
@UnitCovert
(
param
=
false
)
public
Result
<
PageData
<
OrderChildExceptionReportVO
>>
pageExceptionReport
(
@RequestBody
@Validated
PageExceptionReportParam
param
)
{
Page
<
OrderChildExceptionReportVO
>
page
=
orderChildExceptionReportService
.
pageExceptionReport
(
param
);
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
...
...
@@ -62,4 +65,15 @@ public class OrderChildExceptionReportController {
return
Result
.
ok
(
orderChildExceptionReportService
.
getExceptionReport
(
id
));
}
@Operation
(
summary
=
"转司机违约"
,
description
=
"<br>By:刘海泉"
)
@PostMapping
(
value
=
"transferDriverBreakContract"
)
public
Result
<
Object
>
transferDriverBreakContract
(
@RequestBody
@Validated
TransferDriverBreakContractParam
param
)
{
orderChildExceptionReportService
.
transferDriverBreakContract
(
param
);
return
Result
.
ok
();
}
}
clx-performance-web/src/main/java/com/clx/performance/service/OrderChildExceptionReportService.java
浏览文件 @
bad0cb89
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.clx.open.sdk.request.action.*
;
import
com.clx.performance.param.pc.DealExceptionReportParam
;
import
com.clx.performance.param.pc.PageExceptionReportParam
;
import
com.clx.performance.param.pc.TransferDriverBreakContractParam
;
import
com.clx.performance.vo.pc.OrderChildExceptionReportVO
;
import
com.msl.common.result.Result
;
import
org.apache.poi.xssf.streaming.SXSSFWorkbook
;
...
...
@@ -33,4 +34,6 @@ public interface OrderChildExceptionReportService {
SXSSFWorkbook
exportExceptionReport
(
PageExceptionReportParam
param
);
OrderChildExceptionReportVO
getExceptionReport
(
Integer
id
);
void
transferDriverBreakContract
(
TransferDriverBreakContractParam
param
);
}
clx-performance-web/src/main/java/com/clx/performance/service/impl/OrderChildExceptionReportServiceImpl.java
浏览文件 @
bad0cb89
...
...
@@ -20,6 +20,7 @@ import com.clx.performance.model.OrderChildExceptionReport;
import
com.clx.performance.model.OrderChildExceptionReportDealLog
;
import
com.clx.performance.param.pc.DealExceptionReportParam
;
import
com.clx.performance.param.pc.PageExceptionReportParam
;
import
com.clx.performance.param.pc.TransferDriverBreakContractParam
;
import
com.clx.performance.service.OrderChildExceptionReportService
;
import
com.clx.performance.struct.OrderChildExceptionReportStruct
;
import
com.clx.performance.utils.LocalDateTimeUtils
;
...
...
@@ -330,4 +331,21 @@ public class OrderChildExceptionReportServiceImpl implements OrderChildExceptio
}
return
vo
;
}
@Override
public
void
transferDriverBreakContract
(
TransferDriverBreakContractParam
param
)
{
OrderChildExceptionReport
report
=
orderChildExceptionReportDao
.
getEntityByKey
(
param
.
getId
()).
orElseThrow
(
ResultEnum
.
DATA_NOT_FIND
);
if
(
Objects
.
equals
(
report
.
getStatus
(),
CarrierExceptionReportEnum
.
Status
.
PROCESSED
.
getCode
())
&&
Objects
.
equals
(
report
.
getDealResult
(),
ExceptionReportEnum
.
DealResult
.
CARRIER_BREAK_CONTRACT
.
getCode
())){
throw
new
ServiceSystemException
(
ResultEnum
.
DATA_ERROR
);
}
//@TODO 创建司机违约记录
report
.
setTransferDriverBreakContract
(
1
);
orderChildExceptionReportDao
.
updateEntityByKey
(
report
);
}
}
performance-api/src/main/java/com/clx/performance/param/pc/TransferDriverBreakContractParam.java
0 → 100644
浏览文件 @
bad0cb89
package
com
.
clx
.
performance
.
param
.
pc
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.validation.constraints.NotBlank
;
import
jakarta.validation.constraints.NotNull
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* @ClassName TransferDriverBreakContractParam
* @Description
* @Author kavin
* @Date 2024/10/23 14:39
* @Version 1.0
*/
@Getter
@Setter
public
class
TransferDriverBreakContractParam
{
@NotNull
(
message
=
"异常记录ID不能为空"
)
@Schema
(
description
=
"异常记录ID"
)
private
Integer
id
;
@NotBlank
(
message
=
"违约原因不能为空"
)
@Schema
(
description
=
"违约原因"
)
private
String
reason
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论