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
e2373ce7
Commit
e2373ce7
authored
Nov 08, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限配置页面
parent
ef4956c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
ExcelUtil.java
...m/yifu/cloud/plus/v1/yifu/common/core/util/ExcelUtil.java
+11
-15
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.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 @
e2373ce7
...
...
@@ -194,23 +194,19 @@ public class ExcelUtil <T> implements Serializable {
* @Param
* @return
**/
public
static
String
getLabelByDataType
(
String
value
,
String
dataType
){
String
tempValue
=
null
;
if
(
Common
.
isEmpty
(
tempValue
)
&&
Common
.
isNotNull
(
dataType
)){
public
static
String
getDicValueByDataType
(
String
value
,
String
dataType
){
String
tempStr
=
null
;
Map
<
String
,
String
>
dicObj
=
(
Map
<
String
,
String
>)
RedisUtil
.
redis
.
opsForValue
()
.
get
(
CacheConstants
.
DICT_DETAILS
+
CommonConstants
.
COLON_STRING
+
dataType
);
if
(
dicObj
!=
null
)
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
dicObj
.
entrySet
())
{
if
(
Common
.
isNotNull
(
entry
.
getKey
())
&&
entry
.
getKey
().
equals
(
value
.
trim
()))
{
tempValue
=
entry
.
getValue
();
+
dataType
);
for
(
Map
.
Entry
<
String
,
String
>
entry:
dicObj
.
entrySet
()){
if
(
Common
.
isNotNull
(
entry
.
getValue
())
&&
entry
.
getValue
().
equals
(
value
.
trim
())){
tempStr
=
entry
.
getKey
();
break
;
}
}
}
}
return
tempValue
;
return
tempStr
;
}
/**
* 返回传参对应的fileds
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
e2373ce7
...
...
@@ -1869,7 +1869,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
project
.
setCreateBy
(
user
.
getId
());
project
.
setCreateName
(
user
.
getNickname
());
project
.
setDeptNo
(
excel
.
getSettleDomainCode
());
project
.
setContractType
(
excelUtil
.
get
Label
ByDataType
(
excel
.
getContractName
(),
ExcelAttributeConstants
.
PERSONNEL_TYPE
));
project
.
setContractType
(
excelUtil
.
get
DicValue
ByDataType
(
excel
.
getContractName
(),
ExcelAttributeConstants
.
PERSONNEL_TYPE
));
project
.
setEmpIdcard
(
excel
.
getEmpIdcard
());
project
.
setEmpName
(
excel
.
getEmpName
());
project
.
setEmpNatrue
(
excel
.
getEmpType
());
...
...
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