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
e876eacf
Commit
e876eacf
authored
Aug 04, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
零时薪资单6
parent
6a7fbdf8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
+11
-11
yd-api/src/main/resources/mapper/salary/AgAclSalaryMapper.xml
+0
-3
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
View file @
e876eacf
...
@@ -447,17 +447,14 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
...
@@ -447,17 +447,14 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
if
(
"1"
.
equals
(
salary
.
getIsBasic
()))
{
if
(
"1"
.
equals
(
salary
.
getIsBasic
()))
{
payScaleInfo
.
setIsBasic
(
1
);
payScaleInfo
.
setIsBasic
(
1
);
}
}
time
=
payScaleInfo
.
getMonDtlPeriod
();
if
(
StringUtils
.
isNotBlank
(
time
))
{
payScaleInfo
.
setYears
(
time
.
substring
(
0
,
4
));
payScaleInfo
.
setMonth
(
time
.
substring
(
4
));
}
resultList
.
add
(
payScaleInfo
);
resultList
.
add
(
payScaleInfo
);
}
}
for
(
PayScaleInfo
info
:
resultList
)
{
if
(
StringUtils
.
isNotBlank
(
info
.
getMonDtlPeriod
()))
{
time
=
info
.
getMonDtlPeriod
();
info
.
setYears
(
time
.
substring
(
0
,
4
));
info
.
setMonth
(
time
.
substring
(
4
));
}
}
return
resultList
;
return
resultList
;
}
}
...
@@ -769,10 +766,10 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
...
@@ -769,10 +766,10 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
public
QuerySalaryDetailResponseVO
querySalaryDetail
(
QuerySalaryDetailRequestVO
requestVO
)
{
public
QuerySalaryDetailResponseVO
querySalaryDetail
(
QuerySalaryDetailRequestVO
requestVO
)
{
QuerySalaryDetailResponseVO
responseVO
=
new
QuerySalaryDetailResponseVO
();
QuerySalaryDetailResponseVO
responseVO
=
new
QuerySalaryDetailResponseVO
();
// isBasic为0时查询N22,为1时查询本地数据库表
// isBasic为0时查询N22,为1时查询本地数据库表
if
(
"0"
.
equals
(
requestVO
.
getIsBasic
()))
{
if
(
"1"
.
equals
(
requestVO
.
getIsBasic
()))
{
this
.
querySalaryDetailFromN22
(
requestVO
,
responseVO
);
}
else
{
this
.
querySalaryDetail
(
requestVO
,
responseVO
);
this
.
querySalaryDetail
(
requestVO
,
responseVO
);
}
else
{
this
.
querySalaryDetailFromN22
(
requestVO
,
responseVO
);
}
}
return
responseVO
;
return
responseVO
;
...
@@ -797,10 +794,13 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
...
@@ -797,10 +794,13 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
List
<
AgAclSalary
>
newSalaryList
=
agAclSalaryMapper
.
queryByRecord
(
agAclSalary
);
List
<
AgAclSalary
>
newSalaryList
=
agAclSalaryMapper
.
queryByRecord
(
agAclSalary
);
BigDecimal
abc
=
BigDecimal
.
ZERO
;
BigDecimal
abc
=
BigDecimal
.
ZERO
;
BigDecimal
d
=
BigDecimal
.
ZERO
;
for
(
AgAclSalary
item
:
newSalaryList
)
{
for
(
AgAclSalary
item
:
newSalaryList
)
{
abc
=
abc
.
add
(
item
.
getAmount
());
abc
=
abc
.
add
(
item
.
getAmount
());
d
=
d
.
add
(
item
.
getTax
());
}
}
responseVO
.
setAbc
(
abc
.
toString
());
responseVO
.
setAbc
(
abc
.
toString
());
responseVO
.
setD
(
d
.
toString
());
// list
// list
List
<
SalaryDetail
>
list
=
new
ArrayList
<>();
List
<
SalaryDetail
>
list
=
new
ArrayList
<>();
for
(
AgAclSalary
item
:
newSalaryList
)
{
for
(
AgAclSalary
item
:
newSalaryList
)
{
...
...
yd-api/src/main/resources/mapper/salary/AgAclSalaryMapper.xml
View file @
e876eacf
...
@@ -237,7 +237,6 @@
...
@@ -237,7 +237,6 @@
<select
id=
"queryByRecord"
parameterType=
"com.yd.dal.entity.salary.AgAclSalary"
resultMap=
"BaseResultMap"
>
<select
id=
"queryByRecord"
parameterType=
"com.yd.dal.entity.salary.AgAclSalary"
resultMap=
"BaseResultMap"
>
select * from ag_acl_salary
select * from ag_acl_salary
where 1=1
where 1=1
<trim
suffixOverrides=
","
>
<if
test=
"practitionerId != null"
>
<if
test=
"practitionerId != null"
>
and practitioner_id = #{practitionerId,jdbcType=BIGINT}
and practitioner_id = #{practitionerId,jdbcType=BIGINT}
</if>
</if>
...
@@ -286,6 +285,5 @@
...
@@ -286,6 +285,5 @@
<if
test=
"updatedBy != null"
>
<if
test=
"updatedBy != null"
>
and updated_by = #{updatedBy,jdbcType=BIGINT}
and updated_by = #{updatedBy,jdbcType=BIGINT}
</if>
</if>
</trim>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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