1、企业变更获取已通过审核的企业基础信息
This commit is contained in:
parent
ef81cbfbc5
commit
57cfd04fe8
|
@ -85,7 +85,7 @@ public class EnterpriseInformationController {
|
|||
@Operation(summary = "获得已经通过审核的企业信息分页")
|
||||
@PreAuthorize("@ss.hasPermission('fta:enterprise-information:query')")
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public class CredentialManagementRespVO {
|
|||
|
||||
@Schema(description = "证件类型(0安全员证,1安全负责人证,2危险品证)", example = "2")
|
||||
@ExcelProperty("证件类型(0安全员证,1安全负责人证,2危险品证)")
|
||||
private Boolean idType;
|
||||
private Integer idType;
|
||||
|
||||
@Schema(description = "证书编号")
|
||||
@ExcelProperty("证书编号")
|
||||
|
@ -67,7 +67,7 @@ public class CredentialManagementRespVO {
|
|||
|
||||
@Schema(description = "性别(0男,1女)")
|
||||
@ExcelProperty("性别(0男,1女)")
|
||||
private Boolean sex;
|
||||
private Integer sex;
|
||||
|
||||
@Schema(description = "行业类别")
|
||||
@ExcelProperty("行业类别")
|
||||
|
|
|
@ -23,7 +23,7 @@ public interface CredentialManagementMapper extends BaseMapperX<CredentialManage
|
|||
.eqIfPresent(CredentialManagementDO::getUsefulLife, reqVO.getUsefulLife())
|
||||
.eqIfPresent(CredentialManagementDO::getLicenceIssuingAuthority, reqVO.getLicenceIssuingAuthority())
|
||||
.eqIfPresent(CredentialManagementDO::getDateOfIssue, reqVO.getDateOfIssue())
|
||||
.eqIfPresent(CredentialManagementDO::getStatus, reqVO.getStatus())
|
||||
.eqIfPresent(CredentialManagementDO::getStatus, "已通过审核")
|
||||
.betweenIfPresent(CredentialManagementDO::getCreateTime, reqVO.getCreateTime())
|
||||
.betweenIfPresent(CredentialManagementDO::getExpiryDate,reqVO.getExpiryDate())
|
||||
.eqIfPresent(CredentialManagementDO::getIdType, reqVO.getIdType())
|
||||
|
|
|
@ -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.mysql.enterpriseinformation.CredentialManagementMapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
@ -172,6 +173,9 @@ public class EnterpriseInformationServiceImpl implements EnterpriseInformationSe
|
|||
public void updateEnterpriseInformationStatus(long id, Integer status) {
|
||||
validateLeaveExists(id);
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue