Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit df422a00
authored
Dec 19, 2025
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 每次发货都推送钉钉消息
1 parent
8ea7302a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
src/main/java/vion/service/impl/DeliveryRecordServiceImpl.java
src/main/java/vion/service/impl/DeliveryRecordServiceImpl.java
View file @
df422a0
...
@@ -124,6 +124,7 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
...
@@ -124,6 +124,7 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
Contract
existContract
=
contractService
.
lambdaQuery
().
eq
(
Contract:
:
getContractNo
,
record
.
getContractNo
()).
one
();
Contract
existContract
=
contractService
.
lambdaQuery
().
eq
(
Contract:
:
getContractNo
,
record
.
getContractNo
()).
one
();
if
(
ObjUtil
.
isNull
(
existContract
)
||
ObjUtil
.
isNull
(
existContract
.
getStatus
()))
{
if
(
ObjUtil
.
isNull
(
existContract
)
||
ObjUtil
.
isNull
(
existContract
.
getStatus
()))
{
log
.
error
(
"根据发货记录,更新合同状态出错。该合同不存在或合同状态为空:{}"
,
record
.
getContractNo
());
log
.
error
(
"根据发货记录,更新合同状态出错。该合同不存在或合同状态为空:{}"
,
record
.
getContractNo
());
return
;
}
}
if
(
ObjUtil
.
isNotNull
(
existContract
)
&&
existContract
.
getStatus
()
<
2
)
{
if
(
ObjUtil
.
isNotNull
(
existContract
)
&&
existContract
.
getStatus
()
<
2
)
{
// 签收日期存在就用这个,不存在就用发货日期
// 签收日期存在就用这个,不存在就用发货日期
...
@@ -135,15 +136,19 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
...
@@ -135,15 +136,19 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
.
update
(
new
ContractPayment
());
.
update
(
new
ContractPayment
());
contractService
.
updateById
(
null
,
record
.
getContractNo
(),
contractDTO
);
contractService
.
updateById
(
null
,
record
.
getContractNo
(),
contractDTO
);
List
<
String
>
useridList
=
contractUserService
.
listObjs
(
Wrappers
.<
RContractUser
>
lambdaQuery
().
select
(
RContractUser:
:
getUserId
).
eq
(
RContractUser:
:
getContractId
,
existContract
.
getId
()),
Object:
:
toString
);
dingMod
.
workMsg
(
buildMsg
(
useridList
.
stream
().
distinct
().
collect
(
Collectors
.
joining
(
","
)),
record
,
existContract
));
}
}
// 每次发货都推送钉钉消息
List
<
String
>
useridList
=
contractUserService
.
listObjs
(
Wrappers
.<
RContractUser
>
lambdaQuery
().
select
(
RContractUser:
:
getUserId
).
eq
(
RContractUser:
:
getContractId
,
existContract
.
getId
()),
Object:
:
toString
);
dingMod
.
workMsg
(
buildMsg
(
useridList
.
stream
().
distinct
().
collect
(
Collectors
.
joining
(
","
)),
record
,
existContract
));
// 更新点位信息的发货状态
// 更新点位信息的发货状态
pointInfoService
.
lambdaUpdate
().
set
(
PointInfo:
:
getShippingStatus
,
1
)
pointInfoService
.
lambdaUpdate
()
.
set
(
PointInfo:
:
getShippingStatus
,
1
)
.
set
(
PointInfo:
:
getCourierCompany
,
record
.
getCourierCompany
())
.
set
(
PointInfo:
:
getCourierCompany
,
record
.
getCourierCompany
())
.
set
(
PointInfo:
:
getTrackingNumber
,
record
.
getTrackingNumber
())
.
set
(
PointInfo:
:
getTrackingNumber
,
record
.
getTrackingNumber
())
.
set
(
PointInfo:
:
getStatus
,
9
)
.
set
(
PointInfo:
:
getStatus
,
9
)
.
eq
(
PointInfo:
:
getContractNo
,
record
.
getContractNo
()).
update
(
new
PointInfo
());
.
eq
(
PointInfo:
:
getContractNo
,
record
.
getContractNo
())
.
update
(
new
PointInfo
());
Opt
.
ofNullable
(
pointInfoService
.
lambdaQuery
().
eq
(
PointInfo:
:
getContractNo
,
record
.
getContractNo
()).
one
())
Opt
.
ofNullable
(
pointInfoService
.
lambdaQuery
().
eq
(
PointInfo:
:
getContractNo
,
record
.
getContractNo
()).
one
())
.
ifPresent
(
p
->
pointInfoService
.
designPush
(
null
,
p
,
"发货"
));
.
ifPresent
(
p
->
pointInfoService
.
designPush
(
null
,
p
,
"发货"
));
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment