Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-Connect-Pre-Clearance
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tao.mo
2024-12-19 16:22:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9cec5e2697227547ab12135a3a14ca1f09aa5452
9cec5e26
1 parent
9aba9756
biz-customer | 修改 | 根据运单号查找30天之内运单信息
mt 2024年12月19日16:22:46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
server/biz-customer/src/main/java/com/fedex/connect/customer/util/service/biz/ConsignmentUtil.java
server/biz-customer/src/main/java/com/fedex/connect/customer/util/service/biz/ConsignmentUtil.java
View file @
9cec5e2
...
...
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
java.time.LocalDate
;
import
java.util.Date
;
import
java.util.Objects
;
...
...
@@ -51,7 +52,13 @@ public class ConsignmentUtil {
Date
nowDate
=
new
Date
();
//如果没有运单id,则是通过add添加进来的运单
if
(
Objects
.
isNull
(
consignment
))
{
consignment
=
new
Consignment
();
//根据运单号查询运单表最近30天内是否存在已提交的运单
LocalDate
thirtyDaysAgo
=
LocalDate
.
now
().
minusDays
(
30
);
consignment
=
consignmentRepository
.
findByConsignmentCode
(
consignmentBo
.
getConsignmentCode
(),
thirtyDaysAgo
);
//如果最近30天内没有提交过该运单,则新建
if
(
consignment
==
null
){
consignment
=
new
Consignment
();
}
//用户录入数据拷贝
BeanUtils
.
copyProperties
(
consignmentBo
,
consignment
);
//用户录入shipperaccount
...
...
Please
register
or
login
to post a comment