|
|
|
@ -102,11 +102,11 @@ public class ArtistService {
|
|
|
|
|
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()) {
|
|
|
|
|
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()) {
|
|
|
|
|
throw new RuntimeException("该账号正在审核中,请勿重复申请");
|
|
|
|
|
}
|
|
|
|
@ -116,6 +116,7 @@ public class ArtistService {
|
|
|
|
|
.userId(userInfo.getId())
|
|
|
|
|
.type(UserProcessTypeEnum.ARTIST.getCode())
|
|
|
|
|
.status(UserProcessStatusEnum.UNAPPROVED.getCode())
|
|
|
|
|
.createTime(new Date())
|
|
|
|
|
.build();
|
|
|
|
|
userProcessDao.save(userProcess);
|
|
|
|
|
}
|
|
|
|
|