|
@@ -178,7 +178,7 @@ func (c *LeaveController) Leave_Deduct() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- duration := Attendance.GetRemainingDaysOff(c.User.T_uuid)
|
|
|
|
|
|
+ duration := Attendance.GetRemainingDaysOff(T_uuid)
|
|
if T_duration > duration {
|
|
if T_duration > duration {
|
|
c.Data["json"] = lib.JSONS{Code: 202, Msg: "超过加班总时长!"}
|
|
c.Data["json"] = lib.JSONS{Code: 202, Msg: "超过加班总时长!"}
|
|
c.ServeJSON()
|
|
c.ServeJSON()
|