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
c701442a
Commit
c701442a
authored
Jul 05, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入区域字典
parent
c525acbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+6
-12
AreaController.java
...u.cloud.plus.v1/yifu/admin/controller/AreaController.java
+3
-3
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
c701442a
...
...
@@ -693,15 +693,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
if
(!
phoneList
.
isEmpty
())
{
List
<
TEmployeeInfo
>
phones
=
baseMapper
.
getListByPhone
(
phoneList
);
if
(
phones
!=
null
&&
!
phones
.
isEmpty
())
{
Long
l
=
2L
;
for
(
TEmployeeInfo
employeeInfo
:
phones
)
{
errorMsg
=
new
HashSet
<>();
existPhoneMap
.
put
(
employeeInfo
.
getEmpPhone
(),
employeeInfo
);
errorMsg
.
add
(
"手机号:"
+
employeeInfo
.
getEmpPhone
()
+
"已被使用!"
);
errorMsgMap
.
put
(
l
,
new
ErrorMessage
(
"第"
+
l
+
"行手机号:"
+
employeeInfo
.
getEmpPhone
()
+
"已被使用!"
));
l
++;
}
for
(
TEmployeeInfo
employeeInfo
:
phones
)
{
existPhoneMap
.
put
(
employeeInfo
.
getEmpPhone
(),
employeeInfo
);
}
}
...
...
@@ -744,13 +737,15 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
// 调用区域服务,渲染区域值
R
<
Map
<
String
,
String
>>
areaR
=
HttpDaprUtil
.
invokeMethodPost
(
daprUpmsProperties
.
getAppUrl
(),
daprUpmsProperties
.
getAppId
()
R
<
Map
<
String
,
Map
<
String
,
String
>
>>
areaR
=
HttpDaprUtil
.
invokeMethodPost
(
daprUpmsProperties
.
getAppUrl
(),
daprUpmsProperties
.
getAppId
()
,
"/area/inner/getAreaToName"
,
null
,
Map
.
class
,
SecurityConstants
.
FROM_IN
);
Map
<
String
,
Map
<
String
,
String
>>
areaMapR
;
Map
<
String
,
String
>
areaMap
;
if
(
areaR
==
null
)
{
return
R
.
failed
(
"获取区域失败!"
);
}
else
{
areaMap
=
areaR
.
getData
();
areaMapR
=
areaR
.
getData
();
areaMap
=
areaMapR
.
get
(
"data"
);
}
TEmployeeInfo
checkPhone
;
...
...
@@ -831,7 +826,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
}
// 校验字典数据是否正确-婚姻
if
(
Common
.
isNotNull
(
excel
.
getEmpMarriStatus
()))
{
if
(
empMarriMap
.
get
(
excel
.
getEmpMarriStatus
())
==
null
)
{
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/controller/AreaController.java
View file @
c701442a
...
...
@@ -21,7 +21,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.
Ge
tMapping
;
import
org.springframework.web.bind.annotation.
Pos
tMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -50,7 +50,7 @@ public class AreaController {
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.Map < java.lang.Integer, java.lang.String>>
**/
@Inner
@
Ge
tMapping
(
"/inner/getAreaToId"
)
@
Pos
tMapping
(
"/inner/getAreaToId"
)
public
R
<
Map
<
String
,
String
>>
getAreaToId
()
{
return
sysAreaService
.
getAreaToId
();
}
...
...
@@ -63,7 +63,7 @@ public class AreaController {
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.Map < java.lang.String, java.util.Map < java.lang.String, java.lang.String>>>
**/
@Inner
@
Ge
tMapping
(
"/inner/getAreaToName"
)
@
Pos
tMapping
(
"/inner/getAreaToName"
)
public
R
<
Map
<
String
,
String
>>
getAreaToName
()
{
return
sysAreaService
.
getAreaToName
();
}
...
...
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