【数据资产】
1、认证变更跨平台审批
Showing
4 changed files
with
31 additions
and
3 deletions
... | @@ -210,6 +210,9 @@ public class EnterpriseRSVO { | ... | @@ -210,6 +210,9 @@ public class EnterpriseRSVO { |
210 | 210 | ||
211 | @Schema(description = "变更信息列表") | 211 | @Schema(description = "变更信息列表") |
212 | private List<ChangeInfoVO> changeList; | 212 | private List<ChangeInfoVO> changeList; |
213 | |||
214 | @Schema(description = "变更前信息列表") | ||
215 | private List<ChangeInfoVO> beforeChangeList; | ||
213 | 216 | ||
214 | /******** 子对象 *****/ | 217 | /******** 子对象 *****/ |
215 | 218 | ... | ... |
... | @@ -89,6 +89,8 @@ public interface EnterpriseService { | ... | @@ -89,6 +89,8 @@ public interface EnterpriseService { |
89 | 89 | ||
90 | List<ChangeInfoVO> getChange(String sourceGuid, Date createTime); | 90 | List<ChangeInfoVO> getChange(String sourceGuid, Date createTime); |
91 | 91 | ||
92 | List<ChangeInfoVO> beforeChangeList(Date createTime); | ||
93 | |||
92 | EnterpriseRSVO getEnterpriseDetailByName(String tenantName); | 94 | EnterpriseRSVO getEnterpriseDetailByName(String tenantName); |
93 | 95 | ||
94 | /** 将此账号提交的数据需求迁移到新的企业 */ | 96 | /** 将此账号提交的数据需求迁移到新的企业 */ | ... | ... |
... | @@ -13,6 +13,7 @@ import com.csbr.cloud.common.util.MessageSourceUtil; | ... | @@ -13,6 +13,7 @@ import com.csbr.cloud.common.util.MessageSourceUtil; |
13 | import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO; | 13 | import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO; |
14 | import com.csbr.cloud.workflow.util.ApprovalFlowUtil; | 14 | import com.csbr.cloud.workflow.util.ApprovalFlowUtil; |
15 | import com.csbr.qingcloud.portal.domain.vo.ChangeApproveVO; | 15 | import com.csbr.qingcloud.portal.domain.vo.ChangeApproveVO; |
16 | import com.csbr.qingcloud.portal.domain.vo.ChangeInfoVO; | ||
16 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseRQVO; | 17 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseRQVO; |
17 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseRSVO; | 18 | import com.csbr.qingcloud.portal.domain.vo.EnterpriseRSVO; |
18 | import com.csbr.qingcloud.portal.feign.ConfigureFeign; | 19 | import com.csbr.qingcloud.portal.feign.ConfigureFeign; |
... | @@ -36,9 +37,7 @@ import org.apache.commons.lang3.ObjectUtils; | ... | @@ -36,9 +37,7 @@ import org.apache.commons.lang3.ObjectUtils; |
36 | import org.springframework.beans.factory.annotation.Autowired; | 37 | import org.springframework.beans.factory.annotation.Autowired; |
37 | import org.springframework.stereotype.Component; | 38 | import org.springframework.stereotype.Component; |
38 | 39 | ||
39 | import java.util.Arrays; | 40 | import java.util.*; |
40 | import java.util.Collections; | ||
41 | import java.util.List; | ||
42 | 41 | ||
43 | /** | 42 | /** |
44 | * @program: ms-hc-customer-service | 43 | * @program: ms-hc-customer-service |
... | @@ -303,6 +302,9 @@ public class EnterpriseChangeApproveServiceImpl implements EnterpriseChangeAppro | ... | @@ -303,6 +302,9 @@ public class EnterpriseChangeApproveServiceImpl implements EnterpriseChangeAppro |
303 | 302 | ||
304 | //生成变更信息 | 303 | //生成变更信息 |
305 | vo.setChangeList(enterpriseService.getChange(entity.getSourceGuid(), entity.getCreateTime())); | 304 | vo.setChangeList(enterpriseService.getChange(entity.getSourceGuid(), entity.getCreateTime())); |
305 | |||
306 | // 生成变更前的数据 | ||
307 | vo.setBeforeChangeList(enterpriseService.beforeChangeList(entity.getCreateTime())); | ||
306 | return vo; | 308 | return vo; |
307 | } | 309 | } |
308 | 310 | ... | ... |
... | @@ -224,6 +224,27 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -224,6 +224,27 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
224 | } | 224 | } |
225 | 225 | ||
226 | @Override | 226 | @Override |
227 | public List<ChangeInfoVO> beforeChangeList(Date createTime){ | ||
228 | LambdaQueryWrapper<MfEnterpriseChangeApprove> queryWrapper = new LambdaQueryWrapper<>(); | ||
229 | queryWrapper.eq(MfEnterpriseChangeApprove::getCreateTime, createTime); | ||
230 | queryWrapper.orderByDesc(MfEnterpriseChangeApprove::getCreateTime); | ||
231 | List<MfEnterpriseChangeApprove> approveList = mfEnterpriseChangeApproveService.list(queryWrapper); | ||
232 | if(CollectionUtils.isEmpty(approveList)){ | ||
233 | return new ArrayList<>(); | ||
234 | } | ||
235 | List<EnterpriseServiceImpl.ChangeApproveBean> beanList = getChangeBeanList(approveList); | ||
236 | try { | ||
237 | if(CollectionUtils.isEmpty(ChangeInfoUtil.areaList)){ | ||
238 | ChangeInfoUtil.areaList = configureFeign.getBoroughCodeName().getData(); | ||
239 | } | ||
240 | return ChangeInfoUtil.getChangeList(beanList); | ||
241 | } catch (IllegalAccessException e) { | ||
242 | e.printStackTrace(); | ||
243 | } | ||
244 | return new ArrayList<>(); | ||
245 | } | ||
246 | |||
247 | @Override | ||
227 | public EnterpriseRSVO getEnterpriseDetailByName(String tenantName) { | 248 | public EnterpriseRSVO getEnterpriseDetailByName(String tenantName) { |
228 | LambdaQueryWrapper<MfEnterprise> queryWrapper = new LambdaQueryWrapper<>(); | 249 | LambdaQueryWrapper<MfEnterprise> queryWrapper = new LambdaQueryWrapper<>(); |
229 | queryWrapper.eq(MfEnterprise::getTenantName,tenantName); | 250 | queryWrapper.eq(MfEnterprise::getTenantName,tenantName); | ... | ... |
-
Please register or sign in to post a comment