|
@@ -13,19 +13,13 @@ import com.sunxung.factoring.entity.creditresolution.*;
|
|
|
import com.sunxung.factoring.entity.entprise.Enterprise;
|
|
|
import com.sunxung.factoring.entity.project.*;
|
|
|
import com.sunxung.factoring.entity.project.vo.SearchBusinessProcessingTask;
|
|
|
-import com.sunxung.factoring.entity.supplier.DueDiligenceAllocation;
|
|
|
import com.sunxung.factoring.entity.supplier.SupplierInfo;
|
|
|
-import com.sunxung.factoring.entity.supplier.VideoDueDiligence;
|
|
|
-import com.sunxung.factoring.entity.supplier.VideoDueDiligenceComprehensiveEvaluation;
|
|
|
import com.sunxung.factoring.entity.sys.*;
|
|
|
import com.sunxung.factoring.mapper.creditresolution.CreditResolutionMapper;
|
|
|
import com.sunxung.factoring.service.creditresolution.*;
|
|
|
import com.sunxung.factoring.service.entprise.IEnterpriseService;
|
|
|
import com.sunxung.factoring.service.project.*;
|
|
|
-import com.sunxung.factoring.service.supplier.IDueDiligenceAllocationService;
|
|
|
import com.sunxung.factoring.service.supplier.ISupplierInfoService;
|
|
|
-import com.sunxung.factoring.service.supplier.IVideoDueDiligenceComprehensiveEvaluationService;
|
|
|
-import com.sunxung.factoring.service.supplier.IVideoDueDiligenceService;
|
|
|
import com.sunxung.factoring.service.sys.*;
|
|
|
import com.sunxung.factoring.service.sys.flowable.FlowableService;
|
|
|
import org.flowable.engine.runtime.ProcessInstance;
|
|
@@ -190,7 +184,7 @@ public class CreditResolutionServiceImpl extends ServiceImpl<CreditResolutionMap
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void startProcessOld(Long cProjectInformationId, Long oldCoreEnterpriseId) {
|
|
|
+ public void startProcessOld(Long cProjectInformationId, Long oldCoreEnterpriseId, Long estimatedAccountingPeriod) {
|
|
|
if(oldCoreEnterpriseId == null){
|
|
|
throw new ServiceException(CodeUtil.FAIL,"项目核心企业id为空,无法开启授信决议流程!");
|
|
|
}
|
|
@@ -230,8 +224,8 @@ public class CreditResolutionServiceImpl extends ServiceImpl<CreditResolutionMap
|
|
|
creditResolution.setCurrency("CNY");
|
|
|
creditResolution.setProposedCreditTerm(360);
|
|
|
creditResolution.setStatusStr(ProjectInitiationStatusDict.ChildEnum.PROCESSING.getCode());
|
|
|
- creditResolution.setUpstreamAccountingPeriod(projectInformation.getEstimatedAccountingPeriod() * 30 + 60);
|
|
|
- creditResolution.setFactoringFinancingPeriod(projectInformation.getEstimatedAccountingPeriod() * 30 + 60);
|
|
|
+ creditResolution.setUpstreamAccountingPeriod(estimatedAccountingPeriod * 30 + 60);
|
|
|
+ creditResolution.setFactoringFinancingPeriod(estimatedAccountingPeriod * 30 + 60);
|
|
|
creditResolution.setCreditReport(1);
|
|
|
baseMapper.add(creditResolution);
|
|
|
//开启流程
|