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
81d2167b
authored
2025-09-19 11:18:07 +0800
by
xiaojie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【数据资产】
查询企业认证附件和领域
1 parent
6e103bc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
140 additions
and
0 deletions
src/main/java/com/csbr/qingcloud/portal/domain/vo/DataDictDetailVO.java
src/main/java/com/csbr/qingcloud/portal/domain/vo/DataDictVO.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/domain/vo/DataDictDetailVO.java
0 → 100644
View file @
81d2167
package
com
.
csbr
.
qingcloud
.
portal
.
domain
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
/**
* @program: ms-zcgl-system-manager-service
* @description: TODO
* @author: lixiang
* @create: 2023-10-19 16:28
**/
@Data
public
class
DataDictDetailVO
{
/** 系统唯一标识 */
@Schema
(
title
=
"系统唯一标识"
)
private
String
guid
;
/** 参数名称 */
@Schema
(
title
=
"参数名称"
)
private
String
paramName
;
/** 参数编码 */
@Schema
(
title
=
"参数编码"
)
private
String
paramCode
;
/** 参数类型(用途归类) */
@Schema
(
title
=
"参数类型(用途归类)"
)
private
String
paramType
;
/** 参数值 */
@Schema
(
title
=
"参数值"
)
private
String
paramValue
;
/** 排序 */
@Schema
(
title
=
"排序"
)
private
Integer
orderNum
;
}
src/main/java/com/csbr/qingcloud/portal/domain/vo/DataDictVO.java
0 → 100644
View file @
81d2167
package
com
.
csbr
.
qingcloud
.
portal
.
domain
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.util.List
;
/**
* @program: @program:
* @description: 数据字典返回对象
* @author: csbrAuthor
* @create: 2023-08-25
**/
@Data
@Schema
(
title
=
"数据字典返回对象"
)
public
class
DataDictVO
{
/** 系统唯一标识 */
@Schema
(
title
=
"系统唯一标识"
)
private
String
guid
;
/** 参数类型(用途归类) */
@Schema
(
title
=
"参数类型(用途归类)"
)
private
String
paramType
;
/** 参数编码 */
@Schema
(
title
=
"参数编码"
)
private
String
paramCode
;
/** 参数名称 */
@Schema
(
title
=
"参数名称"
)
private
String
paramName
;
/** 描述 */
@Schema
(
title
=
"描述"
)
private
String
remarks
;
/** 参数值 */
@Schema
(
title
=
"参数值"
)
private
String
paramValue
;
/** 排序 */
@Schema
(
title
=
"排序"
)
private
Integer
orderNum
;
/** 修改姓名 */
@Schema
(
title
=
"修改姓名"
)
private
String
updateUserName
;
/** 修改时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Schema
(
title
=
"修改时间"
)
private
String
updateTime
;
@Schema
(
title
=
"系统参数子明细"
)
List
<
DataDictDetailVO
>
detailVOList
;
}
\ No newline at end of file
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
View file @
81d2167
...
...
@@ -6,6 +6,8 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.csbr.cloud.common.entity.DictModel
;
import
com.csbr.cloud.common.enums.RedisKeyEnum
;
import
com.csbr.cloud.common.enums.SystemError
;
import
com.csbr.cloud.common.enums.WorkFlowBizEnum
;
import
com.csbr.cloud.common.exception.CsbrSystemException
;
...
...
@@ -784,6 +786,23 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
check
(
rqVO
);
//endregion
// 校验附加信息
List
<
EnterpriseAttachmentRQVO
>
attachmentRQVOS
=
rqVO
.
getAttachmentRQVOS
();
if
(
ObjectUtils
.
isNotEmpty
(
attachmentRQVOS
))
{
List
<
DataDictVO
>
dataDictVOS
=
getSystemParamsList
(
"开发主体附件类型"
);
Map
<
String
,
String
>
dataDictMap
=
new
HashMap
<>();
if
(
ObjectUtils
.
isNotEmpty
(
dataDictVOS
))
{
dataDictMap
=
dataDictVOS
.
stream
().
collect
(
Collectors
.
toMap
(
DataDictVO:
:
getParamValue
,
DataDictVO:
:
getParamName
));
}
for
(
EnterpriseAttachmentRQVO
attachmentRQVO
:
attachmentRQVOS
)
{
if
(
StringUtils
.
isNotEmpty
(
attachmentRQVO
.
getFileName
())
&&
attachmentRQVO
.
getFileName
().
length
()
>
100
)
{
String
fileType
=
""
;
if
(
ObjectUtils
.
isNotEmpty
(
dataDictMap
)
&&
dataDictMap
.
containsKey
(
attachmentRQVO
.
getFileType
()))
{
fileType
=
dataDictMap
.
get
(
attachmentRQVO
.
getFileType
());
}
throw
new
CsbrSystemException
(
SystemError
.
DATA_INPUT_ERROR
,
fileType
+
"上传的文件名称长度超过100."
);
}
}
}
if
(
isRequired
)
{
if
(
ObjectUtils
.
isEmpty
(
rqVO
.
getAttachmentRQVOS
()))
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_INPUT_ERROR
,
"附件信息不能为空."
);
...
...
@@ -825,6 +844,27 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
//endregion 5.过程处理
}
public
List
<
DataDictVO
>
getSystemParamsList
(
String
dictType
){
if
(
StringUtils
.
isEmpty
(
dictType
)){
throw
new
CsbrSystemException
(
SystemError
.
ERROR
,
"数据字典类型不能为空。"
);
}
Object
dictListValue
=
redisUtil
.
get
(
String
.
format
(
RedisKeyEnum
.
DICT_ITEM_DATA
.
getCode
(),
dictType
));
if
(
ObjectUtils
.
isNotEmpty
(
dictListValue
))
{
List
<
DictModel
>
dictModels
=
(
List
<
DictModel
>)
dictListValue
;
return
dictModels
.
stream
().
map
(
d
->
getDataDictVO
(
d
)).
collect
(
Collectors
.
toList
());
}
return
new
ArrayList
<>();
}
private
DataDictVO
getDataDictVO
(
DictModel
dm
)
{
DataDictVO
vo
=
new
DataDictVO
();
vo
.
setGuid
(
dm
.
getGuid
());
vo
.
setParamName
(
dm
.
getText
());
vo
.
setParamValue
(
dm
.
getValue
());
vo
.
setRemarks
(
dm
.
getRemarks
());
return
vo
;
}
/**
* 企业信息新增后置处理
* @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