|
@ -3,6 +3,7 @@ package com.epmet.service.impl; |
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
@ -255,7 +256,7 @@ public class UserBadgeServiceImpl implements UserBadgeService { |
|
|
// 校验这个徽章此人有没有
|
|
|
// 校验这个徽章此人有没有
|
|
|
Integer recordCount = userBadgeCertificateRecordDao.selectIsExist(certificationAddFormDTO.getBadgeId(), certificationAddFormDTO.getUserId()); |
|
|
Integer recordCount = userBadgeCertificateRecordDao.selectIsExist(certificationAddFormDTO.getBadgeId(), certificationAddFormDTO.getUserId()); |
|
|
if (recordCount>NumConstant.ZERO){ |
|
|
if (recordCount>NumConstant.ZERO){ |
|
|
throw new RenException("不允许重复提交审核"); |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),"不允许重复提交审核","已存在认证记录,不允许重复提交审核"); |
|
|
} |
|
|
} |
|
|
log.info(JSON.toJSONString(certificationAddFormDTO)); |
|
|
log.info(JSON.toJSONString(certificationAddFormDTO)); |
|
|
AuthFieldFormDTO authFieldFormDTO = new AuthFieldFormDTO(); |
|
|
AuthFieldFormDTO authFieldFormDTO = new AuthFieldFormDTO(); |
|
|