Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
ms-data-circulation-portal-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fd0a9575
authored
2025-01-22 09:20:15 +0800
by
肖初晴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【DAOP-1.0】服务商
【功能点】联调问题处理
1 parent
717ab3a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
src/main/java/com/csbr/qingcloud/portal/domain/vo/ServicerMaintainRSVO.java
src/main/java/com/csbr/qingcloud/portal/service/impl/ServicerMaintainServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/domain/vo/ServicerMaintainRSVO.java
View file @
fd0a957
...
...
@@ -86,6 +86,9 @@ public class ServicerMaintainRSVO {
/******** 库表存储属性 需处理 *****/
/******** 自定义扩展 *****/
@Schema
(
description
=
"企业类型名称"
)
private
String
tenantTypeName
;
/**
* 审批信息
...
...
src/main/java/com/csbr/qingcloud/portal/service/impl/ServicerMaintainServiceImpl.java
View file @
fd0a957
...
...
@@ -3,8 +3,10 @@ package com.csbr.qingcloud.portal.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.csbr.cloud.common.entity.DictModel
;
import
com.csbr.cloud.common.enums.SystemError
;
import
com.csbr.cloud.common.enums.WorkFlowBizEnum
;
import
com.csbr.qingcloud.portal.feign.ConfigureFeign
;
import
com.csbr.qingcloud.portal.mybatis.entity.MfServicerMaintainDetail
;
import
com.csbr.qingcloud.portal.mybatis.service.MfServicerMaintainDetailService
;
import
csbr.cloud.entity.enums.ApprovalStateEnum
;
...
...
@@ -71,6 +73,9 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser
@Resource
private
MessageSourceUtil
messageSourceUtil
;
@Resource
private
ConfigureFeign
configureFeign
;
/**
* 服务商维护分页查询
* @author xcq
...
...
@@ -530,9 +535,31 @@ public class ServicerMaintainServiceImpl extends FlowAbstractImpl implements Ser
ServicerMaintainRSVO
vo
=
csbrBeanUtil
.
convert
(
entity
,
ServicerMaintainRSVO
.
class
);
//流程数据处理
vo
.
setApproveVO
(
approvalFlowUtil
.
getApprovalInfo
(
entity
.
getGuid
()));
vo
.
setTenantTypeName
(
getTypeName
(
entity
.
getTenantType
()));
return
vo
;
}
private
List
<
DictModel
>
dicList
=
new
ArrayList
<>();
private
String
getTypeName
(
String
tenantType
)
{
if
(
CollectionUtils
.
isEmpty
(
dicList
))
{
dicList
=
configureFeign
.
getDictListByType
(
"客户类型"
).
getData
();
}
for
(
DictModel
item
:
dicList
){
if
(
item
.
getValue
().
equals
(
tenantType
)){
return
item
.
getText
();
}
if
(
CollectionUtils
.
isNotEmpty
(
item
.
getChildDictList
())){
for
(
DictModel
child
:
item
.
getChildDictList
()){
if
(
child
.
getValue
().
equals
(
tenantType
)){
return
child
.
getText
();
}
}
}
}
return
tenantType
;
}
/**
* 服务商维护新增、修改和其他情况的参数转换为实体
* @author xcq
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment