|
|
@ -1,13 +1,16 @@
|
|
|
|
package com.sztzjy.digital_credit.service.impl;
|
|
|
|
package com.sztzjy.digital_credit.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.cache.CacheUtil;
|
|
|
|
import com.itextpdf.text.DocumentException;
|
|
|
|
import com.itextpdf.text.DocumentException;
|
|
|
|
import com.itextpdf.text.pdf.parser.PathConstructionRenderInfo;
|
|
|
|
import com.itextpdf.text.pdf.parser.PathConstructionRenderInfo;
|
|
|
|
import com.sztzjy.digital_credit.config.exception.handler.DigitalEconomyxception;
|
|
|
|
import com.sztzjy.digital_credit.config.exception.handler.DigitalEconomyxception;
|
|
|
|
import com.sztzjy.digital_credit.entity.*;
|
|
|
|
import com.sztzjy.digital_credit.entity.*;
|
|
|
|
|
|
|
|
import com.sztzjy.digital_credit.entity.dto.*;
|
|
|
|
import com.sztzjy.digital_credit.mapper.*;
|
|
|
|
import com.sztzjy.digital_credit.mapper.*;
|
|
|
|
import com.sztzjy.digital_credit.service.StuPersonalCreditReportingService;
|
|
|
|
import com.sztzjy.digital_credit.service.StuPersonalCreditReportingService;
|
|
|
|
import com.sztzjy.digital_credit.service.StuPersonalCreditService;
|
|
|
|
import com.sztzjy.digital_credit.service.StuPersonalCreditService;
|
|
|
|
import com.sztzjy.digital_credit.util.BigDecimalUtils;
|
|
|
|
import com.sztzjy.digital_credit.util.BigDecimalUtils;
|
|
|
|
|
|
|
|
import com.sztzjy.digital_credit.util.ConvertUtil;
|
|
|
|
import org.hibernate.service.spi.ServiceException;
|
|
|
|
import org.hibernate.service.spi.ServiceException;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
@ -48,6 +51,8 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
BigDecimalUtils bigDecimalUtils;
|
|
|
|
BigDecimalUtils bigDecimalUtils;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
StuUserMapper stuUserMapper;
|
|
|
|
StuUserMapper stuUserMapper;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
ConvertUtil convertUtil;
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public StuPersonalInfo getPersonalInfo(String userId) {
|
|
|
|
public StuPersonalInfo getPersonalInfo(String userId) {
|
|
|
|
StuPersonalInfoExample example=new StuPersonalInfoExample();
|
|
|
|
StuPersonalInfoExample example=new StuPersonalInfoExample();
|
|
|
@ -90,9 +95,9 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void submitPersonalInfo(StuPersonalInfo stuPersonalInfo,String module) {
|
|
|
|
public void submitPersonalInfo(StuPersonalInfoDTO stuPersonalInfoDTO) {
|
|
|
|
StuPersonalInfoExample example=new StuPersonalInfoExample();
|
|
|
|
StuPersonalInfoExample example=new StuPersonalInfoExample();
|
|
|
|
example.createCriteria().andUserIdEqualTo(stuPersonalInfo.getUserId());
|
|
|
|
example.createCriteria().andUserIdEqualTo(stuPersonalInfoDTO.getUserId());
|
|
|
|
List<StuPersonalInfo> stuPersonalInfos = stuPersonalInfoMapper.selectByExample(example);
|
|
|
|
List<StuPersonalInfo> stuPersonalInfos = stuPersonalInfoMapper.selectByExample(example);
|
|
|
|
//判断用户是否已提交
|
|
|
|
//判断用户是否已提交
|
|
|
|
if(!stuPersonalInfos.isEmpty()){
|
|
|
|
if(!stuPersonalInfos.isEmpty()){
|
|
|
@ -104,7 +109,7 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
// TODO: 2024/4/15 自动保存并给用户计分并更新提交状态
|
|
|
|
// TODO: 2024/4/15 自动保存并给用户计分并更新提交状态
|
|
|
|
BeanUtils.copyProperties(stuPersonalInfo,personalInfo);
|
|
|
|
BeanUtils.copyProperties(stuPersonalInfoDTO,personalInfo);
|
|
|
|
personalInfo.setUpdateTime(new Date());
|
|
|
|
personalInfo.setUpdateTime(new Date());
|
|
|
|
personalInfo.setId(id);
|
|
|
|
personalInfo.setId(id);
|
|
|
|
personalInfo.setSubmitStatus(1);
|
|
|
|
personalInfo.setSubmitStatus(1);
|
|
|
@ -113,13 +118,17 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
stuPersonalInfo.setId(uuid);
|
|
|
|
stuPersonalInfoDTO.setId(uuid);
|
|
|
|
stuPersonalInfo.setCreationTime(new Date());
|
|
|
|
stuPersonalInfoDTO.setCreationTime(new Date());
|
|
|
|
stuPersonalInfo.setSubmitStatus(1);
|
|
|
|
stuPersonalInfoDTO.setSubmitStatus(1);
|
|
|
|
stuPersonalInfoMapper.insert(stuPersonalInfo);
|
|
|
|
|
|
|
|
|
|
|
|
StuPersonalInfo personalInfo = convertUtil.DTOToEntity(stuPersonalInfoDTO, StuPersonalInfo.class);
|
|
|
|
|
|
|
|
stuPersonalInfoMapper.insert(personalInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//计分
|
|
|
|
//计分
|
|
|
|
stuPersonalCreditService.personalInfoScoring(stuPersonalInfo,module);
|
|
|
|
StuPersonalInfo personalInfo = convertUtil.DTOToEntity(stuPersonalInfoDTO, StuPersonalInfo.class);
|
|
|
|
|
|
|
|
String module = stuPersonalInfoDTO.getModule();
|
|
|
|
|
|
|
|
stuPersonalCreditService.personalInfoScoring(personalInfo,module);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -164,9 +173,9 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void submitCreditReminder(StuPersonalCreditReminderInfo creditReminderInfo,String module) {
|
|
|
|
public void submitCreditReminder(StuPersonalCreditReminderInfoDTO creditReminderInfoDTO) {
|
|
|
|
StuPersonalCreditReminderInfoExample example=new StuPersonalCreditReminderInfoExample();
|
|
|
|
StuPersonalCreditReminderInfoExample example=new StuPersonalCreditReminderInfoExample();
|
|
|
|
example.createCriteria().andUserIdEqualTo(creditReminderInfo.getUserId());
|
|
|
|
example.createCriteria().andUserIdEqualTo(creditReminderInfoDTO.getUserId());
|
|
|
|
List<StuPersonalCreditReminderInfo> stuPersonalCreditReminderInfos = stuPersonalCreditReminderInfoMapper.selectByExample(example);
|
|
|
|
List<StuPersonalCreditReminderInfo> stuPersonalCreditReminderInfos = stuPersonalCreditReminderInfoMapper.selectByExample(example);
|
|
|
|
//判断用户是否已提交
|
|
|
|
//判断用户是否已提交
|
|
|
|
if(!stuPersonalCreditReminderInfos.isEmpty()){
|
|
|
|
if(!stuPersonalCreditReminderInfos.isEmpty()){
|
|
|
@ -177,7 +186,7 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
BeanUtils.copyProperties(creditReminderInfo,reminderInfo);
|
|
|
|
BeanUtils.copyProperties(creditReminderInfoDTO,reminderInfo);
|
|
|
|
reminderInfo.setId(id);
|
|
|
|
reminderInfo.setId(id);
|
|
|
|
reminderInfo.setUpdateTime(new Date());
|
|
|
|
reminderInfo.setUpdateTime(new Date());
|
|
|
|
reminderInfo.setSubmitStatus(1);
|
|
|
|
reminderInfo.setSubmitStatus(1);
|
|
|
@ -186,13 +195,17 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
creditReminderInfo.setId(uuid);
|
|
|
|
creditReminderInfoDTO.setId(uuid);
|
|
|
|
creditReminderInfo.setCreationTime(new Date());
|
|
|
|
creditReminderInfoDTO.setCreationTime(new Date());
|
|
|
|
creditReminderInfo.setSubmitStatus(1);
|
|
|
|
creditReminderInfoDTO.setSubmitStatus(1);
|
|
|
|
stuPersonalCreditReminderInfoMapper.insert(creditReminderInfo);
|
|
|
|
|
|
|
|
|
|
|
|
StuPersonalCreditReminderInfo reminderInfo = convertUtil.DTOToEntity(creditReminderInfoDTO, StuPersonalCreditReminderInfo.class);
|
|
|
|
|
|
|
|
stuPersonalCreditReminderInfoMapper.insert(reminderInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
String module = creditReminderInfoDTO.getModule();
|
|
|
|
|
|
|
|
StuPersonalCreditReminderInfo reminderInfo = convertUtil.DTOToEntity(creditReminderInfoDTO, StuPersonalCreditReminderInfo.class);
|
|
|
|
//计分
|
|
|
|
//计分
|
|
|
|
stuPersonalCreditService.creditReminderInfoScoring(creditReminderInfo,module);
|
|
|
|
stuPersonalCreditService.creditReminderInfoScoring(reminderInfo,module);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -237,9 +250,9 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void submitOverdueInfo(StuPersonalDefaultInfo stuPersonalDefaultInfo,String module) {
|
|
|
|
public void submitOverdueInfo(StuPersonalDefaultInfoDTO defaultInfoDTO) {
|
|
|
|
StuPersonalDefaultInfoExample example=new StuPersonalDefaultInfoExample();
|
|
|
|
StuPersonalDefaultInfoExample example=new StuPersonalDefaultInfoExample();
|
|
|
|
example.createCriteria().andUserIdEqualTo(stuPersonalDefaultInfo.getUserId());
|
|
|
|
example.createCriteria().andUserIdEqualTo(defaultInfoDTO.getUserId());
|
|
|
|
List<StuPersonalDefaultInfo> stuPersonalDefaultInfos = stuPersonalDefaultInfoMapper.selectByExample(example);
|
|
|
|
List<StuPersonalDefaultInfo> stuPersonalDefaultInfos = stuPersonalDefaultInfoMapper.selectByExample(example);
|
|
|
|
//判断用户是否已提交
|
|
|
|
//判断用户是否已提交
|
|
|
|
if(!stuPersonalDefaultInfos.isEmpty()){
|
|
|
|
if(!stuPersonalDefaultInfos.isEmpty()){
|
|
|
@ -250,7 +263,7 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
BeanUtils.copyProperties(stuPersonalDefaultInfo,personalDefaultInfo);
|
|
|
|
BeanUtils.copyProperties(defaultInfoDTO,personalDefaultInfo);
|
|
|
|
personalDefaultInfo.setId(id);
|
|
|
|
personalDefaultInfo.setId(id);
|
|
|
|
personalDefaultInfo.setUpdateTime(new Date());
|
|
|
|
personalDefaultInfo.setUpdateTime(new Date());
|
|
|
|
personalDefaultInfo.setSubmitStatus(1);
|
|
|
|
personalDefaultInfo.setSubmitStatus(1);
|
|
|
@ -259,13 +272,18 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
stuPersonalDefaultInfo.setId(uuid);
|
|
|
|
defaultInfoDTO.setId(uuid);
|
|
|
|
stuPersonalDefaultInfo.setCreationTime(new Date());
|
|
|
|
defaultInfoDTO.setCreationTime(new Date());
|
|
|
|
stuPersonalDefaultInfo.setSubmitStatus(1);
|
|
|
|
defaultInfoDTO.setSubmitStatus(1);
|
|
|
|
stuPersonalDefaultInfoMapper.insert(stuPersonalDefaultInfo);
|
|
|
|
|
|
|
|
|
|
|
|
StuPersonalDefaultInfo personalDefaultInfo = convertUtil.DTOToEntity(defaultInfoDTO, StuPersonalDefaultInfo.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stuPersonalDefaultInfoMapper.insert(personalDefaultInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//计分
|
|
|
|
//计分
|
|
|
|
stuPersonalCreditService.overdueInfoScoring(stuPersonalDefaultInfo,module);
|
|
|
|
String module = defaultInfoDTO.getModule();
|
|
|
|
|
|
|
|
StuPersonalDefaultInfo personalDefaultInfo = convertUtil.DTOToEntity(defaultInfoDTO, StuPersonalDefaultInfo.class);
|
|
|
|
|
|
|
|
stuPersonalCreditService.overdueInfoScoring(personalDefaultInfo,module);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -310,9 +328,9 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void submitCreditGranting(StuPersonalOutstandingLoansInfo stuPersonalOutstandingLoansInfo,String module) {
|
|
|
|
public void submitCreditGranting(StuPersonalOutstandingLoansInfoDTO loansInfoDTO) {
|
|
|
|
StuPersonalOutstandingLoansInfoExample example=new StuPersonalOutstandingLoansInfoExample();
|
|
|
|
StuPersonalOutstandingLoansInfoExample example=new StuPersonalOutstandingLoansInfoExample();
|
|
|
|
example.createCriteria().andUserIdEqualTo(stuPersonalOutstandingLoansInfo.getUserId());
|
|
|
|
example.createCriteria().andUserIdEqualTo(loansInfoDTO.getUserId());
|
|
|
|
List<StuPersonalOutstandingLoansInfo> stuPersonalOutstandingLoansInfos = stuPersonalOutstandingLoansInfoMapper.selectByExample(example);
|
|
|
|
List<StuPersonalOutstandingLoansInfo> stuPersonalOutstandingLoansInfos = stuPersonalOutstandingLoansInfoMapper.selectByExample(example);
|
|
|
|
//判断用户是否已提交
|
|
|
|
//判断用户是否已提交
|
|
|
|
if(!stuPersonalOutstandingLoansInfos.isEmpty()){
|
|
|
|
if(!stuPersonalOutstandingLoansInfos.isEmpty()){
|
|
|
@ -323,7 +341,7 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
BeanUtils.copyProperties(stuPersonalOutstandingLoansInfo,personalOutstandingLoansInfo);
|
|
|
|
BeanUtils.copyProperties(loansInfoDTO,personalOutstandingLoansInfo);
|
|
|
|
personalOutstandingLoansInfo.setId(id);
|
|
|
|
personalOutstandingLoansInfo.setId(id);
|
|
|
|
personalOutstandingLoansInfo.setUpdateTime(new Date());
|
|
|
|
personalOutstandingLoansInfo.setUpdateTime(new Date());
|
|
|
|
personalOutstandingLoansInfo.setSubmitStatus(1);
|
|
|
|
personalOutstandingLoansInfo.setSubmitStatus(1);
|
|
|
@ -332,13 +350,18 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
stuPersonalOutstandingLoansInfo.setId(uuid);
|
|
|
|
loansInfoDTO.setId(uuid);
|
|
|
|
stuPersonalOutstandingLoansInfo.setCreationTime(new Date());
|
|
|
|
loansInfoDTO.setCreationTime(new Date());
|
|
|
|
stuPersonalOutstandingLoansInfo.setSubmitStatus(1);
|
|
|
|
loansInfoDTO.setSubmitStatus(1);
|
|
|
|
stuPersonalOutstandingLoansInfoMapper.insert(stuPersonalOutstandingLoansInfo);
|
|
|
|
|
|
|
|
|
|
|
|
StuPersonalOutstandingLoansInfo personalOutstandingLoansInfo = convertUtil.DTOToEntity(loansInfoDTO, StuPersonalOutstandingLoansInfo.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stuPersonalOutstandingLoansInfoMapper.insert(personalOutstandingLoansInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//计分
|
|
|
|
//计分
|
|
|
|
stuPersonalCreditService.creditGrantingScoring(stuPersonalOutstandingLoansInfo,module);
|
|
|
|
String module = loansInfoDTO.getModule();
|
|
|
|
|
|
|
|
StuPersonalOutstandingLoansInfo personalOutstandingLoansInfo = convertUtil.DTOToEntity(loansInfoDTO, StuPersonalOutstandingLoansInfo.class);
|
|
|
|
|
|
|
|
stuPersonalCreditService.creditGrantingScoring(personalOutstandingLoansInfo,module);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -383,9 +406,9 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void submitCreditScore(StuCreditScore stuCreditScore,String module) {
|
|
|
|
public void submitCreditScore(StuCreditScoreDTO stuCreditScoreDTO) {
|
|
|
|
StuCreditScoreExample example=new StuCreditScoreExample();
|
|
|
|
StuCreditScoreExample example=new StuCreditScoreExample();
|
|
|
|
example.createCriteria().andUserIdEqualTo(stuCreditScore.getUserId());
|
|
|
|
example.createCriteria().andUserIdEqualTo(stuCreditScoreDTO.getUserId());
|
|
|
|
List<StuCreditScore> stuCreditScores = stuCreditScoreMapper.selectByExample(example);
|
|
|
|
List<StuCreditScore> stuCreditScores = stuCreditScoreMapper.selectByExample(example);
|
|
|
|
//判断用户是否已提交
|
|
|
|
//判断用户是否已提交
|
|
|
|
if(!stuCreditScores.isEmpty()){
|
|
|
|
if(!stuCreditScores.isEmpty()){
|
|
|
@ -396,7 +419,7 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
// TODO: 2024/4/15 更新数据或自动保存并给用户计分并更新提交状态
|
|
|
|
BeanUtils.copyProperties(stuCreditScore,creditScore);
|
|
|
|
BeanUtils.copyProperties(stuCreditScoreDTO,creditScore);
|
|
|
|
creditScore.setId(id);
|
|
|
|
creditScore.setId(id);
|
|
|
|
creditScore.setUpdateTime(new Date());
|
|
|
|
creditScore.setUpdateTime(new Date());
|
|
|
|
creditScore.setSubmitStatus(1);
|
|
|
|
creditScore.setSubmitStatus(1);
|
|
|
@ -405,13 +428,17 @@ public class StuPersonalInfoEntryServiceImpl implements StuPersonalCreditReporti
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
Integer uuid = UUID.randomUUID().toString().replaceAll("-", "").hashCode();
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
|
|
|
stuCreditScore.setId(uuid);
|
|
|
|
stuCreditScoreDTO.setId(uuid);
|
|
|
|
stuCreditScore.setCreationTime(new Date());
|
|
|
|
stuCreditScoreDTO.setCreationTime(new Date());
|
|
|
|
stuCreditScore.setSubmitStatus(1);
|
|
|
|
stuCreditScoreDTO.setSubmitStatus(1);
|
|
|
|
stuCreditScoreMapper.insert(stuCreditScore);
|
|
|
|
|
|
|
|
|
|
|
|
StuCreditScore creditScore = convertUtil.DTOToEntity(stuCreditScoreDTO, StuCreditScore.class);
|
|
|
|
|
|
|
|
stuCreditScoreMapper.insert(creditScore);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//计分
|
|
|
|
//计分
|
|
|
|
stuPersonalCreditService.creditScoreScoring(stuCreditScore,module);
|
|
|
|
String module = stuCreditScoreDTO.getModule();
|
|
|
|
|
|
|
|
StuCreditScore creditScore = convertUtil.DTOToEntity(stuCreditScoreDTO, StuCreditScore.class);
|
|
|
|
|
|
|
|
stuPersonalCreditService.creditScoreScoring(creditScore,module);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|