|
|
@@ -11,6 +11,8 @@ import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.admin.model.vo.PersonAreaVo;
|
|
|
import com.ydtech.modules.admin.service.SysAreaService;
|
|
|
import com.ydtech.modules.fee.service.FeeRuleSchemeService;
|
|
|
+import com.ydtech.modules.fnc.entity.InsFeeAudit;
|
|
|
+import com.ydtech.modules.fnc.service.InsFeeAuditService;
|
|
|
import com.ydtech.modules.fnc.service.InsPlyIncomeService;
|
|
|
import com.ydtech.modules.ins.model.vo.*;
|
|
|
import com.ydtech.modules.order.components.ConfigureParametersComponents;
|
|
|
@@ -34,6 +36,7 @@ import com.ydtech.modules.order.entity.vo.dajia.AccidentalInsuranceQueryVo;
|
|
|
import com.ydtech.modules.order.entity.vo.dajia.InsAccidentalDrivingDajia;
|
|
|
import com.ydtech.modules.order.entity.vo.dajia.InsAccidentalDrivingSubDajia;
|
|
|
import com.ydtech.modules.order.service.*;
|
|
|
+import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreementAttribution;
|
|
|
import com.ydtech.modules.protocol.service.PtlAgreementAttributionService;
|
|
|
import com.ydtech.modules.protocol.service.PtlAgreementService;
|
|
|
@@ -48,12 +51,10 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Collections;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Objects;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import static com.ydtech.modules.order.components.gouren.GuorenDuplicateInsuranceComponent.*;
|
|
|
@@ -98,6 +99,9 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
|
|
|
@Autowired
|
|
|
private InsImagesUploadCacheComponents insImagesUploadCacheComponents;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private InsFeeAuditService insFeeAuditService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private InsPlyIncomeService insPlyIncomeService;
|
|
|
|
|
|
@@ -720,6 +724,7 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
|
|
|
return !collect.isEmpty();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 查询订单状态
|
|
|
*
|
|
|
@@ -798,6 +803,13 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
// 生成结算
|
|
|
+ //判断协议是否为人工还是自动审核
|
|
|
+ PtlAgreement ptlAgreement = ptlAgreementService.getById(insAreaCompany.getAgreementId());
|
|
|
+ if(ptlAgreement.getAuditType() == 2)
|
|
|
+ {
|
|
|
+ //如果为自动审核 则自动进行审核
|
|
|
+ insFeeAuditService.autoFeeAudit(insAreaCompany.getOrderno(),insAreaCompany.getId());
|
|
|
+ }
|
|
|
insPlyIncomeService.saveBalance(companyId,insAreaCompany.getOrderno());
|
|
|
}
|
|
|
}
|