【DAOP-1.0】服务商
【功能点】联调问题处理
Showing
2 changed files
with
30 additions
and
0 deletions
| ... | @@ -86,6 +86,9 @@ public class ServicerMaintainRSVO { | ... | @@ -86,6 +86,9 @@ public class ServicerMaintainRSVO { |
| 86 | /******** 库表存储属性 需处理 *****/ | 86 | /******** 库表存储属性 需处理 *****/ |
| 87 | 87 | ||
| 88 | /******** 自定义扩展 *****/ | 88 | /******** 自定义扩展 *****/ |
| 89 | |||
| 90 | @Schema(description = "企业类型名称") | ||
| 91 | private String tenantTypeName; | ||
| 89 | 92 | ||
| 90 | /** | 93 | /** |
| 91 | * 审批信息 | 94 | * 审批信息 | ... | ... |
| ... | @@ -3,8 +3,10 @@ package com.csbr.qingcloud.portal.service.impl; | ... | @@ -3,8 +3,10 @@ package com.csbr.qingcloud.portal.service.impl; |
| 3 | import com.alibaba.fastjson.JSON; | 3 | import com.alibaba.fastjson.JSON; |
| 4 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 4 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| 5 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | 5 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| 6 | import com.csbr.cloud.common.entity.DictModel; | ||
| 6 | import com.csbr.cloud.common.enums.SystemError; | 7 | import com.csbr.cloud.common.enums.SystemError; |
| 7 | import com.csbr.cloud.common.enums.WorkFlowBizEnum; | 8 | import com.csbr.cloud.common.enums.WorkFlowBizEnum; |
| 9 | import com.csbr.qingcloud.portal.feign.ConfigureFeign; | ||
| 8 | import com.csbr.qingcloud.portal.mybatis.entity.MfServicerMaintainDetail; | 10 | import com.csbr.qingcloud.portal.mybatis.entity.MfServicerMaintainDetail; |
| 9 | import com.csbr.qingcloud.portal.mybatis.service.MfServicerMaintainDetailService; | 11 | import com.csbr.qingcloud.portal.mybatis.service.MfServicerMaintainDetailService; |
| 10 | import csbr.cloud.entity.enums.ApprovalStateEnum; | 12 | import csbr.cloud.entity.enums.ApprovalStateEnum; |
| ... | @@ -71,6 +73,9 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser | ... | @@ -71,6 +73,9 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser |
| 71 | @Resource | 73 | @Resource |
| 72 | private MessageSourceUtil messageSourceUtil; | 74 | private MessageSourceUtil messageSourceUtil; |
| 73 | 75 | ||
| 76 | @Resource | ||
| 77 | private ConfigureFeign configureFeign; | ||
| 78 | |||
| 74 | /** | 79 | /** |
| 75 | * 服务商维护分页查询 | 80 | * 服务商维护分页查询 |
| 76 | * @author xcq | 81 | * @author xcq |
| ... | @@ -530,9 +535,31 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser | ... | @@ -530,9 +535,31 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser |
| 530 | ServicerMaintainRSVO vo = csbrBeanUtil.convert(entity, ServicerMaintainRSVO.class); | 535 | ServicerMaintainRSVO vo = csbrBeanUtil.convert(entity, ServicerMaintainRSVO.class); |
| 531 | //流程数据处理 | 536 | //流程数据处理 |
| 532 | vo.setApproveVO(approvalFlowUtil.getApprovalInfo(entity.getGuid())); | 537 | vo.setApproveVO(approvalFlowUtil.getApprovalInfo(entity.getGuid())); |
| 538 | vo.setTenantTypeName(getTypeName(entity.getTenantType())); | ||
| 533 | return vo; | 539 | return vo; |
| 534 | } | 540 | } |
| 535 | 541 | ||
| 542 | private List<DictModel> dicList = new ArrayList<>(); | ||
| 543 | |||
| 544 | private String getTypeName(String tenantType) { | ||
| 545 | if (CollectionUtils.isEmpty(dicList)) { | ||
| 546 | dicList = configureFeign.getDictListByType("客户类型").getData(); | ||
| 547 | } | ||
| 548 | for(DictModel item : dicList){ | ||
| 549 | if(item.getValue().equals(tenantType)){ | ||
| 550 | return item.getText(); | ||
| 551 | } | ||
| 552 | if(CollectionUtils.isNotEmpty(item.getChildDictList())){ | ||
| 553 | for(DictModel child : item.getChildDictList()){ | ||
| 554 | if(child.getValue().equals(tenantType)){ | ||
| 555 | return child.getText(); | ||
| 556 | } | ||
| 557 | } | ||
| 558 | } | ||
| 559 | } | ||
| 560 | return tenantType; | ||
| 561 | } | ||
| 562 | |||
| 536 | /** | 563 | /** |
| 537 | * 服务商维护新增、修改和其他情况的参数转换为实体 | 564 | * 服务商维护新增、修改和其他情况的参数转换为实体 |
| 538 | * @author xcq | 565 | * @author xcq | ... | ... |
-
Please register or sign in to post a comment