Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
288f5246
提交
288f5246
authored
10月 31, 2024
作者:
马路路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
App获取当日--开票配置为否,当前运单司机确认交货之后,没有推无车承运
上级
1a10f375
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
100 行增加
和
4 行删除
+100
-4
OrderChildBrokerServiceImpl.java
...ance/service/impl/broker/OrderChildBrokerServiceImpl.java
+9
-4
QuotationEnum.java
...rc/main/java/com/clx/performance/enums/QuotationEnum.java
+91
-0
没有找到文件。
clx-performance-web/src/main/java/com/clx/performance/service/impl/broker/OrderChildBrokerServiceImpl.java
浏览文件 @
288f5246
...
...
@@ -8,8 +8,8 @@ import com.clx.order.vo.pc.carrier.InvoicingCompanyVO;
import
com.clx.order.vo.pc.owner.OwnerQuotationDetailVO
;
import
com.clx.performance.dao.OrderChildImageDao
;
import
com.clx.performance.dao.settle.SettlementOwnerDetailDao
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.PowerTypeEnum
;
import
com.clx.performance.enums.QuotationEnum
;
import
com.clx.performance.enums.settle.SettlementDriverEnum
;
import
com.clx.performance.enums.settle.SettlementOwnerDetailEnum
;
import
com.clx.performance.enums.settle.SettlementOwnerEnum
;
...
...
@@ -118,11 +118,16 @@ public class OrderChildBrokerServiceImpl implements OrderChildBrokerService {
TruckInfoFeignVo
truckInfoFeignVo
=
truckFeign
.
getTruckInfoWithTransport
(
orderChild
.
getTruckId
()).
getData
();
InvoicingCompanyVO
invoicingCompanyByGroupCode
=
invoicingCompanyService
.
getInvoicingCompanyByGroupCode
(
orderChild
.
getInvoicingCompanyGroupCode
());
// 参数组装
TransportParam
transportParam
=
new
TransportParam
();
transportParam
.
setTransportPlatformCode
(
invoicingCompanyByGroupCode
.
getNetworkCargoCompanyCode
());
// 若有开票配置,且开票配置为是,则使用开票配置的平台编码
if
(
Objects
.
nonNull
(
quotationDetailVO
)
&&
Objects
.
nonNull
(
quotationDetailVO
.
getInvoiceConfigType
())
&&
Objects
.
equals
(
quotationDetailVO
.
getInvoiceConfigType
(),
QuotationEnum
.
InvoicingConfigType
.
YES
.
getCode
()))
{
InvoicingCompanyVO
invoicingCompanyByGroupCode
=
invoicingCompanyService
.
getInvoicingCompanyByGroupCode
(
orderChild
.
getInvoicingCompanyGroupCode
());
transportParam
.
setTransportPlatformCode
(
invoicingCompanyByGroupCode
.
getNetworkCargoCompanyCode
());
}
transportParam
.
setOrderCode
(
orderChild
.
getChildNo
());
transportParam
.
setOwnerMobile
(
ownerMobile
);
...
...
performance-api/src/main/java/com/clx/performance/enums/QuotationEnum.java
0 → 100644
浏览文件 @
288f5246
package
com
.
clx
.
performance
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
java.util.Arrays
;
import
java.util.Optional
;
public
enum
QuotationEnum
{
;
//报价状态 1发布报价 2确认报价 3驳回报价
@Getter
@AllArgsConstructor
public
enum
Status
{
PUBLISH
(
1
,
"发布报价"
),
CONFIRM
(
2
,
"确认报价"
),
REJECT
(
3
,
"驳回报价"
),
;
private
final
int
code
;
private
final
String
name
;
public
static
Status
getByCode
(
int
code
)
{
for
(
Status
type:
Status
.
values
()){
if
(
type
.
code
==
code
){
return
type
;
}
}
return
null
;
}
}
@Getter
@AllArgsConstructor
public
enum
PlatformFreightQuotationTaxType
{
NO
(
0
,
"未税"
),
YES
(
1
,
"含税"
),
;
private
final
int
code
;
private
final
String
msg
;
public
static
Optional
<
PlatformFreightQuotationTaxType
>
getByCode
(
int
code
)
{
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
==
code
).
findFirst
();
}
public
static
String
getMsgByCode
(
Integer
code
)
{
if
(
code
==
null
)
{
return
null
;}
return
getByCode
(
code
).
map
(
PlatformFreightQuotationTaxType:
:
getMsg
).
orElse
(
null
);
}
}
/**
* 开票配置:0否,1是
*/
@Getter
@AllArgsConstructor
public
enum
InvoicingConfigType
{
NO
(
0
,
"否"
),
YES
(
1
,
"是"
),
;
private
final
int
code
;
private
final
String
msg
;
public
static
Optional
<
InvoicingConfigType
>
getByCode
(
int
code
)
{
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
==
code
).
findFirst
();
}
public
static
String
getMsgByCode
(
Integer
code
)
{
if
(
code
==
null
)
{
return
null
;}
return
getByCode
(
code
).
map
(
InvoicingConfigType:
:
getMsg
).
orElse
(
null
);
}
}
/**
* 是否上报:0-否;1-是
*/
@Getter
@AllArgsConstructor
public
enum
ReportFlag
{
NO
(
0
,
"否"
),
YES
(
1
,
"是"
),
;
private
final
int
code
;
private
final
String
msg
;
public
static
Optional
<
ReportFlag
>
getByCode
(
int
code
)
{
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
==
code
).
findFirst
();
}
public
static
String
getMsgByCode
(
Integer
code
)
{
if
(
code
==
null
)
{
return
null
;}
return
getByCode
(
code
).
map
(
ReportFlag:
:
getMsg
).
orElse
(
null
);
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论