【数据资产】
企业认证修改
Showing
3 changed files
with
40 additions
and
7 deletions
| ... | @@ -227,6 +227,10 @@ public class EnterpriseRSVO { | ... | @@ -227,6 +227,10 @@ public class EnterpriseRSVO { |
| 227 | @Schema(description = "认证方式") | 227 | @Schema(description = "认证方式") |
| 228 | private String authenticationMethod; | 228 | private String authenticationMethod; |
| 229 | 229 | ||
| 230 | @Schema(description = "认证方式名称") | ||
| 231 | @SystemParamsDict(dictTypeName = "认证方式", codeFieldName = "authenticationMethod") | ||
| 232 | private String authenticationMethodName; | ||
| 233 | |||
| 230 | @Schema(description = "认证状态") | 234 | @Schema(description = "认证状态") |
| 231 | private String authenticationState; | 235 | private String authenticationState; |
| 232 | 236 | ||
| ... | @@ -237,12 +241,24 @@ public class EnterpriseRSVO { | ... | @@ -237,12 +241,24 @@ public class EnterpriseRSVO { |
| 237 | @Schema(description = "认证等级") | 241 | @Schema(description = "认证等级") |
| 238 | private String authenticationLevel; | 242 | private String authenticationLevel; |
| 239 | 243 | ||
| 244 | @Schema(description = "认证等级名称") | ||
| 245 | @SystemParamsDict(dictTypeName = "认证等级", codeFieldName = "authenticationLevel") | ||
| 246 | private String authenticationLevelName; | ||
| 247 | |||
| 240 | @Schema(description = "身份状态") | 248 | @Schema(description = "身份状态") |
| 241 | private String identityState; | 249 | private String identityState; |
| 242 | 250 | ||
| 251 | @Schema(description = "身份状态名称") | ||
| 252 | @SystemParamsDict(dictTypeName = "身份状态", codeFieldName = "identityState") | ||
| 253 | private String identityStateName; | ||
| 254 | |||
| 243 | @Schema(description = "授权方式") | 255 | @Schema(description = "授权方式") |
| 244 | private String authorizationMethod; | 256 | private String authorizationMethod; |
| 245 | 257 | ||
| 258 | @Schema(description = "授权方式名称") | ||
| 259 | @SystemParamsDict(dictTypeName = "授权方式", codeFieldName = "authorizationMethod") | ||
| 260 | private String authorizationMethodName; | ||
| 261 | |||
| 246 | @Schema(description = "经办人证件类型") | 262 | @Schema(description = "经办人证件类型") |
| 247 | private String handlePersonIdType; | 263 | private String handlePersonIdType; |
| 248 | 264 | ... | ... |
| ... | @@ -306,7 +306,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -306,7 +306,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 306 | * @param flowBaseVO | 306 | * @param flowBaseVO |
| 307 | * @return void | 307 | * @return void |
| 308 | */ | 308 | */ |
| 309 | // @GlobalTransactional(rollbackFor = Exception.class) | 309 | @GlobalTransactional(rollbackFor = Exception.class) |
| 310 | @Transactional(rollbackFor = Exception.class) | 310 | @Transactional(rollbackFor = Exception.class) |
| 311 | @Override | 311 | @Override |
| 312 | public void saveEnterprise(FlowRQBaseVO flowBaseVO) { | 312 | public void saveEnterprise(FlowRQBaseVO flowBaseVO) { |
| ... | @@ -332,7 +332,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -332,7 +332,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 332 | * @param flowBaseVO | 332 | * @param flowBaseVO |
| 333 | * @return void | 333 | * @return void |
| 334 | */ | 334 | */ |
| 335 | // @GlobalTransactional(rollbackFor = Exception.class) | 335 | @GlobalTransactional(rollbackFor = Exception.class) |
| 336 | @Transactional(rollbackFor = Exception.class) | 336 | @Transactional(rollbackFor = Exception.class) |
| 337 | @Override | 337 | @Override |
| 338 | public void updateEnterprise(FlowRQBaseVO flowBaseVO) { | 338 | public void updateEnterprise(FlowRQBaseVO flowBaseVO) { | ... | ... |
| 1 | package com.csbr.qingcloud.portal.util; | 1 | package com.csbr.qingcloud.portal.util; |
| 2 | 2 | ||
| 3 | import com.csbr.cloud.common.util.CommonUtil; | 3 | import com.csbr.cloud.common.util.CommonUtil; |
| 4 | import com.csbr.cloud.common.util.CsbrBeanUtil; | ||
| 5 | import com.csbr.qingcloud.portal.domain.vo.BoroughPOJO; | 4 | import com.csbr.qingcloud.portal.domain.vo.BoroughPOJO; |
| 6 | import com.csbr.qingcloud.portal.domain.vo.ChangeInfoVO; | 5 | import com.csbr.qingcloud.portal.domain.vo.ChangeInfoVO; |
| 7 | import com.csbr.qingcloud.portal.domain.vo.CompareResult; | 6 | import com.csbr.qingcloud.portal.domain.vo.CompareResult; |
| 8 | import com.csbr.qingcloud.portal.feign.ConfigureFeign; | ||
| 9 | import com.csbr.qingcloud.portal.service.impl.EnterpriseServiceImpl; | 7 | import com.csbr.qingcloud.portal.service.impl.EnterpriseServiceImpl; |
| 10 | import jakarta.annotation.Resource; | ||
| 11 | import org.apache.commons.collections.CollectionUtils; | 8 | import org.apache.commons.collections.CollectionUtils; |
| 9 | import org.apache.commons.lang3.ObjectUtils; | ||
| 12 | import org.apache.commons.lang3.StringUtils; | 10 | import org.apache.commons.lang3.StringUtils; |
| 13 | import org.springframework.stereotype.Component; | 11 | import org.springframework.stereotype.Component; |
| 14 | 12 | ||
| ... | @@ -35,6 +33,7 @@ public class ChangeInfoUtil { | ... | @@ -35,6 +33,7 @@ public class ChangeInfoUtil { |
| 35 | } | 33 | } |
| 36 | List<CompareResult> diffList = ObjectUtil.getBeanDiff(item.oldBean,item.newBean); | 34 | List<CompareResult> diffList = ObjectUtil.getBeanDiff(item.oldBean,item.newBean); |
| 37 | getVenueResult(item,list); | 35 | getVenueResult(item,list); |
| 36 | getStartTimeResult(item,list); | ||
| 38 | getStartEndResult(item,list); | 37 | getStartEndResult(item,list); |
| 39 | getRegistrationDateResult(item,list); | 38 | getRegistrationDateResult(item,list); |
| 40 | getRegisteredCapitalResult(item,list); | 39 | getRegisteredCapitalResult(item,list); |
| ... | @@ -109,9 +108,17 @@ public class ChangeInfoUtil { | ... | @@ -109,9 +108,17 @@ public class ChangeInfoUtil { |
| 109 | return result; | 108 | return result; |
| 110 | } | 109 | } |
| 111 | 110 | ||
| 111 | public static void getStartTimeResult(EnterpriseServiceImpl.ChangeApproveBean item, List<ChangeInfoVO> list) { | ||
| 112 | String oldValue = DateUtil.getShortDateToString(item.oldBean.getBusinessLicenseStartDate()); | ||
| 113 | String newValue = DateUtil.getShortDateToString(item.newBean.getBusinessLicenseStartDate()); | ||
| 114 | if(!oldValue.equals(newValue)){ | ||
| 115 | list.add(getChangeInfoVO(item,getCompareResult("营业开始日期","businessLicenseStartDate",oldValue,newValue))); | ||
| 116 | } | ||
| 117 | } | ||
| 118 | |||
| 112 | public static void getStartEndResult(EnterpriseServiceImpl.ChangeApproveBean item, List<ChangeInfoVO> list) { | 119 | public static void getStartEndResult(EnterpriseServiceImpl.ChangeApproveBean item, List<ChangeInfoVO> list) { |
| 113 | String oldValue = getStartEnd(item.oldBean.getBusinessLicenseTerm(),item.oldBean.getBusinessLicenseStartDate(),item.oldBean.getBusinessLicenseEndDate()); | 120 | String oldValue = getDurationOrEnd(item.oldBean.getBusinessLicenseTerm(),item.oldBean.getBusinessLicenseStartDate(),item.oldBean.getBusinessLicenseEndDate()); |
| 114 | String newValue = getStartEnd(item.newBean.getBusinessLicenseTerm(),item.newBean.getBusinessLicenseStartDate(),item.newBean.getBusinessLicenseEndDate()); | 121 | String newValue = getDurationOrEnd(item.newBean.getBusinessLicenseTerm(),item.newBean.getBusinessLicenseStartDate(),item.newBean.getBusinessLicenseEndDate()); |
| 115 | if(!oldValue.equals(newValue)){ | 122 | if(!oldValue.equals(newValue)){ |
| 116 | list.add(getChangeInfoVO(item,getCompareResult("营业期限","businessLicenseStartEnd",oldValue,newValue))); | 123 | list.add(getChangeInfoVO(item,getCompareResult("营业期限","businessLicenseStartEnd",oldValue,newValue))); |
| 117 | } | 124 | } |
| ... | @@ -142,4 +149,14 @@ public class ChangeInfoUtil { | ... | @@ -142,4 +149,14 @@ public class ChangeInfoUtil { |
| 142 | return String.format("%s至%s",DateUtil.getShortDateToString(businessLicenseStartDate),DateUtil.getShortDateToString(businessLicenseEndDate)); | 149 | return String.format("%s至%s",DateUtil.getShortDateToString(businessLicenseStartDate),DateUtil.getShortDateToString(businessLicenseEndDate)); |
| 143 | } | 150 | } |
| 144 | 151 | ||
| 152 | public static String getDurationOrEnd(String businessLicenseTerm, Date businessLicenseStartDate, Date businessLicenseEndDate) { | ||
| 153 | if("1".equals(businessLicenseTerm)){ | ||
| 154 | return "长期有效"; | ||
| 155 | } | ||
| 156 | if(ObjectUtils.isNotEmpty(businessLicenseEndDate)){ | ||
| 157 | return DateUtil.getShortDateToString(businessLicenseEndDate); | ||
| 158 | } | ||
| 159 | return String.format("%s至%s",DateUtil.getShortDateToString(businessLicenseStartDate),DateUtil.getShortDateToString(businessLicenseEndDate)); | ||
| 160 | } | ||
| 161 | |||
| 145 | } | 162 | } | ... | ... |
-
Please register or sign in to post a comment