|
|
@ -102,11 +102,11 @@ public class ArtistService {
|
|
|
|
artistResponsibleDao.save(artistResponsible);
|
|
|
|
artistResponsibleDao.save(artistResponsible);
|
|
|
|
|
|
|
|
|
|
|
|
// 审核记录
|
|
|
|
// 审核记录
|
|
|
|
List<UserProcessDao> successList = userProcessDao.findUserProcessByUserIdAndTypeAndStatus(userInfo.getId(), UserProcessTypeEnum.ARTIST.getCode(), UserProcessStatusEnum.SUCCESS.getCode());
|
|
|
|
List<UserProcess> successList = userProcessDao.findUserProcessByUserIdAndTypeAndStatus(userInfo.getId(), UserProcessTypeEnum.ARTIST.getCode(), UserProcessStatusEnum.SUCCESS.getCode());
|
|
|
|
if(!successList.isEmpty()) {
|
|
|
|
if(!successList.isEmpty()) {
|
|
|
|
throw new RuntimeException("该账号已审核通过,请勿重复申请");
|
|
|
|
throw new RuntimeException("该账号已审核通过,请勿重复申请");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<UserProcessDao> upApprovedList = userProcessDao.findUserProcessByUserIdAndTypeAndStatus(userInfo.getId(), UserProcessTypeEnum.ARTIST.getCode(), UserProcessStatusEnum.UNAPPROVED.getCode());
|
|
|
|
List<UserProcess> upApprovedList = userProcessDao.findUserProcessByUserIdAndTypeAndStatus(userInfo.getId(), UserProcessTypeEnum.ARTIST.getCode(), UserProcessStatusEnum.UNAPPROVED.getCode());
|
|
|
|
if(!upApprovedList.isEmpty()) {
|
|
|
|
if(!upApprovedList.isEmpty()) {
|
|
|
|
throw new RuntimeException("该账号正在审核中,请勿重复申请");
|
|
|
|
throw new RuntimeException("该账号正在审核中,请勿重复申请");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -116,6 +116,7 @@ public class ArtistService {
|
|
|
|
.userId(userInfo.getId())
|
|
|
|
.userId(userInfo.getId())
|
|
|
|
.type(UserProcessTypeEnum.ARTIST.getCode())
|
|
|
|
.type(UserProcessTypeEnum.ARTIST.getCode())
|
|
|
|
.status(UserProcessStatusEnum.UNAPPROVED.getCode())
|
|
|
|
.status(UserProcessStatusEnum.UNAPPROVED.getCode())
|
|
|
|
|
|
|
|
.createTime(new Date())
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
userProcessDao.save(userProcess);
|
|
|
|
userProcessDao.save(userProcess);
|
|
|
|
}
|
|
|
|
}
|
|
|
|