Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
facd493f
提交
facd493f
authored
11月 06, 2023
作者:
huyufan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加报价详情查询账户信息
上级
15377170
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
34 行增加
和
11 行删除
+34
-11
PerformanceFeign.java
...main/java/com/clx/performance/feign/PerformanceFeign.java
+4
-0
OwnerAccountAllVO.java
...ain/java/com/clx/performance/vo/pc/OwnerAccountAllVO.java
+11
-0
OrderCancelComponent.java
...a/com/clx/performance/component/OrderCancelComponent.java
+2
-0
OwnerAccountFeignController.java
...ormance/controller/feign/OwnerAccountFeignController.java
+8
-4
OwnerAccountController.java
...rformance/controller/pc/owner/OwnerAccountController.java
+2
-2
OwnerAccountService.java
...java/com/clx/performance/service/OwnerAccountService.java
+2
-1
OwnerAccountServiceImpl.java
...clx/performance/service/impl/OwnerAccountServiceImpl.java
+5
-4
没有找到文件。
performance-api/src/main/java/com/clx/performance/feign/PerformanceFeign.java
浏览文件 @
facd493f
...
...
@@ -6,6 +6,7 @@ import com.clx.performance.param.pc.owner.FrozenAccountParam;
import
com.clx.performance.param.pc.owner.ThawAccountParam
;
import
com.clx.performance.param.pc.owner.UpdateStatusParam
;
import
com.clx.performance.vo.feign.OrderGoodsFeignVO
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.msl.common.result.Result
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -84,4 +85,7 @@ public interface PerformanceFeign {
@GetMapping
(
value
=
{
"clx-performance/feign/orderChild/selectInTransitOrderChild"
})
Result
<
Boolean
>
selectInTransitOrderChild
(
@RequestParam
(
"orderNo"
)
String
orderNo
);
@GetMapping
(
value
=
{
"clx-performance/feign/owner/accountInfo"
})
Result
<
OwnerAccountAllVO
>
accountInfo
(
@RequestParam
Long
userNo
);
}
performance-api/src/main/java/com/clx/performance/vo/pc/OwnerAccountAllVO.java
0 → 100644
浏览文件 @
facd493f
package
com
.
clx
.
performance
.
vo
.
pc
;
import
lombok.Data
;
@Data
public
class
OwnerAccountAllVO
{
private
OwnerAccountVO
marginAccount
;
private
OwnerAccountVO
prepaidFreightAccount
;
}
performance-web/src/main/java/com/clx/performance/component/OrderCancelComponent.java
浏览文件 @
facd493f
...
...
@@ -19,6 +19,7 @@ import com.msl.common.result.Result;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
...
...
@@ -158,6 +159,7 @@ public class OrderCancelComponent {
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
backFillTonnage
(
OrderGoods
orderGoods
,
BigDecimal
weight
)
{
if
(
orderGoods
.
getOrderGoodsStatus
().
equals
(
OrderGoodsStatusEnum
.
Status
.
CANCEL
.
getCode
())
||
orderGoods
.
getOrderGoodsStatus
().
equals
(
OrderGoodsStatusEnum
.
Status
.
COMPLETED
.
getCode
())
...
...
performance-web/src/main/java/com/clx/performance/controller/feign/OwnerAccountFeignController.java
浏览文件 @
facd493f
...
...
@@ -4,16 +4,14 @@ import cn.hutool.json.JSONUtil;
import
com.clx.performance.param.pc.owner.FrozenAccountParam
;
import
com.clx.performance.param.pc.owner.ThawAccountParam
;
import
com.clx.performance.service.OwnerAccountService
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
@Slf4j
@RestController
...
...
@@ -40,4 +38,10 @@ public class OwnerAccountFeignController {
ownerAccountService
.
ownerAccountThaw
(
param
);
return
Result
.
ok
();
}
@ApiOperation
(
value
=
"查询用户预付运费和保证金账户"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/accountInfo"
)
public
Result
<
OwnerAccountAllVO
>
accountInfo
(
@RequestParam
Long
userNo
)
{
return
Result
.
ok
(
ownerAccountService
.
accountInfo
(
userNo
));
}
}
performance-web/src/main/java/com/clx/performance/controller/pc/owner/OwnerAccountController.java
浏览文件 @
facd493f
...
...
@@ -56,9 +56,9 @@ public class OwnerAccountController {
@ApiOperation
(
value
=
"账户信息"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/accountInfo"
)
@UnitCovert
(
param
=
false
)
public
Result
<
Map
>
accountInfo
()
{
public
Result
<
OwnerAccountAllVO
>
accountInfo
()
{
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
Map
<
String
,
OwnerAccountVO
>
result
=
ownerAccountService
.
accountInfo
(
loginUserInfo
.
getUserNo
());
OwnerAccountAllVO
result
=
ownerAccountService
.
accountInfo
(
loginUserInfo
.
getUserNo
());
return
Result
.
ok
(
result
);
}
...
...
performance-web/src/main/java/com/clx/performance/service/OwnerAccountService.java
浏览文件 @
facd493f
...
...
@@ -9,6 +9,7 @@ import com.clx.performance.param.pc.*;
import
com.clx.performance.param.pc.owner.CreteAccountParam
;
import
com.clx.performance.param.pc.owner.FrozenAccountParam
;
import
com.clx.performance.param.pc.owner.ThawAccountParam
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountRunningWaterRecordVO
;
import
com.clx.performance.vo.pc.OwnerAccountVO
;
import
com.clx.user.param.pc.owner.UpdateOwnerBindCardFeignParam
;
...
...
@@ -25,7 +26,7 @@ public interface OwnerAccountService {
IPage
<
OwnerAccountRunningWaterRecordVO
>
prepaidFreightAccountPageList
(
PagePlatformPrepaidFreightAccountParam
param
);
Map
<
String
,
OwnerAccountVO
>
accountInfo
(
Long
ownerUserNo
);
OwnerAccountAllVO
accountInfo
(
Long
ownerUserNo
);
Long
accountTopUp
(
OwnerTopUpParam
param
);
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OwnerAccountServiceImpl.java
浏览文件 @
facd493f
...
...
@@ -23,6 +23,7 @@ import com.clx.performance.utils.excel.ExcelData;
import
com.clx.performance.utils.excel.ExcelField
;
import
com.clx.performance.utils.excel.ExcelSheet
;
import
com.clx.performance.utils.excel.ExcelUtil
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountRunningWaterRecordVO
;
import
com.clx.performance.vo.pc.OwnerAccountVO
;
import
com.clx.user.enums.driver.DriverTruckEnum
;
...
...
@@ -85,14 +86,14 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
}
@Override
public
Map
<
String
,
OwnerAccountVO
>
accountInfo
(
Long
ownerUserNo
)
{
Map
<
String
,
OwnerAccountVO
>
result
=
new
HashMap
<>(
2
);
public
OwnerAccountAllVO
accountInfo
(
Long
ownerUserNo
)
{
OwnerAccountAllVO
result
=
new
OwnerAccountAllVO
(
);
List
<
OwnerAccountVO
>
list
=
ownerAccountStruct
.
convertList
(
ownerAccountDao
.
accountInfo
(
ownerUserNo
));
for
(
OwnerAccountVO
ownerAccountVO
:
list
)
{
if
(
OwnerAccountEnum
.
AccountTypeStatus
.
MARGIN_ACCOUNT
.
getCode
().
equals
(
ownerAccountVO
.
getAccountType
()))
{
result
.
put
(
"marginAccount"
,
ownerAccountVO
);
result
.
setMarginAccount
(
ownerAccountVO
);
}
else
{
result
.
put
(
"prepaidFreightAccount"
,
ownerAccountVO
);
result
.
setPrepaidFreightAccount
(
ownerAccountVO
);
}
}
return
result
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论