|
...
|
...
|
@@ -436,7 +436,8 @@ public class ContractDistributorStandardServiceImpl extends |
|
436
|
436
|
.set(ContractDistributorStandard::getFormalStandardized, vo.getFormalStandardized())
|
|
437
|
437
|
.set(ContractDistributorStandard::getFormalApproved, CustomerDevelopStatus.AUDIT.name());
|
|
438
|
438
|
if (data.getStatus().equals("DRAFT")) {
|
|
439
|
|
- updateWrapper.set(ContractDistributorStandard::getStatus, "FORMAL");
|
|
|
439
|
+ updateWrapper.set(ContractDistributorStandard::getStatus, "FORMAL")
|
|
|
440
|
+ .set(ContractDistributorStandard::getFormalizedAt, LocalDateTime.now());
|
|
440
|
441
|
}
|
|
441
|
442
|
|
|
442
|
443
|
updateWrapper.eq(ContractDistributorStandard::getId, vo.getId());
|
|
...
|
...
|
@@ -496,7 +497,8 @@ public class ContractDistributorStandardServiceImpl extends |
|
496
|
497
|
.set(ContractDistributorStandard::getStandardApproved, CustomerDevelopStatus.AUDIT.name());
|
|
497
|
498
|
if (!data.getStatus().equals("STANDARD")
|
|
498
|
499
|
&& ("DISTRIB_STD".equals(data.getType()) || "INTL_STD_CONTRACT".equals(data.getType()))) { // 只有经销(外贸)标准合同才修改状态
|
|
499
|
|
- updateWrapper.set(ContractDistributorStandard::getStatus, "STANDARD");
|
|
|
500
|
+ updateWrapper.set(ContractDistributorStandard::getStatus, "STANDARD")
|
|
|
501
|
+ .set(ContractDistributorStandard::getStandardizedAt, LocalDateTime.now());
|
|
500
|
502
|
}
|
|
501
|
503
|
|
|
502
|
504
|
updateWrapper.eq(ContractDistributorStandard::getId, vo.getId());
|
|
...
|
...
|
@@ -695,6 +697,7 @@ public class ContractDistributorStandardServiceImpl extends |
|
695
|
697
|
data.setOrderDate(LocalDate.now());
|
|
696
|
698
|
data.setStatus("STANDARD");
|
|
697
|
699
|
data.setParentId(vo.getId());
|
|
|
700
|
+ data.setStandardizedAt(LocalDateTime.now());
|
|
698
|
701
|
getBaseMapper().insert(data);
|
|
699
|
702
|
|
|
700
|
703
|
Wrapper<ContractDistributorLine> lineWrapper = Wrappers.lambdaQuery(ContractDistributorLine.class)
|
|
...
|
...
|
@@ -783,6 +786,7 @@ public class ContractDistributorStandardServiceImpl extends |
|
783
|
786
|
data.setTotalAmountIncludingTax(vo.getTotalAmountIncludingTax());
|
|
784
|
787
|
data.setStatus("STANDARD");
|
|
785
|
788
|
data.setParentId(vo.getId());
|
|
|
789
|
+ data.setStandardizedAt(LocalDateTime.now());
|
|
786
|
790
|
getBaseMapper().insert(data);
|
|
787
|
791
|
|
|
788
|
792
|
Wrapper<ContractDistributorLine> lineWrapper = Wrappers.lambdaQuery(ContractDistributorLine.class)
|
...
|
...
|
|