Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
85d05f90
提交
85d05f90
authored
12月 07, 2023
作者:
liuhaiquan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改车主结算单结算时校验错误
上级
7220e4b7
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
5 行增加
和
7 行删除
+5
-7
SettlementDriverServiceImpl.java
...ance/service/impl/settle/SettlementDriverServiceImpl.java
+3
-6
SettlementDriverDetailSqlProvider.java
...sqlProvider/settle/SettlementDriverDetailSqlProvider.java
+2
-1
没有找到文件。
performance-web/src/main/java/com/clx/performance/service/impl/settle/SettlementDriverServiceImpl.java
浏览文件 @
85d05f90
...
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.clx.performance.dao.settle.SettlementDriverDao
;
import
com.clx.performance.dao.settle.SettlementDriverDao
;
import
com.clx.performance.dao.settle.SettlementDriverDetailDao
;
import
com.clx.performance.dao.settle.SettlementDriverDetailDao
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.settle.SettlementDriverEnum
;
import
com.clx.performance.model.settle.SettlementDriver
;
import
com.clx.performance.model.settle.SettlementDriver
;
import
com.clx.performance.model.settle.SettlementDriverDetail
;
import
com.clx.performance.model.settle.SettlementDriverDetail
;
import
com.clx.performance.param.pc.driver.BatchUpdatePayDriverSettlementParam
;
import
com.clx.performance.param.pc.driver.BatchUpdatePayDriverSettlementParam
;
...
@@ -56,11 +55,9 @@ public class SettlementDriverServiceImpl implements SettlementDriverService {
...
@@ -56,11 +55,9 @@ public class SettlementDriverServiceImpl implements SettlementDriverService {
if
(
CollectionUtils
.
isEmpty
(
list
)){
if
(
CollectionUtils
.
isEmpty
(
list
)){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
}
}
list
.
forEach
(
item
->{
if
(
Objects
.
equals
(
param
.
getIds
().
size
(),
list
.
size
())){
if
(!
Objects
.
equals
(
item
.
getStatus
(),
SettlementDriverEnum
.
Status
.
WAIT_SETTLEMENT
.
getCode
())){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
,
"所选数据有误,请重新选择"
);
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
,
"所选数据有误,请重新选择"
);
}
}
});
list
.
forEach
(
item
->
settlementMqHandlerService
.
paySettlementDriver
(
item
));
list
.
forEach
(
item
->
settlementMqHandlerService
.
paySettlementDriver
(
item
));
}
}
}
}
performance-web/src/main/java/com/clx/performance/sqlProvider/settle/SettlementDriverDetailSqlProvider.java
浏览文件 @
85d05f90
...
@@ -24,9 +24,10 @@ public class SettlementDriverDetailSqlProvider {
...
@@ -24,9 +24,10 @@ public class SettlementDriverDetailSqlProvider {
public
String
findByDriverSettlementIds
(
List
<
Integer
>
ids
)
{
public
String
findByDriverSettlementIds
(
List
<
Integer
>
ids
)
{
return
new
SQL
(){{
return
new
SQL
(){{
SELECT
(
"a.* "
);
SELECT
(
"a.* "
);
FROM
(
"settlement_
own
er_detail a "
);
FROM
(
"settlement_
driv
er_detail a "
);
LEFT_OUTER_JOIN
(
"settlement_driver b on a.settlement_no = b.settlement_no"
);
LEFT_OUTER_JOIN
(
"settlement_driver b on a.settlement_no = b.settlement_no"
);
WHERE
(
"b.id IN ( "
+
ids
.
stream
().
map
(
code
->
"'"
+
code
+
"'"
).
collect
(
Collectors
.
joining
(
","
))+
")"
);
WHERE
(
"b.id IN ( "
+
ids
.
stream
().
map
(
code
->
"'"
+
code
+
"'"
).
collect
(
Collectors
.
joining
(
","
))+
")"
);
WHERE
(
"b.status = "
+
SettlementDriverEnum
.
Status
.
WAIT_SETTLEMENT
.
getCode
()
);
ORDER_BY
(
"b.create_time"
);
ORDER_BY
(
"b.create_time"
);
}}.
toString
();
}}.
toString
();
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论