|
@@ -494,13 +494,12 @@ public class SysUserSignCertServiceImpl implements SysUserSignCertService {
|
|
|
if (userSignCertDTO.getSubjectLocation() != null) {
|
|
|
updateWrapper.eq(SysUserSub::getSubjectLocation, userSignCertDTO.getSubjectLocation());
|
|
|
}
|
|
|
- if (StrUtil.isNotBlank(userSignCertDTO.getAgreementUrl())) {
|
|
|
- updateWrapper.set(SysUserSub::getAgreementUrl, userSignCertDTO.getAgreementUrl());
|
|
|
- }
|
|
|
updateWrapper.set(SysUserSub::getIdCardFrontUrl, userSignCertDTO.getIdCardFrontUrl());
|
|
|
updateWrapper.set(SysUserSub::getIdCardBackUrl, userSignCertDTO.getIdCardBackUrl());
|
|
|
- updateWrapper.set(SysUserSub::getCertVideo1Url, userSignCertDTO.getCertVideo1Url());
|
|
|
- updateWrapper.set(SysUserSub::getCertVideo2Url, userSignCertDTO.getCertVideo2Url());
|
|
|
+ if (StrUtil.isNotBlank(userSignCertDTO.getCertVideo1Url()) && StrUtil.isNotBlank(userSignCertDTO.getCertVideo2Url())) {
|
|
|
+ updateWrapper.set(SysUserSub::getCertVideo1Url, userSignCertDTO.getCertVideo1Url());
|
|
|
+ updateWrapper.set(SysUserSub::getCertVideo2Url, userSignCertDTO.getCertVideo2Url());
|
|
|
+ }
|
|
|
updateWrapper.set(SysUserSub::getUpdateUser, SecurityUtils.getUser().getId());
|
|
|
updateWrapper.set(SysUserSub::getUpdateTime, LocalDateTime.now());
|
|
|
|
|
@@ -526,7 +525,10 @@ public class SysUserSignCertServiceImpl implements SysUserSignCertService {
|
|
|
SysUserExtRecord userExtRecord = sysUserExtRecordService.getOne(Wrappers.<SysUserExtRecord>lambdaQuery()
|
|
|
.eq(SysUserExtRecord::getUserId, userId)
|
|
|
.eq(SysUserExtRecord::getDelFlag, DelEnum.NOT_DEL.val()));
|
|
|
- if (userExtRecord == null && !SubjectLocation.REN_LI_JIA.equals(userSignCertDTO.getSubjectLocation())) {
|
|
|
+ if (userExtRecord == null
|
|
|
+ && !SubjectLocation.REN_LI_JIA.equals(userSignCertDTO.getSubjectLocation())
|
|
|
+ && !SubjectLocation.JIANG_XI.equals(userSignCertDTO.getSubjectLocation())) {
|
|
|
+ // 人力家、正启之星-江西 不校验userExtRecord
|
|
|
return false;
|
|
|
}
|
|
|
// 查询dept
|
|
@@ -775,9 +777,11 @@ public class SysUserSignCertServiceImpl implements SysUserSignCertService {
|
|
|
userInfoModel.setSignImageUrl(StrUtil.isBlank(userSub.getAgreementUrl())
|
|
|
? null : userSub.getAgreementUrl().startsWith("https")
|
|
|
? userSub.getAgreementUrl() : upmsConfig.getClientUrl() + userSub.getAgreementUrl());
|
|
|
- userInfoModel.setIdCardBackBase64(userExtRecord.getIdCardBackBase64());
|
|
|
- userInfoModel.setIdCardFrontBase64(userExtRecord.getIdCardFrontBase64());
|
|
|
- userInfoModel.setBestFrameBase64(userExtRecord.getBestFrameBase64());
|
|
|
+ if (userExtRecord != null) {
|
|
|
+ userInfoModel.setIdCardBackBase64(userExtRecord.getIdCardBackBase64());
|
|
|
+ userInfoModel.setIdCardFrontBase64(userExtRecord.getIdCardFrontBase64());
|
|
|
+ userInfoModel.setBestFrameBase64(userExtRecord.getBestFrameBase64());
|
|
|
+ }
|
|
|
|
|
|
GigInfoModel infoModel = new GigInfoModel();
|
|
|
infoModel.setBaseInfo(baseInfoModel);
|