【数据资产】
企业认证增加字段
Showing
7 changed files
with
139 additions
and
5 deletions
| ... | @@ -136,6 +136,12 @@ public class EnterpriseController { | ... | @@ -136,6 +136,12 @@ public class EnterpriseController { |
| 136 | List<EnterpriseRSVO> vo = enterpriseService.listByTenantGuids(guids); | 136 | List<EnterpriseRSVO> vo = enterpriseService.listByTenantGuids(guids); |
| 137 | return CommonRes.success(vo); | 137 | return CommonRes.success(vo); |
| 138 | } | 138 | } |
| 139 | |||
| 140 | @GetMapping("/update-identity-state") | ||
| 141 | @SystemLog(value = "企业信息-修改身份状态") | ||
| 142 | public CommonRes<Boolean> updateIdentityState(@RequestParam String logonUser, @RequestParam String identityState) { | ||
| 143 | return CommonRes.success(enterpriseService.updateIdentityState(logonUser, identityState)); | ||
| 144 | } | ||
| 139 | 145 | ||
| 140 | //endregion | 146 | //endregion |
| 141 | 147 | ... | ... |
| 1 | package com.csbr.qingcloud.portal.domain.vo; | 1 | package com.csbr.qingcloud.portal.domain.vo; |
| 2 | 2 | ||
| 3 | import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO; | 3 | import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO; |
| 4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
| 5 | import com.fasterxml.jackson.annotation.JsonFormat; | 4 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 6 | import jakarta.validation.Valid; | 5 | import io.swagger.v3.oas.annotations.media.Schema; |
| 7 | import lombok.Data; | 6 | import lombok.Data; |
| 7 | |||
| 8 | import java.math.BigDecimal; | 8 | import java.math.BigDecimal; |
| 9 | import java.util.Date; | 9 | import java.util.Date; |
| 10 | import java.util.List; | 10 | import java.util.List; |
| ... | @@ -183,6 +183,21 @@ public class EnterpriseRQVO extends FlowRQBaseVO { | ... | @@ -183,6 +183,21 @@ public class EnterpriseRQVO extends FlowRQBaseVO { |
| 183 | @Schema(description = "详细地址") | 183 | @Schema(description = "详细地址") |
| 184 | private String detailedAddress; | 184 | private String detailedAddress; |
| 185 | 185 | ||
| 186 | @Schema(description = "行业分类") | ||
| 187 | private String industry; | ||
| 188 | |||
| 189 | @Schema(description = "行业小类") | ||
| 190 | private String industrySmallcode; | ||
| 191 | |||
| 192 | @Schema(description = "授权方式") | ||
| 193 | private String authorizationMethod = "2"; | ||
| 194 | |||
| 195 | @Schema(description = "身份状态") | ||
| 196 | private String identityState = "N"; | ||
| 197 | |||
| 198 | @Schema(description = "经办人证件类型") | ||
| 199 | private String handlePersonIdType; | ||
| 200 | |||
| 186 | /******** 库表存储属性 需处理 *****/ | 201 | /******** 库表存储属性 需处理 *****/ |
| 187 | 202 | ||
| 188 | /******** 自定义扩展 *****/ | 203 | /******** 自定义扩展 *****/ |
| ... | @@ -193,7 +208,6 @@ public class EnterpriseRQVO extends FlowRQBaseVO { | ... | @@ -193,7 +208,6 @@ public class EnterpriseRQVO extends FlowRQBaseVO { |
| 193 | private List<EnterpriseAttachmentRQVO> attachmentRQVOS; | 208 | private List<EnterpriseAttachmentRQVO> attachmentRQVOS; |
| 194 | 209 | ||
| 195 | @Schema(description = "开发主体领域信息") | 210 | @Schema(description = "开发主体领域信息") |
| 196 | @Valid | ||
| 197 | private List<EnterpriseDomainRQVO> domainRQVOS; | 211 | private List<EnterpriseDomainRQVO> domainRQVOS; |
| 198 | 212 | ||
| 199 | } | 213 | } | ... | ... |
| 1 | package com.csbr.qingcloud.portal.domain.vo; | 1 | package com.csbr.qingcloud.portal.domain.vo; |
| 2 | 2 | ||
| 3 | import com.csbr.cloud.common.annotations.SystemParamsDict; | 3 | import com.csbr.cloud.common.annotations.SystemParamsDict; |
| 4 | import io.swagger.v3.oas.annotations.media.Schema; | 4 | import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO; |
| 5 | import com.fasterxml.jackson.annotation.JsonFormat; | 5 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 6 | import io.swagger.v3.oas.annotations.media.Schema; | ||
| 6 | import lombok.Data; | 7 | import lombok.Data; |
| 7 | import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO; | 8 | |
| 8 | import java.math.BigDecimal; | 9 | import java.math.BigDecimal; |
| 9 | import java.util.Date; | 10 | import java.util.Date; |
| 10 | import java.util.List; | 11 | import java.util.List; |
| ... | @@ -209,6 +210,46 @@ public class EnterpriseRSVO { | ... | @@ -209,6 +210,46 @@ public class EnterpriseRSVO { |
| 209 | @Schema(description = "详细地址") | 210 | @Schema(description = "详细地址") |
| 210 | private String detailedAddress; | 211 | private String detailedAddress; |
| 211 | 212 | ||
| 213 | @Schema(description = "行业分类") | ||
| 214 | private String industry; | ||
| 215 | |||
| 216 | @Schema(description = "行业分类名称") | ||
| 217 | @SystemParamsDict(dictTypeName = "行业分类", codeFieldName = "industry") | ||
| 218 | private String industryName; | ||
| 219 | |||
| 220 | @Schema(description = "行业小类") | ||
| 221 | private String industrySmallcode; | ||
| 222 | |||
| 223 | @Schema(description = "行业小类名称") | ||
| 224 | @SystemParamsDict(dictTypeName = "行业分类", codeFieldName = "industrySmallcode") | ||
| 225 | private String industrySmallcodeName; | ||
| 226 | |||
| 227 | @Schema(description = "认证方式") | ||
| 228 | private String authenticationMethod; | ||
| 229 | |||
| 230 | @Schema(description = "认证状态") | ||
| 231 | private String authenticationState; | ||
| 232 | |||
| 233 | @Schema(description = "认证时间") | ||
| 234 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
| 235 | private Date authenticationTime; | ||
| 236 | |||
| 237 | @Schema(description = "认证等级") | ||
| 238 | private String authenticationLevel; | ||
| 239 | |||
| 240 | @Schema(description = "身份状态") | ||
| 241 | private String identityState; | ||
| 242 | |||
| 243 | @Schema(description = "授权方式") | ||
| 244 | private String authorizationMethod; | ||
| 245 | |||
| 246 | @Schema(description = "经办人证件类型") | ||
| 247 | private String handlePersonIdType; | ||
| 248 | |||
| 249 | @Schema(description = "经办人证件类型名称") | ||
| 250 | @SystemParamsDict(dictTypeName = "证件类型", codeFieldName = "handlePersonIdType") | ||
| 251 | private String handlePersonIdTypeName; | ||
| 252 | |||
| 212 | /******** 库表存储属性 需处理 *****/ | 253 | /******** 库表存储属性 需处理 *****/ |
| 213 | 254 | ||
| 214 | /******** 自定义扩展 *****/ | 255 | /******** 自定义扩展 *****/ | ... | ... |
| ... | @@ -192,4 +192,31 @@ public class MfEnterprise extends BaseDO { | ... | @@ -192,4 +192,31 @@ public class MfEnterprise extends BaseDO { |
| 192 | 192 | ||
| 193 | @Name("详细地址") | 193 | @Name("详细地址") |
| 194 | private String detailedAddress; | 194 | private String detailedAddress; |
| 195 | |||
| 196 | @Name("行业分类") | ||
| 197 | private String industry; | ||
| 198 | |||
| 199 | @Name("行业小类") | ||
| 200 | private String industrySmallcode; | ||
| 201 | |||
| 202 | @Name("认证方式") | ||
| 203 | private String authenticationMethod; | ||
| 204 | |||
| 205 | @Name("认证状态") | ||
| 206 | private String authenticationState; | ||
| 207 | |||
| 208 | @Name("认证时间") | ||
| 209 | private Date authenticationTime; | ||
| 210 | |||
| 211 | @Name("认证等级") | ||
| 212 | private String authenticationLevel; | ||
| 213 | |||
| 214 | @Name("身份状态") | ||
| 215 | private String identityState; | ||
| 216 | |||
| 217 | @Name("授权方式") | ||
| 218 | private String authorizationMethod; | ||
| 219 | |||
| 220 | @Name("经办人证件类型") | ||
| 221 | private String handlePersonIdType; | ||
| 195 | } | 222 | } | ... | ... |
| ... | @@ -211,4 +211,31 @@ public class MfEnterpriseChangeApprove extends BaseDO { | ... | @@ -211,4 +211,31 @@ public class MfEnterpriseChangeApprove extends BaseDO { |
| 211 | @Name("详细地址") | 211 | @Name("详细地址") |
| 212 | private String detailedAddress; | 212 | private String detailedAddress; |
| 213 | 213 | ||
| 214 | @Name("行业分类") | ||
| 215 | private String industry; | ||
| 216 | |||
| 217 | @Name("行业小类") | ||
| 218 | private String industrySmallcode; | ||
| 219 | |||
| 220 | @Name("认证方式") | ||
| 221 | private String authenticationMethod; | ||
| 222 | |||
| 223 | @Name("认证状态") | ||
| 224 | private String authenticationState; | ||
| 225 | |||
| 226 | @Name("认证时间") | ||
| 227 | private Date authenticationTime; | ||
| 228 | |||
| 229 | @Name("认证等级") | ||
| 230 | private String authenticationLevel; | ||
| 231 | |||
| 232 | @Name("身份状态") | ||
| 233 | private String identityState; | ||
| 234 | |||
| 235 | @Name("授权方式") | ||
| 236 | private String authorizationMethod; | ||
| 237 | |||
| 238 | @Name("经办人证件类型") | ||
| 239 | private String handlePersonIdType; | ||
| 240 | |||
| 214 | } | 241 | } | ... | ... |
| ... | @@ -120,4 +120,12 @@ public interface EnterpriseService { | ... | @@ -120,4 +120,12 @@ public interface EnterpriseService { |
| 120 | * @return | 120 | * @return |
| 121 | */ | 121 | */ |
| 122 | List<EnterpriseRSVO> listByTenantGuids(List<String> guids); | 122 | List<EnterpriseRSVO> listByTenantGuids(List<String> guids); |
| 123 | |||
| 124 | /** | ||
| 125 | * 企业信息-修改身份状态 | ||
| 126 | * @param logonUser | ||
| 127 | * @param identityState | ||
| 128 | * @return | ||
| 129 | */ | ||
| 130 | Boolean updateIdentityState(String logonUser, String identityState); | ||
| 123 | } | 131 | } | ... | ... |
| ... | @@ -707,6 +707,17 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -707,6 +707,17 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 707 | return convertToVO(mfEnterprises); | 707 | return convertToVO(mfEnterprises); |
| 708 | } | 708 | } |
| 709 | 709 | ||
| 710 | @Override | ||
| 711 | public Boolean updateIdentityState(String logonUser, String identityState) { | ||
| 712 | if (StringUtils.isEmpty(logonUser) || StringUtils.isEmpty(identityState)) { | ||
| 713 | return Boolean.TRUE; | ||
| 714 | } | ||
| 715 | LambdaUpdateWrapper<MfEnterprise> updateWrapper = Wrappers.lambdaUpdate(MfEnterprise.class); | ||
| 716 | updateWrapper.eq(MfEnterprise::getLogonUser, logonUser); | ||
| 717 | updateWrapper.set(MfEnterprise::getIdentityState, identityState); | ||
| 718 | return mfEnterpriseService.update(updateWrapper); | ||
| 719 | } | ||
| 720 | |||
| 710 | private void afterEnterpriseData(PageListVO<MfEnterprise> enterprisePageListVO, JSExchagePageListVO<JSEnterpriseRSVO> pageListVO) { | 721 | private void afterEnterpriseData(PageListVO<MfEnterprise> enterprisePageListVO, JSExchagePageListVO<JSEnterpriseRSVO> pageListVO) { |
| 711 | pageListVO.setTotal(enterprisePageListVO.getTotalRows().intValue()); | 722 | pageListVO.setTotal(enterprisePageListVO.getTotalRows().intValue()); |
| 712 | List<MfEnterprise> records = enterprisePageListVO.getRecords(); | 723 | List<MfEnterprise> records = enterprisePageListVO.getRecords(); | ... | ... |
-
Please register or sign in to post a comment