Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
ad171641
提交
ad171641
authored
11月 04, 2023
作者:
huningning
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v5.7_break_contract_reverse_20231020' into test
上级
2b36a792
61938283
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
29 行增加
和
11 行删除
+29
-11
PayNotifyController.java
...x/performance/controller/payment/PayNotifyController.java
+12
-11
GoodsOrderController.java
...m/clx/performance/controller/pc/GoodsOrderController.java
+17
-0
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/payment/PayNotifyController.java
浏览文件 @
ad171641
...
...
@@ -29,18 +29,19 @@ public class PayNotifyController {
@ApiOperation
(
value
=
"用户支付完成回调接口"
,
notes
=
" <br>By:许建科"
)
@RequestMapping
(
value
=
"/userPayNotify"
,
method
=
RequestMethod
.
POST
)
public
Result
<
Object
>
userPayNotify
(
@RequestBody
NotifyParam
notify
)
{
public
Result
<
Object
>
userPayNotify
(
@RequestBody
String
notify
)
{
// public Result<Object> userPayNotify(@RequestBody NotifyParam notify) {
log
.
info
(
"用户支付完成回调接口 传参 {}"
,
notify
);
if
(
Objects
.
isNull
(
notify
)
||
Objects
.
isNull
(
notify
.
getCode
())
||
Objects
.
isNull
(
notify
.
getAction
()))
{
return
new
Result
<>();
}
if
(
notify
.
getCode
()
!=
0
)
{
// 支付失败处理
log
.
info
(
"唯一id {}"
,
notify
.
getOrderNo
());
}
else
{
// 支付支付成功处理
log
.
info
(
"唯一id {}"
,
notify
.
getOrderNo
());
}
//
if (Objects.isNull(notify) || Objects.isNull(notify.getCode()) || Objects.isNull(notify.getAction())) {
//
return new Result<>();
//
}
//
if (notify.getCode() != 0) {
//
// 支付失败处理
//
log.info("唯一id {}", notify.getOrderNo());
//
} else {
//
// 支付支付成功处理
//
log.info("唯一id {}", notify.getOrderNo());
//
}
Result
<
Object
>
ret
=
new
Result
<>();
return
ret
;
}
...
...
performance-web/src/main/java/com/clx/performance/controller/pc/GoodsOrderController.java
浏览文件 @
ad171641
...
...
@@ -2,6 +2,7 @@ package com.clx.performance.controller.pc;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.order.feign.OrderFeign
;
import
com.clx.performance.model.OrderGoods
;
import
com.clx.performance.param.pc.OrderGoodsCancelParam
;
import
com.clx.performance.param.pc.UpdateEditOrderGoodsParam
;
import
com.clx.performance.param.pc.OrderGoodsParams
;
...
...
@@ -13,6 +14,7 @@ import com.clx.performance.enums.PerformanceResultEnum;
import
com.clx.performance.param.pc.UpdateOrderGoodsPriceParam
;
import
com.clx.performance.service.OrderChildService
;
import
com.clx.performance.service.OrderGoodsService
;
import
com.clx.performance.service.OrderGoodsTruckBindService
;
import
com.clx.performance.vo.pc.OrderChildPCVO
;
import
com.clx.performance.vo.pc.OrderGoodsEditVO
;
import
com.clx.performance.vo.pc.OrderGoodsVO
;
...
...
@@ -20,6 +22,7 @@ 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
com.msl.common.utils.DateUtils
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -69,6 +72,9 @@ public class GoodsOrderController {
@Autowired
private
GoodsOrderStrategyContext
goodsOrderStrategyContext
;
@Autowired
private
OrderGoodsTruckBindService
orderGoodsTruckBindService
;
@ApiOperation
(
value
=
"提交货单"
,
notes
=
"<br>By:胡宇帆"
)
@PostMapping
(
"/saveGoodsOrder"
)
@UnitCovert
(
result
=
false
)
...
...
@@ -190,4 +196,15 @@ public class GoodsOrderController {
return
Result
.
ok
();
}
@ApiOperation
(
value
=
"司机端无接单位置上报"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/getCancelOrderGoods"
)
public
Result
<
List
<
OrderGoods
>>
getCancelOrderGoods
(
@RequestParam
(
value
=
"truckNo"
)
String
truckNo
)
{
LocalDateTime
now
=
LocalDateTime
.
now
();
return
Result
.
ok
(
orderGoodsTruckBindService
.
getCancelOrderGoods
(
truckNo
,
DateUtils
.
formatDateTime
(
now
.
plusDays
(-
3
),
"yyyy-MM-dd HH:mm:ss"
).
get
(),
DateUtils
.
formatDateTime
(
now
,
"yyyy-MM-dd HH:mm:ss"
).
get
()
)
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论