2be08149 by xiaojie

【数据资产】

企业认证增加字段
1 parent aeda5521
......@@ -137,6 +137,12 @@ public class EnterpriseController {
return CommonRes.success(vo);
}
@GetMapping("/update-identity-state")
@SystemLog(value = "企业信息-修改身份状态")
public CommonRes<Boolean> updateIdentityState(@RequestParam String logonUser, @RequestParam String identityState) {
return CommonRes.success(enterpriseService.updateIdentityState(logonUser, identityState));
}
//endregion
//region 变更申请
......
package com.csbr.qingcloud.portal.domain.vo;
import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.Valid;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
......@@ -183,6 +183,21 @@ public class EnterpriseRQVO extends FlowRQBaseVO {
@Schema(description = "详细地址")
private String detailedAddress;
@Schema(description = "行业分类")
private String industry;
@Schema(description = "行业小类")
private String industrySmallcode;
@Schema(description = "授权方式")
private String authorizationMethod = "2";
@Schema(description = "身份状态")
private String identityState = "N";
@Schema(description = "经办人证件类型")
private String handlePersonIdType;
/******** 库表存储属性 需处理 *****/
/******** 自定义扩展 *****/
......@@ -193,7 +208,6 @@ public class EnterpriseRQVO extends FlowRQBaseVO {
private List<EnterpriseAttachmentRQVO> attachmentRQVOS;
@Schema(description = "开发主体领域信息")
@Valid
private List<EnterpriseDomainRQVO> domainRQVOS;
}
......
package com.csbr.qingcloud.portal.domain.vo;
import com.csbr.cloud.common.annotations.SystemParamsDict;
import io.swagger.v3.oas.annotations.media.Schema;
import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
......@@ -209,6 +210,46 @@ public class EnterpriseRSVO {
@Schema(description = "详细地址")
private String detailedAddress;
@Schema(description = "行业分类")
private String industry;
@Schema(description = "行业分类名称")
@SystemParamsDict(dictTypeName = "行业分类", codeFieldName = "industry")
private String industryName;
@Schema(description = "行业小类")
private String industrySmallcode;
@Schema(description = "行业小类名称")
@SystemParamsDict(dictTypeName = "行业分类", codeFieldName = "industrySmallcode")
private String industrySmallcodeName;
@Schema(description = "认证方式")
private String authenticationMethod;
@Schema(description = "认证状态")
private String authenticationState;
@Schema(description = "认证时间")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date authenticationTime;
@Schema(description = "认证等级")
private String authenticationLevel;
@Schema(description = "身份状态")
private String identityState;
@Schema(description = "授权方式")
private String authorizationMethod;
@Schema(description = "经办人证件类型")
private String handlePersonIdType;
@Schema(description = "经办人证件类型名称")
@SystemParamsDict(dictTypeName = "证件类型", codeFieldName = "handlePersonIdType")
private String handlePersonIdTypeName;
/******** 库表存储属性 需处理 *****/
/******** 自定义扩展 *****/
......
......@@ -192,4 +192,31 @@ public class MfEnterprise extends BaseDO {
@Name("详细地址")
private String detailedAddress;
@Name("行业分类")
private String industry;
@Name("行业小类")
private String industrySmallcode;
@Name("认证方式")
private String authenticationMethod;
@Name("认证状态")
private String authenticationState;
@Name("认证时间")
private Date authenticationTime;
@Name("认证等级")
private String authenticationLevel;
@Name("身份状态")
private String identityState;
@Name("授权方式")
private String authorizationMethod;
@Name("经办人证件类型")
private String handlePersonIdType;
}
......
......@@ -211,4 +211,31 @@ public class MfEnterpriseChangeApprove extends BaseDO {
@Name("详细地址")
private String detailedAddress;
@Name("行业分类")
private String industry;
@Name("行业小类")
private String industrySmallcode;
@Name("认证方式")
private String authenticationMethod;
@Name("认证状态")
private String authenticationState;
@Name("认证时间")
private Date authenticationTime;
@Name("认证等级")
private String authenticationLevel;
@Name("身份状态")
private String identityState;
@Name("授权方式")
private String authorizationMethod;
@Name("经办人证件类型")
private String handlePersonIdType;
}
......
......@@ -120,4 +120,12 @@ public interface EnterpriseService {
* @return
*/
List<EnterpriseRSVO> listByTenantGuids(List<String> guids);
/**
* 企业信息-修改身份状态
* @param logonUser
* @param identityState
* @return
*/
Boolean updateIdentityState(String logonUser, String identityState);
}
......
......@@ -707,6 +707,17 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
return convertToVO(mfEnterprises);
}
@Override
public Boolean updateIdentityState(String logonUser, String identityState) {
if (StringUtils.isEmpty(logonUser) || StringUtils.isEmpty(identityState)) {
return Boolean.TRUE;
}
LambdaUpdateWrapper<MfEnterprise> updateWrapper = Wrappers.lambdaUpdate(MfEnterprise.class);
updateWrapper.eq(MfEnterprise::getLogonUser, logonUser);
updateWrapper.set(MfEnterprise::getIdentityState, identityState);
return mfEnterpriseService.update(updateWrapper);
}
private void afterEnterpriseData(PageListVO<MfEnterprise> enterprisePageListVO, JSExchagePageListVO<JSEnterpriseRSVO> pageListVO) {
pageListVO.setTotal(enterprisePageListVO.getTotalRows().intValue());
List<MfEnterprise> records = enterprisePageListVO.getRecords();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!