|
|
@@ -34,6 +34,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
@@ -81,6 +82,9 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
|
|
|
private final PtlAgreementMapper ptlAgreementMapper;
|
|
|
|
|
|
+ @Value("${python.check}")
|
|
|
+ private String pythonCheck;
|
|
|
+
|
|
|
public PtlAgreementServiceImpl(PtlAgreementProductCostsService ptlAgreementProductCostsService,
|
|
|
PtlAgreementAttributionService ptlAgreementAttributionService,
|
|
|
PtlAgreementDeptService ptlAgreementDeptService,
|
|
|
@@ -161,6 +165,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
public HttpResult<Object> saveAgreement(PtlAgreementSaveVo agreement, String userName) {
|
|
|
PtlAgreementSaveDto agreementSaveDto = agreement.getAgreement();
|
|
|
PtlAgreementAttributionDto attribution = agreement.getAttribution();
|
|
|
+ attribution.setCheck(pythonCheck);
|
|
|
PtlAgreement ptlAgreement = new PtlAgreement();
|
|
|
BeanUtils.copyProperties(agreementSaveDto, ptlAgreement);
|
|
|
|
|
|
@@ -562,6 +567,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
public HttpResult<Object> reviseAgreement(String userName, String agreementId, PtlAgreementSaveVo agreement) {
|
|
|
PtlAgreementSaveDto agreementSaveDto = agreement.getAgreement();
|
|
|
PtlAgreementAttributionDto attribution = agreement.getAttribution();
|
|
|
+ attribution.setCheck(pythonCheck);
|
|
|
PtlAgreement ptlAgreement = proxyObject.ifExistsById(agreementId);
|
|
|
BeanUtils.copyProperties(agreementSaveDto, ptlAgreement);
|
|
|
EsmInsCompany esmInsCompany = proxyObject.verifyLogin(ptlAgreement, agreementSaveDto, attribution,
|