Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
a6fed1de
Commit
a6fed1de
authored
Mar 10, 2021
by
Simon Cheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev'
parents
720eaf5c
8c000d31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
+0
-6
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
+7
-7
No files found.
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
View file @
a6fed1de
...
...
@@ -55,12 +55,6 @@ public class PractitionerController {
*/
@RequestMapping
(
"/login"
)
public
Object
practitionerLogin
(
@RequestBody
PractitionerLoginRequestVO
requestVO
){
GraphicsEnvironment
ge
=
GraphicsEnvironment
.
getLocalGraphicsEnvironment
();
String
[]
fontFamilies
=
ge
.
getAvailableFontFamilyNames
();
System
.
out
.
println
(
"字体列表:"
);
for
(
String
s
:
fontFamilies
)
{
System
.
out
.
println
(
s
);
}
JsonResult
result
=
new
JsonResult
();
PractitionerLoginResponseVO
responseVO
=
practitionerService
.
practitionerLogin
(
requestVO
);
result
.
addResult
(
responseVO
);
...
...
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
View file @
a6fed1de
...
...
@@ -136,8 +136,9 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
PayScaleQueryResponseVO
responseVO
=
new
PayScaleQueryResponseVO
();
String
practitionerIdEG
=
requestVO
.
getPractitionerIdEG
();
Long
practitionerId
=
requestVO
.
getPractitionerId
();
Map
<
Long
,
PayScaleInfo
>
payScaleInfoMap
=
new
HashMap
<>();
if
(!
Strings
.
isNullOrEmpty
(
practitionerIdEG
)
&&
practitionerId
!=
null
){
if
(!
Strings
.
isNullOrEmpty
(
practitionerIdEG
)){
List
<
PayScaleInfo
>
payScaleInfoListAll
=
aclPractitionerDALService
.
findPayScaleByPractitionerEG
(
practitionerIdEG
);
if
(!
payScaleInfoListAll
.
isEmpty
()){
Map
<
String
,
String
>
dtlTypeMap
=
new
HashMap
<>();
...
...
@@ -146,7 +147,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
optionsEGoldenList
.
forEach
(
i
->
dtlTypeMap
.
put
(
i
.
getOptAttr
(),
i
.
getOptName
()));
List
<
OptionsEGolden
>
titleList
=
mdDropOptionsDALService
.
findAllTitleEG
();
titleList
.
forEach
(
i
->
titleMap
.
put
(
i
.
getTitleCode
(),
i
.
getTitleName
()));
Map
<
Long
,
PayScaleInfo
>
payScaleInfoMap
=
new
HashMap
<>();
PayScaleInfo
payScaleInfo
;
Long
time
;
for
(
PayScaleInfo
item
:
payScaleInfoListAll
){
...
...
@@ -167,6 +168,9 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
for
(
PayScaleInfo
item
:
payScaleInfoListAll
){
item
.
setMonDtlRAmount
(
CommonUtil
.
doubleFormat
(
item
.
getMonDtlRAmount
(),
2
));
}
}
}
List
<
PayScaleInfo
>
resultList
=
new
ArrayList
<>(
payScaleInfoMap
.
values
());
// 加入临时薪资表的数据
...
...
@@ -176,12 +180,8 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
// 排序
resultList
.
sort
(
Comparator
.
comparingLong
(
PayScaleInfo
::
getMonDtlPeriod
).
reversed
());
responseVO
.
setPayScaleInfos
(
resultList
);
}
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
else
{
String
[]
params
=
{
"practitionerIdEG, practitionerId"
};
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"610002"
,
params
)));
}
return
responseVO
;
}
...
...
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