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 3a73b693
authored
Aug 16, 2024
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[add] 发货后,更新对应合同的付款的节点时间字段
1 parent
f7404ca9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
src/main/java/vion/service/impl/DeliveryRecordServiceImpl.java
src/main/java/vion/service/impl/DeliveryRecordServiceImpl.java
View file @
3a73b69
...
@@ -49,6 +49,7 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
...
@@ -49,6 +49,7 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
private
final
IContractService
contractService
;
private
final
IContractService
contractService
;
private
final
IRContractUserService
contractUserService
;
private
final
IRContractUserService
contractUserService
;
private
final
IPointInfoService
pointInfoService
;
private
final
IPointInfoService
pointInfoService
;
private
final
IContractPaymentService
contractPaymentService
;
private
final
DingMod
dingMod
;
private
final
DingMod
dingMod
;
private
final
Converter
converter
;
private
final
Converter
converter
;
...
@@ -125,11 +126,13 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
...
@@ -125,11 +126,13 @@ public class DeliveryRecordServiceImpl extends MPJBaseServiceImpl<DeliveryRecord
log
.
error
(
"根据发货记录,更新合同状态出错。该合同不存在或合同状态为空:{}"
,
record
.
getContractNo
());
log
.
error
(
"根据发货记录,更新合同状态出错。该合同不存在或合同状态为空:{}"
,
record
.
getContractNo
());
}
}
if
(
ObjUtil
.
isNotNull
(
existContract
)
&&
existContract
.
getStatus
()
<
2
)
{
if
(
ObjUtil
.
isNotNull
(
existContract
)
&&
existContract
.
getStatus
()
<
2
)
{
// todo 发货后,更新对应合同的付款的节点时间字段 合同id获取不到
// 签收日期存在就用这个,不存在就用发货日期
/*contractPaymentService.lambdaUpdate()
var
date
=
ObjUtil
.
isNotNull
(
record
.
getSignDate
())
?
record
.
getSignDate
()
:
record
.
getShipDate
();
.set(ContractPayment::getNodeDate, record.getShipDate())
contractPaymentService
.
lambdaUpdate
()
.eq(ContractPayment::getContractId, )
.
set
(
ContractPayment:
:
getNodeDate
,
date
)
.update(new ContractPayment());*/
.
eq
(
ContractPayment:
:
getContractId
,
existContract
.
getId
())
.
eq
(
ContractPayment:
:
getPaymentType
,
2
)
.
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
);
List
<
String
>
useridList
=
contractUserService
.
listObjs
(
Wrappers
.<
RContractUser
>
lambdaQuery
().
select
(
RContractUser:
:
getUserId
).
eq
(
RContractUser:
:
getContractId
,
existContract
.
getId
()),
Object:
:
toString
);
...
...
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