1、企业变更获取已通过审核的企业基础信息

This commit is contained in:
Wayne 2024-05-15 08:32:22 +08:00
parent ef81cbfbc5
commit 57cfd04fe8
4 changed files with 10 additions and 6 deletions

View File

@ -85,7 +85,7 @@ public class EnterpriseInformationController {
@Operation(summary = "获得已经通过审核的企业信息分页") @Operation(summary = "获得已经通过审核的企业信息分页")
@PreAuthorize("@ss.hasPermission('fta:enterprise-information:query')") @PreAuthorize("@ss.hasPermission('fta:enterprise-information:query')")
public CommonResult<PageResult<EnterpriseInformationRespVO>> getEnterpriseInformationPassPage(@Valid EnterpriseInformationPageReqVO pageReqVO) { public CommonResult<PageResult<EnterpriseInformationRespVO>> getEnterpriseInformationPassPage(@Valid EnterpriseInformationPageReqVO pageReqVO) {
PageResult<EnterpriseInformationDO> pageResult = enterpriseInformationService.getEnterpriseInformationPage(pageReqVO); PageResult<EnterpriseInformationDO> pageResult = enterpriseInformationService.getEnterpriseInformationPassPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, EnterpriseInformationRespVO.class)); return success(BeanUtils.toBean(pageResult, EnterpriseInformationRespVO.class));
} }

View File

@ -51,7 +51,7 @@ public class CredentialManagementRespVO {
@Schema(description = "证件类型(0安全员证1安全负责人证2危险品证", example = "2") @Schema(description = "证件类型(0安全员证1安全负责人证2危险品证", example = "2")
@ExcelProperty("证件类型(0安全员证1安全负责人证2危险品证") @ExcelProperty("证件类型(0安全员证1安全负责人证2危险品证")
private Boolean idType; private Integer idType;
@Schema(description = "证书编号") @Schema(description = "证书编号")
@ExcelProperty("证书编号") @ExcelProperty("证书编号")
@ -67,7 +67,7 @@ public class CredentialManagementRespVO {
@Schema(description = "性别(0男1女)") @Schema(description = "性别(0男1女)")
@ExcelProperty("性别(0男1女)") @ExcelProperty("性别(0男1女)")
private Boolean sex; private Integer sex;
@Schema(description = "行业类别") @Schema(description = "行业类别")
@ExcelProperty("行业类别") @ExcelProperty("行业类别")

View File

@ -23,7 +23,7 @@ public interface CredentialManagementMapper extends BaseMapperX<CredentialManage
.eqIfPresent(CredentialManagementDO::getUsefulLife, reqVO.getUsefulLife()) .eqIfPresent(CredentialManagementDO::getUsefulLife, reqVO.getUsefulLife())
.eqIfPresent(CredentialManagementDO::getLicenceIssuingAuthority, reqVO.getLicenceIssuingAuthority()) .eqIfPresent(CredentialManagementDO::getLicenceIssuingAuthority, reqVO.getLicenceIssuingAuthority())
.eqIfPresent(CredentialManagementDO::getDateOfIssue, reqVO.getDateOfIssue()) .eqIfPresent(CredentialManagementDO::getDateOfIssue, reqVO.getDateOfIssue())
.eqIfPresent(CredentialManagementDO::getStatus, reqVO.getStatus()) .eqIfPresent(CredentialManagementDO::getStatus, "已通过审核")
.betweenIfPresent(CredentialManagementDO::getCreateTime, reqVO.getCreateTime()) .betweenIfPresent(CredentialManagementDO::getCreateTime, reqVO.getCreateTime())
.betweenIfPresent(CredentialManagementDO::getExpiryDate,reqVO.getExpiryDate()) .betweenIfPresent(CredentialManagementDO::getExpiryDate,reqVO.getExpiryDate())
.eqIfPresent(CredentialManagementDO::getIdType, reqVO.getIdType()) .eqIfPresent(CredentialManagementDO::getIdType, reqVO.getIdType())

View File

@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.bpm.enums.task.BpmTaskStatusEnum;
import cn.iocoder.yudao.module.fta.dal.dataobject.enterpriseinformation.CredentialManagementDO; import cn.iocoder.yudao.module.fta.dal.dataobject.enterpriseinformation.CredentialManagementDO;
import cn.iocoder.yudao.module.fta.dal.mysql.enterpriseinformation.CredentialManagementMapper; import cn.iocoder.yudao.module.fta.dal.mysql.enterpriseinformation.CredentialManagementMapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
@ -172,6 +173,9 @@ public class EnterpriseInformationServiceImpl implements EnterpriseInformationSe
public void updateEnterpriseInformationStatus(long id, Integer status) { public void updateEnterpriseInformationStatus(long id, Integer status) {
validateLeaveExists(id); validateLeaveExists(id);
enterpriseInformationMapper.updateById(new EnterpriseInformationDO().setId(id).setStatus(status)); enterpriseInformationMapper.updateById(new EnterpriseInformationDO().setId(id).setStatus(status));
LambdaUpdateWrapper<CredentialManagementDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(CredentialManagementDO::getInformationId,id).set(CredentialManagementDO::getStatus,"已通过审核");
credentialManagementMapper.update(updateWrapper);
} }
@Override @Override