|
|
|
@ -443,6 +443,86 @@ public class StuRateServiceImpl implements StuRateService {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 企业征信完成状态
|
|
|
|
|
* @param userId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean completionStatusOfEnterprise(String userId) {
|
|
|
|
|
|
|
|
|
|
StuBaseInfoExample stuBaseInfoExample = new StuBaseInfoExample();
|
|
|
|
|
stuBaseInfoExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
List<StuBaseInfo> stuBaseInfoList = baseInfoMapper.selectByExample(stuBaseInfoExample);
|
|
|
|
|
if (!stuBaseInfoList.isEmpty()){
|
|
|
|
|
if (stuBaseInfoList.get(0).getSubState() != 1) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuCreditEnhanceMeasureExample stuCreditEnhanceMeasureExample = new StuCreditEnhanceMeasureExample();
|
|
|
|
|
stuCreditEnhanceMeasureExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
List<StuCreditEnhanceMeasure> creditEnhanceMeasureList = creditEnhanceMeasureMapper.selectByExample(stuCreditEnhanceMeasureExample);
|
|
|
|
|
if (creditEnhanceMeasureList.isEmpty()){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuCreditRecordsExample stuCreditRecordsExample = new StuCreditRecordsExample();
|
|
|
|
|
stuCreditRecordsExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
creditRecordsMapper.deleteByExample(stuCreditRecordsExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuDuPontAnalysisExample stuDuPontAnalysisExample = new StuDuPontAnalysisExample();
|
|
|
|
|
stuDuPontAnalysisExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
duPontAnalysisMapper.deleteByExample(stuDuPontAnalysisExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuGrowthAbilityExample stuGrowthAbilityExample = new StuGrowthAbilityExample();
|
|
|
|
|
stuGrowthAbilityExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
growthAbilityMapper.deleteByExample(stuGrowthAbilityExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuOperatingCapacityExample stuOperatingCapacityExample = new StuOperatingCapacityExample();
|
|
|
|
|
stuOperatingCapacityExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
operatingCapacityMapper.deleteByExample(stuOperatingCapacityExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuOperationAssetAnalysisModuleExample stuOperationAssetAnalysisModuleExample = new StuOperationAssetAnalysisModuleExample();
|
|
|
|
|
stuOperationAssetAnalysisModuleExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
operationAssetAnalysisModuleMapper.deleteByExample(stuOperationAssetAnalysisModuleExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuProfitAbilityExample stuProfitAbilityExample = new StuProfitAbilityExample();
|
|
|
|
|
stuProfitAbilityExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
profitAbilityMapper.deleteByExample(stuProfitAbilityExample);
|
|
|
|
|
|
|
|
|
|
StuRatingModelExample ratingModelExample = new StuRatingModelExample();
|
|
|
|
|
ratingModelExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
ratingModelMapper.deleteByExample(ratingModelExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuRatingResultExample stuRatingResultExample = new StuRatingResultExample();
|
|
|
|
|
stuRatingResultExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
ratingResultMapper.deleteByExample(stuRatingResultExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuScoreModuleExample stuScoreModuleExample = new StuScoreModuleExample();
|
|
|
|
|
stuScoreModuleExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
scoreModuleMapper.deleteByExample(stuScoreModuleExample);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuSolvencyExample stuSolvencyExample = new StuSolvencyExample();
|
|
|
|
|
stuSolvencyExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
solvencyMapper.deleteByExample(stuSolvencyExample);
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//增信措施自动评分
|
|
|
|
|
private int enchancePlanAutoScore(int length) {
|
|
|
|
|
|
|
|
|
|