Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
bf687951
提交
bf687951
authored
12月 04, 2023
作者:
huyufan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/v7.0_small_version_fix_20231120' into test
上级
f199c053
20f3a15d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
OrderCancelComponent.java
...a/com/clx/performance/component/OrderCancelComponent.java
+1
-2
OrderGoodsDtsListener.java
...a/com/clx/performance/listener/OrderGoodsDtsListener.java
+3
-3
OwnerRunningWaterRecordSqlProvider.java
...mance/sqlProvider/OwnerRunningWaterRecordSqlProvider.java
+3
-2
没有找到文件。
performance-web/src/main/java/com/clx/performance/component/OrderCancelComponent.java
浏览文件 @
bf687951
...
@@ -28,7 +28,6 @@ import com.msl.common.base.Optional;
...
@@ -28,7 +28,6 @@ import com.msl.common.base.Optional;
import
com.msl.common.exception.ServiceSystemException
;
import
com.msl.common.exception.ServiceSystemException
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
com.msl.common.utils.DateUtils
;
import
com.msl.common.utils.DateUtils
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -297,7 +296,7 @@ public class OrderCancelComponent implements InitializingBean {
...
@@ -297,7 +296,7 @@ public class OrderCancelComponent implements InitializingBean {
rollbackOrderWeightParam
.
setOwnResidueCarryWeight
(
BigDecimal
.
ZERO
);
rollbackOrderWeightParam
.
setOwnResidueCarryWeight
(
BigDecimal
.
ZERO
);
rollbackOrderWeightParam
.
setPlatformResidueCarryWeight
(
BigDecimal
.
ZERO
);
rollbackOrderWeightParam
.
setPlatformResidueCarryWeight
(
BigDecimal
.
ZERO
);
}
else
{
}
else
{
if
(
orderGoods
.
getVehicleUsage
().
equals
(
VehicleUsageEnum
.
Status
.
OWN
.
getCode
()))
{
if
(
Objects
.
equals
(
orderGoods
.
getVehicleUsage
(),
VehicleUsageEnum
.
Status
.
OWN
.
getCode
()))
{
if
(
isSub
&&
weight
.
compareTo
(
orderInfo
.
getOwnResidueCarryWeight
())
>
0
){
if
(
isSub
&&
weight
.
compareTo
(
orderInfo
.
getOwnResidueCarryWeight
())
>
0
){
log
.
warn
(
"货单用车需求: {},订单号:{},货单号:{},自有剩余吨数:{},需要扣减吨数:{},不足扣减"
,
log
.
warn
(
"货单用车需求: {},订单号:{},货单号:{},自有剩余吨数:{},需要扣减吨数:{},不足扣减"
,
TruckDemandEnum
.
TruckType
.
PLATFORM_ANY_CAR
.
getMsg
(),
orderNo
,
orderGoods
.
getOrderGoodsNo
(),
TruckDemandEnum
.
TruckType
.
PLATFORM_ANY_CAR
.
getMsg
(),
orderNo
,
orderGoods
.
getOrderGoodsNo
(),
...
...
performance-web/src/main/java/com/clx/performance/listener/OrderGoodsDtsListener.java
浏览文件 @
bf687951
...
@@ -45,13 +45,13 @@ public class OrderGoodsDtsListener {
...
@@ -45,13 +45,13 @@ public class OrderGoodsDtsListener {
OrderGoods
after
=
DtsMapConvertUtil
.
convert
(
dataTransportDTO
.
getAfterMap
(),
new
OrderGoods
());
OrderGoods
after
=
DtsMapConvertUtil
.
convert
(
dataTransportDTO
.
getAfterMap
(),
new
OrderGoods
());
if
(
Objects
.
equals
(
DtsOperationTypeEnum
.
INSERT
.
getCode
(),
dataTransportDTO
.
getOperationType
().
getCode
())){
if
(
Objects
.
equals
(
DtsOperationTypeEnum
.
INSERT
.
getCode
(),
dataTransportDTO
.
getOperationType
().
getCode
())){
//同步after数据
//同步after数据
log
.
info
(
"新增:{}"
,
after
);
log
.
info
(
"新增:{}"
,
JSON
.
toJSONString
(
after
)
);
}
else
if
(
Objects
.
equals
(
DtsOperationTypeEnum
.
UPDATE
.
getCode
(),
dataTransportDTO
.
getOperationType
().
getCode
())){
}
else
if
(
Objects
.
equals
(
DtsOperationTypeEnum
.
UPDATE
.
getCode
(),
dataTransportDTO
.
getOperationType
().
getCode
())){
log
.
info
(
"修改:{}"
,
after
);
log
.
info
(
"修改:{}"
,
JSON
.
toJSONString
(
after
)
);
backFillOrderWeight
(
after
);
backFillOrderWeight
(
after
);
}
else
if
(
Objects
.
equals
(
DtsOperationTypeEnum
.
DELETE
.
getCode
(),
dataTransportDTO
.
getOperationType
().
getCode
())){
}
else
if
(
Objects
.
equals
(
DtsOperationTypeEnum
.
DELETE
.
getCode
(),
dataTransportDTO
.
getOperationType
().
getCode
())){
//数据删除
//数据删除
log
.
info
(
"删除:{}"
,
before
);
log
.
info
(
"删除:{}"
,
JSON
.
toJSONString
(
before
)
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"DTS消息同步失败, database:clx_performance.order_goods, error:{}"
,
e
.
getMessage
());
log
.
info
(
"DTS消息同步失败, database:clx_performance.order_goods, error:{}"
,
e
.
getMessage
());
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/OwnerRunningWaterRecordSqlProvider.java
浏览文件 @
bf687951
...
@@ -93,8 +93,9 @@ public class OwnerRunningWaterRecordSqlProvider {
...
@@ -93,8 +93,9 @@ public class OwnerRunningWaterRecordSqlProvider {
" a.owner_user_name,a.running_water_no, a.mobile, a.account_type, a.running_water_type,a.order_id,a.order_no,a.order_child_id,a.order_child_no,a.alteration_balance,"
+
" a.owner_user_name,a.running_water_no, a.mobile, a.account_type, a.running_water_type,a.order_id,a.order_no,a.order_child_id,a.order_child_no,a.alteration_balance,"
+
" a.account_balance,a.usable_balance,a.take_out_balance,a.frozen_balance,a.create_by,date_format(a.create_time, '%Y-%m-%d %H:%i:%s') as create_time"
);
" a.account_balance,a.usable_balance,a.take_out_balance,a.frozen_balance,a.create_by,date_format(a.create_time, '%Y-%m-%d %H:%i:%s') as create_time"
);
FROM
(
"owner_running_water_record a"
);
FROM
(
"owner_running_water_record a"
);
//WHERE("a.owner_user_no = #{param.userNo}");
if
(
ObjectUtil
.
isNotNull
(
param
.
getUserNo
()))
{
WHERE
(
"a.owner_user_no = #{param.userNo}"
);
}
if
(
StringUtils
.
isNotBlank
(
param
.
getBeginTime
())
&&
StringUtils
.
isNotBlank
(
param
.
getEndTime
()))
{
if
(
StringUtils
.
isNotBlank
(
param
.
getBeginTime
())
&&
StringUtils
.
isNotBlank
(
param
.
getEndTime
()))
{
WHERE
(
"a.create_time >= #{param.beginTime} and a.create_time <= #{param.endTime}"
);
WHERE
(
"a.create_time >= #{param.beginTime} and a.create_time <= #{param.endTime}"
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论