|
|
|
@ -14,6 +14,7 @@ import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@ -452,14 +453,18 @@ public class StuRateServiceImpl implements StuRateService {
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean completionStatusOfEnterprise(String userId) {
|
|
|
|
|
|
|
|
|
|
ArrayList<Integer> arrayList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -467,58 +472,138 @@ public class StuRateServiceImpl implements StuRateService {
|
|
|
|
|
stuCreditEnhanceMeasureExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
List<StuCreditEnhanceMeasure> creditEnhanceMeasureList = creditEnhanceMeasureMapper.selectByExample(stuCreditEnhanceMeasureExample);
|
|
|
|
|
if (creditEnhanceMeasureList.isEmpty()){
|
|
|
|
|
return false;
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuCreditRecordsExample stuCreditRecordsExample = new StuCreditRecordsExample();
|
|
|
|
|
stuCreditRecordsExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
creditRecordsMapper.deleteByExample(stuCreditRecordsExample);
|
|
|
|
|
List<StuCreditRecords> stuCreditRecordsList = creditRecordsMapper.selectByExample(stuCreditRecordsExample);
|
|
|
|
|
if (!stuCreditRecordsList.isEmpty()){
|
|
|
|
|
if (stuBaseInfoList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuDuPontAnalysisExample stuDuPontAnalysisExample = new StuDuPontAnalysisExample();
|
|
|
|
|
stuDuPontAnalysisExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
duPontAnalysisMapper.deleteByExample(stuDuPontAnalysisExample);
|
|
|
|
|
List<StuDuPontAnalysis> duPontAnalysisList = duPontAnalysisMapper.selectByExample(stuDuPontAnalysisExample);
|
|
|
|
|
if (!duPontAnalysisList.isEmpty()){
|
|
|
|
|
if (duPontAnalysisList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuGrowthAbilityExample stuGrowthAbilityExample = new StuGrowthAbilityExample();
|
|
|
|
|
stuGrowthAbilityExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
growthAbilityMapper.deleteByExample(stuGrowthAbilityExample);
|
|
|
|
|
List<StuGrowthAbility> growthAbilityList = growthAbilityMapper.selectByExample(stuGrowthAbilityExample);
|
|
|
|
|
if (!growthAbilityList.isEmpty()){
|
|
|
|
|
if (growthAbilityList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuOperatingCapacityExample stuOperatingCapacityExample = new StuOperatingCapacityExample();
|
|
|
|
|
stuOperatingCapacityExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
operatingCapacityMapper.deleteByExample(stuOperatingCapacityExample);
|
|
|
|
|
List<StuOperatingCapacity> operatingCapacityList = operatingCapacityMapper.selectByExample(stuOperatingCapacityExample);
|
|
|
|
|
if (!operatingCapacityList.isEmpty()){
|
|
|
|
|
if (operatingCapacityList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuOperationAssetAnalysisModuleExample stuOperationAssetAnalysisModuleExample = new StuOperationAssetAnalysisModuleExample();
|
|
|
|
|
stuOperationAssetAnalysisModuleExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
operationAssetAnalysisModuleMapper.deleteByExample(stuOperationAssetAnalysisModuleExample);
|
|
|
|
|
List<StuOperationAssetAnalysisModule> operationAssetAnalysisModuleList = operationAssetAnalysisModuleMapper.selectByExample(stuOperationAssetAnalysisModuleExample);
|
|
|
|
|
if (!operationAssetAnalysisModuleList.isEmpty()){
|
|
|
|
|
if (operationAssetAnalysisModuleList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuProfitAbilityExample stuProfitAbilityExample = new StuProfitAbilityExample();
|
|
|
|
|
stuProfitAbilityExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
profitAbilityMapper.deleteByExample(stuProfitAbilityExample);
|
|
|
|
|
List<StuProfitAbility> profitAbilityList = profitAbilityMapper.selectByExample(stuProfitAbilityExample);
|
|
|
|
|
if (!profitAbilityList.isEmpty()){
|
|
|
|
|
if (profitAbilityList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuRatingModelExample ratingModelExample = new StuRatingModelExample();
|
|
|
|
|
ratingModelExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
ratingModelMapper.deleteByExample(ratingModelExample);
|
|
|
|
|
List<StuRatingModel> stuRatingModelList = ratingModelMapper.selectByExample(ratingModelExample);
|
|
|
|
|
if (!stuRatingModelList.isEmpty()){
|
|
|
|
|
if (stuRatingModelList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuRatingResultExample stuRatingResultExample = new StuRatingResultExample();
|
|
|
|
|
stuRatingResultExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
ratingResultMapper.deleteByExample(stuRatingResultExample);
|
|
|
|
|
List<StuRatingResult> ratingResultList = ratingResultMapper.selectByExample(stuRatingResultExample);
|
|
|
|
|
if (!ratingResultList.isEmpty()){
|
|
|
|
|
if (ratingResultList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuScoreModuleExample stuScoreModuleExample = new StuScoreModuleExample();
|
|
|
|
|
stuScoreModuleExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
scoreModuleMapper.deleteByExample(stuScoreModuleExample);
|
|
|
|
|
List<StuScoreModule> scoreModuleList = scoreModuleMapper.selectByExample(stuScoreModuleExample);
|
|
|
|
|
if (!scoreModuleList.isEmpty()){
|
|
|
|
|
if (scoreModuleList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StuSolvencyExample stuSolvencyExample = new StuSolvencyExample();
|
|
|
|
|
stuSolvencyExample.createCriteria().andUserIdEqualTo(userId);
|
|
|
|
|
solvencyMapper.deleteByExample(stuSolvencyExample);
|
|
|
|
|
List<StuSolvency> stuSolvencyList = solvencyMapper.selectByExample(stuSolvencyExample);
|
|
|
|
|
if (!stuSolvencyList.isEmpty()){
|
|
|
|
|
if (stuSolvencyList.get(0).getSubState() != 1) {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
arrayList.add(0);
|
|
|
|
|
}
|
|
|
|
|
for (Integer integer : arrayList) {
|
|
|
|
|
if (integer == 0)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|