Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
f8fe47f4
提交
f8fe47f4
authored
1月 26, 2024
作者:
jiangwenye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
平台账户配置
上级
a9afea14
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
82 行增加
和
1 行删除
+82
-1
PerformanceResultEnum.java
...java/com/clx/performance/enums/PerformanceResultEnum.java
+2
-1
CarrierAccountController.java
...mance/controller/pc/carrier/CarrierAccountController.java
+29
-0
PlatformAccountConfigDao.java
...ava/com/clx/performance/dao/PlatformAccountConfigDao.java
+6
-0
PlatformAccountConfigImpl.java
...m/clx/performance/dao/impl/PlatformAccountConfigImpl.java
+26
-0
PlatformAccountConfigService.java
...clx/performance/service/PlatformAccountConfigService.java
+9
-0
PlatformAccountConfigServiceImpl.java
...rmance/service/impl/PlatformAccountConfigServiceImpl.java
+10
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/enums/PerformanceResultEnum.java
浏览文件 @
f8fe47f4
...
@@ -114,7 +114,8 @@ public enum PerformanceResultEnum implements ResultEnum {
...
@@ -114,7 +114,8 @@ public enum PerformanceResultEnum implements ResultEnum {
ORDER_CHILD_SYNC_ERROR
(
1912
,
"承运同步网络货运异常"
),
ORDER_CHILD_SYNC_ERROR
(
1912
,
"承运同步网络货运异常"
),
PLATFORM_ACCOUNT_CONFIG_ONLY
(
1913
,
"当前配置已存在"
),
PLATFORM_ACCOUNT_CONFIG_ONLY
(
1913
,
"当前配置已存在"
),
PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_IS_NULL
(
1914
,
"提现平台账户未配置"
),
PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_MANY
(
1915
,
"提现平台账户配置多个"
),
;
;
private
final
int
code
;
private
final
int
code
;
private
final
String
msg
;
private
final
String
msg
;
...
...
performance-web/src/main/java/com/clx/performance/controller/pc/carrier/CarrierAccountController.java
浏览文件 @
f8fe47f4
package
com
.
clx
.
performance
.
controller
.
pc
.
carrier
;
package
com
.
clx
.
performance
.
controller
.
pc
.
carrier
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.PlatformAccountConfigEnum
;
import
com.clx.performance.model.PlatformAccountConfig
;
import
com.clx.performance.param.pc.*
;
import
com.clx.performance.param.pc.*
;
import
com.clx.performance.service.OwnerAccountService
;
import
com.clx.performance.service.OwnerAccountService
;
import
com.clx.performance.service.OwnerCaseOutService
;
import
com.clx.performance.service.OwnerCaseOutService
;
import
com.clx.performance.service.OwnerTopUpService
;
import
com.clx.performance.service.OwnerTopUpService
;
import
com.clx.performance.service.PlatformAccountConfigService
;
import
com.clx.performance.vo.pc.OwnerAccountRunningWaterRecordVO
;
import
com.clx.performance.vo.pc.OwnerAccountRunningWaterRecordVO
;
import
com.clx.performance.vo.pc.OwnerAccountVO
;
import
com.clx.performance.vo.pc.OwnerAccountVO
;
import
com.clx.performance.vo.pc.OwnerCaseOutVO
;
import
com.clx.performance.vo.pc.OwnerCaseOutVO
;
import
com.clx.performance.vo.pc.OwnerTopUpVO
;
import
com.clx.performance.vo.pc.OwnerTopUpVO
;
import
com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformAccountConfigVO
;
import
com.clx.user.param.pc.driver.truck.PageDriverTruckParam
;
import
com.clx.user.param.pc.driver.truck.PageDriverTruckParam
;
import
com.msl.common.base.PageData
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.exception.ServiceSystemException
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.poi.xssf.streaming.SXSSFWorkbook
;
import
org.apache.poi.xssf.streaming.SXSSFWorkbook
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpHeaders
;
...
@@ -26,6 +33,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -26,6 +33,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
java.util.List
;
@Slf4j
@Slf4j
...
@@ -42,6 +50,8 @@ public class CarrierAccountController {
...
@@ -42,6 +50,8 @@ public class CarrierAccountController {
private
final
OwnerCaseOutService
ownerCaseOutService
;
private
final
OwnerCaseOutService
ownerCaseOutService
;
private
final
PlatformAccountConfigService
platformAccountConfigService
;
@ApiOperation
(
value
=
"查看资金管理列表(保证金和预付运费)"
,
notes
=
"<br>By:胡宇帆"
)
@ApiOperation
(
value
=
"查看资金管理列表(保证金和预付运费)"
,
notes
=
"<br>By:胡宇帆"
)
@PostMapping
(
"/pageList"
)
@PostMapping
(
"/pageList"
)
...
@@ -115,4 +125,23 @@ public class CarrierAccountController {
...
@@ -115,4 +125,23 @@ public class CarrierAccountController {
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
}
}
@ApiOperation
(
value
=
"提现审批平台付款银行账号"
,
notes
=
"<br>By:jiangwenye"
)
@GetMapping
(
"/ownerCaseOutAccount"
)
@UnitCovert
(
param
=
false
)
public
Result
<
CarrierPagePlatformAccountConfigVO
>
ownerCaseOutAccount
()
{
List
<
CarrierPagePlatformAccountConfigVO
>
configs
=
platformAccountConfigService
.
getPlatformAccountConfigByType
(
PlatformAccountConfigEnum
.
BusinessType
.
WITHDRAWAL
.
getCode
(),
PlatformAccountConfigEnum
.
OwnerType
.
COMPANY
.
getCode
(),
null
,
null
,
null
);
if
(
CollectionUtils
.
isNotEmpty
(
configs
)){
if
(
configs
.
size
()
>
1
){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_MANY
);
}
return
Result
.
ok
(
configs
.
get
(
0
));
}
else
{
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_IS_NULL
);
}
}
}
}
performance-web/src/main/java/com/clx/performance/dao/PlatformAccountConfigDao.java
浏览文件 @
f8fe47f4
...
@@ -19,4 +19,10 @@ public interface PlatformAccountConfigDao extends BaseDao<PlatformAccountConfigM
...
@@ -19,4 +19,10 @@ public interface PlatformAccountConfigDao extends BaseDao<PlatformAccountConfigM
List
<
PlatformAccountConfig
>
checkPlatformAccountConfigOnly
(
PlatformAccountConfig
config
);
List
<
PlatformAccountConfig
>
checkPlatformAccountConfigOnly
(
PlatformAccountConfig
config
);
List
<
PlatformAccountConfig
>
getPlatformAccountConfigByType
(
Integer
businessType
,
Integer
ownerType
,
Integer
invoiceType
,
Integer
invoiceCompanyId
,
Integer
configRange
);
}
}
performance-web/src/main/java/com/clx/performance/dao/impl/PlatformAccountConfigImpl.java
浏览文件 @
f8fe47f4
...
@@ -77,4 +77,30 @@ public class PlatformAccountConfigImpl extends BaseDaoImpl<PlatformAccountConfig
...
@@ -77,4 +77,30 @@ public class PlatformAccountConfigImpl extends BaseDaoImpl<PlatformAccountConfig
}
}
return
baseMapper
.
selectList
(
query
);
return
baseMapper
.
selectList
(
query
);
}
}
@Override
public
List
<
PlatformAccountConfig
>
getPlatformAccountConfigByType
(
Integer
businessType
,
Integer
ownerType
,
Integer
invoiceType
,
Integer
invoiceCompanyId
,
Integer
configRange
){
LambdaQueryWrapper
<
PlatformAccountConfig
>
query
=
new
LambdaQueryWrapper
<>();
query
.
eq
(
PlatformAccountConfig
::
getDeleteStatus
,
DeleteStatusEnum
.
YES
.
getCode
());
if
(
Objects
.
nonNull
(
businessType
)){
query
.
eq
(
PlatformAccountConfig
::
getBusinessType
,
businessType
);
}
if
(
Objects
.
nonNull
(
ownerType
)){
query
.
eq
(
PlatformAccountConfig
::
getOwnerType
,
ownerType
);
}
if
(
Objects
.
nonNull
(
invoiceCompanyId
)){
query
.
eq
(
PlatformAccountConfig
::
getInvoiceCompanyId
,
invoiceCompanyId
);
}
if
(
Objects
.
nonNull
(
configRange
)){
query
.
eq
(
PlatformAccountConfig
::
getConfigRange
,
configRange
);
}
if
(
Objects
.
nonNull
(
invoiceType
)){
query
.
eq
(
PlatformAccountConfig
::
getInvoiceType
,
invoiceType
);
}
return
baseMapper
.
selectList
(
query
);
}
}
}
performance-web/src/main/java/com/clx/performance/service/PlatformAccountConfigService.java
浏览文件 @
f8fe47f4
package
com
.
clx
.
performance
.
service
;
package
com
.
clx
.
performance
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.model.PlatformAccountConfig
;
import
com.clx.performance.param.pc.carrier.PagePlatformAccountConfigParam
;
import
com.clx.performance.param.pc.carrier.PagePlatformAccountConfigParam
;
import
com.clx.performance.param.pc.carrier.SavePlatformAccountConfigParam
;
import
com.clx.performance.param.pc.carrier.SavePlatformAccountConfigParam
;
import
com.clx.performance.vo.pc.carrier.settle.*
;
import
com.clx.performance.vo.pc.carrier.settle.*
;
import
java.util.List
;
/**
/**
* @author jiangwenye
* @author jiangwenye
* Date 2024-01-25
* Date 2024-01-25
...
@@ -22,4 +25,10 @@ public interface PlatformAccountConfigService {
...
@@ -22,4 +25,10 @@ public interface PlatformAccountConfigService {
void
updatePlatformAccountConfig
(
SavePlatformAccountConfigParam
config
);
void
updatePlatformAccountConfig
(
SavePlatformAccountConfigParam
config
);
List
<
CarrierPagePlatformAccountConfigVO
>
getPlatformAccountConfigByType
(
Integer
businessType
,
Integer
ownerType
,
Integer
invoiceType
,
Integer
invoiceCompanyId
,
Integer
configRange
);
}
}
performance-web/src/main/java/com/clx/performance/service/impl/PlatformAccountConfigServiceImpl.java
浏览文件 @
f8fe47f4
...
@@ -111,4 +111,14 @@ public class PlatformAccountConfigServiceImpl implements PlatformAccountConfigSe
...
@@ -111,4 +111,14 @@ public class PlatformAccountConfigServiceImpl implements PlatformAccountConfigSe
return
true
;
return
true
;
}
}
public
List
<
CarrierPagePlatformAccountConfigVO
>
getPlatformAccountConfigByType
(
Integer
businessType
,
Integer
ownerType
,
Integer
invoiceType
,
Integer
invoiceCompanyId
,
Integer
configRange
){
List
<
PlatformAccountConfig
>
configs
=
platformAccountConfigDao
.
getPlatformAccountConfigByType
(
businessType
,
ownerType
,
invoiceType
,
invoiceCompanyId
,
configRange
);
List
<
CarrierPagePlatformAccountConfigVO
>
list
=
platformAccountConfigStruct
.
convertToVOList
(
configs
);
return
list
;
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论