Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
isoft_psa
Project
Project
Details
Activity
Releases
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
王飞
isoft_psa
Commits
48c48c83
Commit
48c48c83
authored
Apr 28, 2025
by
‘老张’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询员工年假和查询加班余额年假余额方法的修改
parent
08d799ab
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
36 deletions
+29
-36
EmployeeBalanceController.java
.../java/com/ruoyi/controller/EmployeeBalanceController.java
+2
-2
EmployeeBalance.java
...i-psa/src/main/java/com/ruoyi/domain/EmployeeBalance.java
+17
-24
EmployeeBalanceMapper.java
...src/main/java/com/ruoyi/mapper/EmployeeBalanceMapper.java
+2
-2
IEmployeeBalanceService.java
.../main/java/com/ruoyi/service/IEmployeeBalanceService.java
+2
-2
EmployeeBalanceServiceImpl.java
...va/com/ruoyi/service/impl/EmployeeBalanceServiceImpl.java
+3
-3
EmployeeBalanceMapper.xml
...in/resources/mapper/application/EmployeeBalanceMapper.xml
+2
-2
LeaveApplicationMapper.xml
...n/resources/mapper/application/LeaveApplicationMapper.xml
+1
-1
No files found.
ruoyi-psa/src/main/java/com/ruoyi/controller/EmployeeBalanceController.java
View file @
48c48c83
...
@@ -64,9 +64,9 @@ public class EmployeeBalanceController extends BaseController
...
@@ -64,9 +64,9 @@ public class EmployeeBalanceController extends BaseController
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:balance:query')"
)
@PreAuthorize
(
"@ss.hasPermi('system:balance:query')"
)
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
i
d
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
employeeI
d
)
{
{
return
success
(
employeeBalanceService
.
selectEmployeeBalanceById
(
i
d
));
return
success
(
employeeBalanceService
.
selectEmployeeBalanceById
(
employeeI
d
));
}
}
/**
/**
...
...
ruoyi-psa/src/main/java/com/ruoyi/domain/EmployeeBalance.java
View file @
48c48c83
...
@@ -2,7 +2,6 @@ package com.ruoyi.domain;
...
@@ -2,7 +2,6 @@ package com.ruoyi.domain;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
@@ -12,42 +11,36 @@ import com.ruoyi.common.core.domain.BaseEntity;
...
@@ -12,42 +11,36 @@ import com.ruoyi.common.core.domain.BaseEntity;
/**
/**
* 员工余额对象 employee_balance
* 员工余额对象 employee_balance
*
*
* @author
hht
* @author
ruoyi
* @date 2025-0
3-06
* @date 2025-0
4-25
*/
*/
public
class
EmployeeBalance
extends
BaseEntity
{
public
class
EmployeeBalance
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/** 唯一标识每条记录 */
* 唯一标识每条记录
*/
private
Long
id
;
private
Long
id
;
/**
/** 员工ID(关联到员工表) */
* 员工ID(关联到员工表)
@Excel
(
name
=
"员工ID"
)
*/
private
Long
employeeId
;
private
Long
employeeId
;
/**
/** 年假余额 */
* 年假余额
@Excel
(
name
=
"年假余额/天"
)
*/
private
BigDecimal
annualLeaveBalance
;
private
BigDecimal
annualLeaveBalance
;
/**
/** 加班时长余额 */
* 加班时长余额
@Excel
(
name
=
"加班时长余额/小时"
)
*/
private
BigDecimal
overtimeHoursBalance
;
private
BigDecimal
overtimeHoursBalance
;
/**
/** 创建时间 */
* 创建时间
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
*/
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createdAt
;
private
Date
createdAt
;
/**
/** 更新时间 */
* 更新时间
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
*/
@Excel
(
name
=
"更新时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
updatedAt
;
private
Date
updatedAt
;
public
Long
getId
()
{
public
Long
getId
()
{
...
...
ruoyi-psa/src/main/java/com/ruoyi/mapper/EmployeeBalanceMapper.java
View file @
48c48c83
...
@@ -10,10 +10,10 @@ public interface EmployeeBalanceMapper {
...
@@ -10,10 +10,10 @@ public interface EmployeeBalanceMapper {
/**
/**
* 查询员工余额
* 查询员工余额
*
*
* @param
id 员工余额主键
* @param
employeeId 员工id
* @return 员工余额
* @return 员工余额
*/
*/
public
EmployeeBalance
selectEmployeeBalanceById
(
Long
i
d
);
public
EmployeeBalance
selectEmployeeBalanceById
(
Long
employeeI
d
);
/**
/**
* 查询员工余额列表
* 查询员工余额列表
...
...
ruoyi-psa/src/main/java/com/ruoyi/service/IEmployeeBalanceService.java
View file @
48c48c83
...
@@ -14,10 +14,10 @@ public interface IEmployeeBalanceService
...
@@ -14,10 +14,10 @@ public interface IEmployeeBalanceService
/**
/**
* 查询员工余额
* 查询员工余额
*
*
* @param
id 员工余额主键
* @param
employeeId 员工id
* @return 员工余额
* @return 员工余额
*/
*/
public
EmployeeBalance
selectEmployeeBalanceById
(
Long
i
d
);
public
EmployeeBalance
selectEmployeeBalanceById
(
Long
employeeI
d
);
/**
/**
* 查询员工余额列表
* 查询员工余额列表
...
...
ruoyi-psa/src/main/java/com/ruoyi/service/impl/EmployeeBalanceServiceImpl.java
View file @
48c48c83
...
@@ -22,13 +22,13 @@ public class EmployeeBalanceServiceImpl implements IEmployeeBalanceService
...
@@ -22,13 +22,13 @@ public class EmployeeBalanceServiceImpl implements IEmployeeBalanceService
/**
/**
* 查询员工余额
* 查询员工余额
*
*
* @param
id 员工余额主键
* @param
employeeId 员工id
* @return 员工余额
* @return 员工余额
*/
*/
@Override
@Override
public
EmployeeBalance
selectEmployeeBalanceById
(
Long
i
d
)
public
EmployeeBalance
selectEmployeeBalanceById
(
Long
employeeI
d
)
{
{
return
employeeBalanceMapper
.
selectEmployeeBalanceById
(
i
d
);
return
employeeBalanceMapper
.
selectEmployeeBalanceById
(
employeeI
d
);
}
}
/**
/**
...
...
ruoyi-psa/src/main/resources/mapper/application/EmployeeBalanceMapper.xml
View file @
48c48c83
...
@@ -29,10 +29,10 @@
...
@@ -29,10 +29,10 @@
<select
id=
"selectEmployeeBalanceById"
parameterType=
"Long"
resultMap=
"EmployeeBalanceResult"
>
<select
id=
"selectEmployeeBalanceById"
parameterType=
"Long"
resultMap=
"EmployeeBalanceResult"
>
<include
refid=
"selectEmployeeBalanceVo"
/>
<include
refid=
"selectEmployeeBalanceVo"
/>
where
id = #{i
d}
where
employee_id = #{employeeI
d}
</select>
</select>
<insert
id=
"insertEmployeeBalance"
parameterType=
"EmployeeBalance"
useGeneratedKeys=
"true"
keyProperty=
"
i
d"
>
<insert
id=
"insertEmployeeBalance"
parameterType=
"EmployeeBalance"
useGeneratedKeys=
"true"
keyProperty=
"
employeeI
d"
>
insert into employee_balance
insert into employee_balance
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"employeeId != null"
>
employee_id,
</if>
<if
test=
"employeeId != null"
>
employee_id,
</if>
...
...
ruoyi-psa/src/main/resources/mapper/application/LeaveApplicationMapper.xml
View file @
48c48c83
...
@@ -152,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -152,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
overtime_hours_balance AS overtimeHoursBalance,
overtime_hours_balance AS overtimeHoursBalance,
annual_leave_balance AS annualLeaveBalance
annual_leave_balance AS annualLeaveBalance
FROM employee_balance
FROM employee_balance
WHERE employee_id = #{
user
Id}
WHERE employee_id = #{
employee
Id}
</select>
</select>
<update
id=
"updateOvertimeHoursBalance"
parameterType=
"com.ruoyi.domain.dto.EmployeeBalanceDTO"
>
<update
id=
"updateOvertimeHoursBalance"
parameterType=
"com.ruoyi.domain.dto.EmployeeBalanceDTO"
>
...
...
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