Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
646c7906
Commit
646c7906
authored
Jun 24, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
excel导入导出组件
parent
b27cd6ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ExcelUtil.java
...m/yifu.cloud.plus.v1/yifu/common/core/util/ExcelUtil.java
+6
-5
DictItemRedisInit.java
...yifu/cloud/plus/v1/yifu/admin/init/DictItemRedisInit.java
+1
-1
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/ExcelUtil.java
View file @
646c7906
...
...
@@ -99,14 +99,15 @@ public class ExcelUtil <T> implements Serializable {
}
else
{
if
(
attr
.
isArea
())
{
//区域字段处理 TODO
/*
if (!Common.isNotNull(attr.parentField())) {
tempStr =
dicMap.get(c.trim() + "_0"
);
if
(!
Common
.
isNotNull
(
attr
.
parentField
()))
{
tempStr
=
getDicValue
(
"area_"
+
c
.
trim
()
+
"_0"
,
tempStr
,
attr
,
rowNum
,
errorTemp
);
}
else
{
tempStr = dicMap.get(c.trim() + "_" + getFieldValueByName(attr.parentField(), entity, DateUtil.ISO_EXPANDED_DATE_FORMAT));
}*/
// TODO
tempStr
=
getDicValue
(
"area_"
+
c
.
trim
()+
"_"
+
getFieldValueByName
(
attr
.
parentField
(),
data
,
DateUtil
.
ISO_EXPANDED_DATE_FORMAT
),
tempStr
,
attr
,
rowNum
,
errorTemp
);
}
}
else
{
//直接按值去找数据 TODO
//tempStr = dicMap.get(c.trim()
);
tempStr
=
getDicValue
(
c
.
trim
()
,
tempStr
,
attr
,
rowNum
,
errorTemp
);
}
}
if
(!
StringUtils
.
isNotBlank
(
tempStr
))
{
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/init/DictItemRedisInit.java
View file @
646c7906
...
...
@@ -47,7 +47,7 @@ public class DictItemRedisInit {
List
<
SysArea
>
allAreas
=
sysAreaService
.
getAllArea
();
if
(
Common
.
isNotNull
(
allAreas
)){
for
(
SysArea
area:
allAreas
){
redisUtil
.
set
(
area
.
getId
()
redisUtil
.
set
(
"area_"
+
area
.
getId
()
+
CommonConstants
.
DOWN_LINE_STRING
+(
Common
.
isEmpty
(
area
.
getParentId
())?
"0"
:
area
.
getParentId
()),
area
.
getId
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment