parent
c0a03e6735
commit
d41bbb6ffb
|
|
@ -82,5 +82,11 @@ public class CorpCertificateController {
|
||||||
return corpCertificateService.statPage(qry);
|
return corpCertificateService.statPage(qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("判断证书编号是否存在")
|
||||||
|
@GetMapping("/isExistCertNo")
|
||||||
|
public SingleResponse<Boolean> isExistCertNo(@RequestParam(value = "certNo") String certNo) {
|
||||||
|
return SingleResponse.of(corpCertificateService.isExistCertNo(certNo));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,5 +93,11 @@ public class UserCertificateController {
|
||||||
public PageResponse<UserCertificateStatCO> corpCertificateStatPage(@RequestBody CorpCertificateStatPageQry qry) {
|
public PageResponse<UserCertificateStatCO> corpCertificateStatPage(@RequestBody CorpCertificateStatPageQry qry) {
|
||||||
return userCertificateService.corpCertificateStatPage(qry);
|
return userCertificateService.corpCertificateStatPage(qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("判断证件编号是否已存在")
|
||||||
|
@GetMapping("/isExistCertNo")
|
||||||
|
public SingleResponse<Boolean> isExistCertNo(@RequestParam(value = "certNo") String certNo) {
|
||||||
|
return SingleResponse.of(userCertificateService.isExistCertNo(certNo));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.zcloud.certificate.command.query;
|
package com.zcloud.certificate.command.query;
|
||||||
|
|
||||||
import com.alibaba.cola.dto.MultiResponse;
|
import com.alibaba.cola.dto.MultiResponse;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||||
import com.zcloud.certificate.command.convertor.CorpCertificateCoConvertor;
|
import com.zcloud.certificate.command.convertor.CorpCertificateCoConvertor;
|
||||||
|
|
@ -75,6 +76,14 @@ public class CorpCertificateQueryExe {
|
||||||
return PageResponse.of(cos, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
return PageResponse.of(cos, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 判断证书编号是否存在
|
||||||
|
*/
|
||||||
|
public boolean checkCertNoExist(String certNo) {
|
||||||
|
return corpCertificateRepository.count(new LambdaQueryWrapper<CorpCertificateDO>()
|
||||||
|
.eq(CorpCertificateDO::getCertificateCode, certNo)) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
package com.zcloud.certificate.command.query;
|
package com.zcloud.certificate.command.query;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||||
import com.zcloud.certificate.command.convertor.UserCertificateCoConvertor;
|
import com.zcloud.certificate.command.convertor.UserCertificateCoConvertor;
|
||||||
|
|
@ -127,6 +129,15 @@ public class UserCertificateQueryExe {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询证书编号是否存在
|
||||||
|
*/
|
||||||
|
public boolean checkCertNoExist(String certNo) {
|
||||||
|
return userCertificateRepository.count(new LambdaQueryWrapper<UserCertificateDO>()
|
||||||
|
.eq(UserCertificateDO::getCertificateCode, certNo)
|
||||||
|
) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,5 +69,10 @@ public class CorpCertificateServiceImpl implements CorpCertificateServiceI {
|
||||||
public PageResponse<CertificateStatisticsCO> statPage(CorpCertificateStatPageQry qry) {
|
public PageResponse<CertificateStatisticsCO> statPage(CorpCertificateStatPageQry qry) {
|
||||||
return corpCertificateQueryExe.statPage(qry);
|
return corpCertificateQueryExe.statPage(qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isExistCertNo(String certNo) {
|
||||||
|
return corpCertificateQueryExe.checkCertNoExist(certNo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,5 +75,10 @@ public class UserCertificateServiceImpl implements UserCertificateServiceI {
|
||||||
public List<UserCertificateCO> listAll(UserCertificatePageQry qry) {
|
public List<UserCertificateCO> listAll(UserCertificatePageQry qry) {
|
||||||
return userCertificateQueryExe.listAll(qry);
|
return userCertificateQueryExe.listAll(qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isExistCertNo(String certNo) {
|
||||||
|
return userCertificateQueryExe.checkCertNoExist(certNo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,5 +33,10 @@ public interface CorpCertificateServiceI {
|
||||||
* 股份端查看分公司证照统计信息
|
* 股份端查看分公司证照统计信息
|
||||||
*/
|
*/
|
||||||
PageResponse<CertificateStatisticsCO> statPage(CorpCertificateStatPageQry qry);
|
PageResponse<CertificateStatisticsCO> statPage(CorpCertificateStatPageQry qry);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 判断证书编号是否存在
|
||||||
|
*/
|
||||||
|
boolean isExistCertNo(String certNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,5 +39,10 @@ public interface UserCertificateServiceI {
|
||||||
* 查询所有人员证照
|
* 查询所有人员证照
|
||||||
*/
|
*/
|
||||||
List<UserCertificateCO> listAll(UserCertificatePageQry qry);
|
List<UserCertificateCO> listAll(UserCertificatePageQry qry);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询证书编号是否存在
|
||||||
|
*/
|
||||||
|
boolean isExistCertNo(String certNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,9 @@ public class UserCertificateCO extends ClientObject {
|
||||||
@ApiModelProperty(value = "企业名称")
|
@ApiModelProperty(value = "企业名称")
|
||||||
private String corpinfoName;
|
private String corpinfoName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "人员岗位名称")
|
||||||
|
private String userPostName;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,9 @@ public class UserCertificateE extends BaseE {
|
||||||
//企业名称
|
//企业名称
|
||||||
private String corpinfoName;
|
private String corpinfoName;
|
||||||
|
|
||||||
|
//人员岗位名称
|
||||||
|
private String userPostName;
|
||||||
|
|
||||||
public void attach(UserBasicInfo userBasicInfo) {
|
public void attach(UserBasicInfo userBasicInfo) {
|
||||||
if (userBasicInfo == null) return;
|
if (userBasicInfo == null) return;
|
||||||
this.userName = userBasicInfo.getUserName();
|
this.userName = userBasicInfo.getUserName();
|
||||||
|
|
@ -76,6 +79,7 @@ public class UserCertificateE extends BaseE {
|
||||||
this.employmentStatus = userBasicInfo.getEmploymentStatus();
|
this.employmentStatus = userBasicInfo.getEmploymentStatus();
|
||||||
this.departmentName = userBasicInfo.getDepartmentName();
|
this.departmentName = userBasicInfo.getDepartmentName();
|
||||||
this.corpinfoName = userBasicInfo.getCorpinfoName();
|
this.corpinfoName = userBasicInfo.getCorpinfoName();
|
||||||
|
this.userPostName = userBasicInfo.getPostName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void corpUserInfo(SSOUser ssoUser) {
|
public void corpUserInfo(SSOUser ssoUser) {
|
||||||
|
|
|
||||||
|
|
@ -41,5 +41,7 @@ public interface UserCertificateRepository extends BaseRepository<UserCertificat
|
||||||
* 查询所有人员证照
|
* 查询所有人员证照
|
||||||
*/
|
*/
|
||||||
List<UserCertificateDO> listAll(Map<String, Object> params);
|
List<UserCertificateDO> listAll(Map<String, Object> params);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,5 +72,6 @@ public class UserCertificateRepositoryImpl extends BaseRepositoryImpl<UserCertif
|
||||||
List<UserCertificateDO> result = userCertificateMapper.selectList(queryWrapper);
|
List<UserCertificateDO> result = userCertificateMapper.selectList(queryWrapper);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@
|
||||||
u.name AS name,
|
u.name AS name,
|
||||||
d.name AS departmentName,
|
d.name AS departmentName,
|
||||||
p.corpinfo_name AS corpinfoName,
|
p.corpinfo_name AS corpinfoName,
|
||||||
p.post_name AS postName,
|
COALESCE(NULLIF(u.post_name, ''), p.post_name) AS postName,
|
||||||
u.employment_flag AS employmentStatus
|
u.employment_flag AS employmentStatus
|
||||||
FROM
|
FROM
|
||||||
user u
|
user u
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue