|
|
@ -19,6 +19,7 @@ import com.sztzjy.digital_credit.entity.*;
|
|
|
|
import com.sztzjy.digital_credit.entity.dto.StuFinancialIndexDTO;
|
|
|
|
import com.sztzjy.digital_credit.entity.dto.StuFinancialIndexDTO;
|
|
|
|
import com.sztzjy.digital_credit.mapper.*;
|
|
|
|
import com.sztzjy.digital_credit.mapper.*;
|
|
|
|
import com.sztzjy.digital_credit.service.StuEnterPriseByInfoEntryService;
|
|
|
|
import com.sztzjy.digital_credit.service.StuEnterPriseByInfoEntryService;
|
|
|
|
|
|
|
|
import com.sztzjy.digital_credit.service.StuPersonalCreditService;
|
|
|
|
import com.sztzjy.digital_credit.service.StuRateService;
|
|
|
|
import com.sztzjy.digital_credit.service.StuRateService;
|
|
|
|
import com.sztzjy.digital_credit.util.ConvertUtil;
|
|
|
|
import com.sztzjy.digital_credit.util.ConvertUtil;
|
|
|
|
import com.sztzjy.digital_credit.util.MyExcelListener;
|
|
|
|
import com.sztzjy.digital_credit.util.MyExcelListener;
|
|
|
@ -65,6 +66,9 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private StuOperatingCapacityMapper operatingCapacityMapper;
|
|
|
|
private StuOperatingCapacityMapper operatingCapacityMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private StuPersonalCreditService stuPersonalCreditService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
@ -195,7 +199,7 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
stuBaseInfoMapper.updateByPrimaryKeySelective(stuBaseInfo);
|
|
|
|
stuBaseInfoMapper.updateByPrimaryKeySelective(stuBaseInfo);
|
|
|
|
|
|
|
|
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(stuBaseInfo,"基本信息",stuBaseInfo.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(stuBaseInfo.getUserId(),"基本信息", BigDecimal.valueOf(24-stuBaseInfo.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",stuBaseInfo.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",stuBaseInfo.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
@ -208,7 +212,7 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
//插入数据库
|
|
|
|
//插入数据库
|
|
|
|
stuBaseInfoMapper.insertSelective(stuBaseInfo);
|
|
|
|
stuBaseInfoMapper.insertSelective(stuBaseInfo);
|
|
|
|
|
|
|
|
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(stuBaseInfo,"基本信息",stuBaseInfo.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(stuBaseInfo.getUserId(),"基本信息", BigDecimal.valueOf(24-stuBaseInfo.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",stuBaseInfo.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",stuBaseInfo.getErrorNumber());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -312,8 +316,9 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
creditRecords.setUpdateTime(new Date());
|
|
|
|
creditRecords.setUpdateTime(new Date());
|
|
|
|
creditRecordsMapper.updateByPrimaryKeySelective(creditRecords);
|
|
|
|
creditRecordsMapper.updateByPrimaryKeySelective(creditRecords);
|
|
|
|
|
|
|
|
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(creditRecords,"信贷记录",creditRecords.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(creditRecords.getUserId(),"信贷记录", BigDecimal.valueOf(16-creditRecords.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",creditRecords.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",creditRecords.getErrorNumber());
|
|
|
@ -327,7 +332,8 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
creditRecords.setCreateTime(new Date());
|
|
|
|
creditRecords.setCreateTime(new Date());
|
|
|
|
creditRecordsMapper.insertSelective(creditRecords);
|
|
|
|
creditRecordsMapper.insertSelective(creditRecords);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(creditRecords,"信贷记录",creditRecords.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(creditRecords.getUserId(),"信贷记录", BigDecimal.valueOf(16-creditRecords.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",creditRecords.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",creditRecords.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -489,7 +495,9 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
profitAbility.setId(profitAbilityList.get(0).getId());
|
|
|
|
profitAbility.setId(profitAbilityList.get(0).getId());
|
|
|
|
profitAbilityMapper.updateByPrimaryKeySelective(profitAbility);
|
|
|
|
profitAbilityMapper.updateByPrimaryKeySelective(profitAbility);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(profitAbility,"盈利能力",profitAbility.getUserId());
|
|
|
|
|
|
|
|
|
|
|
|
stuPersonalCreditService.scoreEntry(profitAbility.getUserId(),"盈利能力", BigDecimal.valueOf(7-profitAbility.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",profitAbility.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",profitAbility.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
@ -502,7 +510,7 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
//插入数据库
|
|
|
|
//插入数据库
|
|
|
|
profitAbilityMapper.insertSelective(profitAbility);
|
|
|
|
profitAbilityMapper.insertSelective(profitAbility);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(profitAbility,"盈利能力",profitAbility.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(profitAbility.getUserId(),"盈利能力", BigDecimal.valueOf(7-profitAbility.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",profitAbility.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",profitAbility.getErrorNumber());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -577,8 +585,8 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
solvencyMapper.updateByPrimaryKeySelective(solvency);
|
|
|
|
solvencyMapper.updateByPrimaryKeySelective(solvency);
|
|
|
|
|
|
|
|
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(solvency,"偿债能力",solvency.getUserId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stuPersonalCreditService.scoreEntry(solvency.getUserId(),"偿债能力", BigDecimal.valueOf(7-solvency.getErrorNumber()));
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",solvency.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",solvency.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
@ -589,7 +597,7 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
|
|
|
|
|
|
|
|
solvencyMapper.insertSelective(solvency);
|
|
|
|
solvencyMapper.insertSelective(solvency);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(solvency,"偿债能力",solvency.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(solvency.getUserId(),"偿债能力", BigDecimal.valueOf(7-solvency.getErrorNumber()));
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",solvency.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",solvency.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -663,7 +671,8 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
operatingCapacity.setId(operatingCapacityList.get(0).getId());
|
|
|
|
operatingCapacity.setId(operatingCapacityList.get(0).getId());
|
|
|
|
operatingCapacityMapper.updateByPrimaryKeySelective(operatingCapacity);
|
|
|
|
operatingCapacityMapper.updateByPrimaryKeySelective(operatingCapacity);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(operatingCapacity,"营运能力",operatingCapacity.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(operatingCapacity.getUserId(),"营运能力", BigDecimal.valueOf(8-operatingCapacity.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",operatingCapacity.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",operatingCapacity.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -675,7 +684,7 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
//插入数据库
|
|
|
|
//插入数据库
|
|
|
|
operatingCapacityMapper.insertSelective(operatingCapacity);
|
|
|
|
operatingCapacityMapper.insertSelective(operatingCapacity);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(operatingCapacity,"营运能力",operatingCapacity.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(operatingCapacity.getUserId(),"营运能力", BigDecimal.valueOf(8-operatingCapacity.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",operatingCapacity.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",operatingCapacity.getErrorNumber());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -755,7 +764,9 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
growthAbilityMapper.updateByPrimaryKeySelective(growthAbility);
|
|
|
|
growthAbilityMapper.updateByPrimaryKeySelective(growthAbility);
|
|
|
|
|
|
|
|
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(growthAbility,"成长能力",growthAbility.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(growthAbility.getUserId(),"成长能力", BigDecimal.valueOf(1-growthAbility.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",growthAbility.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",growthAbility.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
@ -767,7 +778,7 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
//插入数据库
|
|
|
|
//插入数据库
|
|
|
|
growthAbilityMapper.insertSelective(growthAbility);
|
|
|
|
growthAbilityMapper.insertSelective(growthAbility);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(growthAbility,"成长能力",growthAbility.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(growthAbility.getUserId(),"成长能力", BigDecimal.valueOf(1-growthAbility.getErrorNumber()));
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",growthAbility.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",growthAbility.getErrorNumber());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -842,7 +853,10 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
duPontAnalysis.setId(duPontAnalysisList.get(0).getId());
|
|
|
|
duPontAnalysis.setId(duPontAnalysisList.get(0).getId());
|
|
|
|
duPontAnalysisMapper.updateByPrimaryKeySelective(duPontAnalysis);
|
|
|
|
duPontAnalysisMapper.updateByPrimaryKeySelective(duPontAnalysis);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(duPontAnalysis,"杜邦分析",duPontAnalysis.getUserId());
|
|
|
|
|
|
|
|
|
|
|
|
stuPersonalCreditService.scoreEntry(duPontAnalysis.getUserId(),"杜邦分析", BigDecimal.valueOf(4-duPontAnalysis.getErrorNumber()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",duPontAnalysis.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",duPontAnalysis.getErrorNumber());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -853,7 +867,7 @@ public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoE
|
|
|
|
//插入数据库
|
|
|
|
//插入数据库
|
|
|
|
duPontAnalysisMapper.insertSelective(duPontAnalysis);
|
|
|
|
duPontAnalysisMapper.insertSelective(duPontAnalysis);
|
|
|
|
//计算分数写入用户表
|
|
|
|
//计算分数写入用户表
|
|
|
|
stuRateService.enterScoreWriteUserByUserId(duPontAnalysis,"杜邦分析",duPontAnalysis.getUserId());
|
|
|
|
stuPersonalCreditService.scoreEntry(duPontAnalysis.getUserId(),"杜邦分析", BigDecimal.valueOf(4-duPontAnalysis.getErrorNumber()));
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",duPontAnalysis.getErrorNumber());
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"保存成功!",duPontAnalysis.getErrorNumber());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|