Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
478d7202
Commit
478d7202
authored
4 years ago
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
82ee3c2a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+0
-0
src/main/java/cn/timer/api/controller/xcgl/SalaryTool.java
+9
-0
src/main/java/cn/timer/api/dao/sbgjj/SbgjjAssoYjzdMapper.java
+2
-0
src/main/resources/mapping/sbgjj/SbgjjAssoYjzdMapper.xml
+15
-0
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
478d7202
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/xcgl/SalaryTool.java
View file @
478d7202
...
@@ -11,6 +11,15 @@ public class SalaryTool {
...
@@ -11,6 +11,15 @@ public class SalaryTool {
static
SimpleDateFormat
matM
=
new
SimpleDateFormat
(
"yyyy-MM"
);
static
SimpleDateFormat
matM
=
new
SimpleDateFormat
(
"yyyy-MM"
);
/**
/**
* 保留两位小数,四舍五入的一个老土的方法
* @param d
* @return
*/
public
static
double
formatDouble
(
double
d
)
{
return
(
double
)
Math
.
round
(
d
*
10000
)/
10000
;
}
/**
* 获取两个日期相差的月数
* 获取两个日期相差的月数
* @param d2 较大的日期
* @param d2 较大的日期
* @param d1 较小的日期
* @param d1 较小的日期
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dao/sbgjj/SbgjjAssoYjzdMapper.java
View file @
478d7202
...
@@ -24,4 +24,6 @@ public interface SbgjjAssoYjzdMapper extends BaseMapper<SbgjjAssoYjzd> {
...
@@ -24,4 +24,6 @@ public interface SbgjjAssoYjzdMapper extends BaseMapper<SbgjjAssoYjzd> {
List
<
MonthlyCheckoutSheetDto
>
MonthlycheckoutsheetList
(
MonthlyStatementDto
monthlystatementdto
);
List
<
MonthlyCheckoutSheetDto
>
MonthlycheckoutsheetList
(
MonthlyStatementDto
monthlystatementdto
);
SbgjjAssoYjzd
IndividualTotalsbgjj
(
String
usernum
,
int
qyid
,
String
zymonth
);
}
}
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/sbgjj/SbgjjAssoYjzdMapper.xml
View file @
478d7202
...
@@ -85,6 +85,21 @@
...
@@ -85,6 +85,21 @@
cbryid SbgjjAssoYjzd_cbryid
cbryid SbgjjAssoYjzd_cbryid
</sql>
</sql>
<select
id=
"IndividualTotalsbgjj"
resultMap=
"BaseResultMap"
>
select * from sbgjj_asso_yjzd yj
where yj.cbryid = (
select cb.id from sbgjj_admin_cbry cb
where cb.user_num = #{usernum}
and cb.qyid = #{qyid}
and cb.id in (select yj.cbryid from sbgjj_asso_yjzd yj
where yj.zymonth = #{zymonth}
and yj.user_num = #{usernum})
and cb.state = 1
and cb.is_use = 1
)
and yj.qyid = #{qyid}
</select>
<select
id=
"MonthlycheckoutsheetList"
resultMap=
"MonthlyCheckoutSheetMap"
>
<select
id=
"MonthlycheckoutsheetList"
resultMap=
"MonthlyCheckoutSheetMap"
>
select emp.`name` as empname,
select emp.`name` as empname,
yjzd.user_num as usernum,
yjzd.user_num as usernum,
...
...
This diff is collapsed.
Click to expand it.
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