|
@@ -59,6 +59,7 @@ type Attendance_R struct {
|
|
|
T_approver string // 审批人uuid
|
|
|
T_approver_name string // 审批人名称
|
|
|
T_State int
|
|
|
+ CreateTime string
|
|
|
UpdateTime string
|
|
|
}
|
|
|
|
|
@@ -72,6 +73,7 @@ type Attendance_S struct {
|
|
|
T_approver_name string // 审批人名称
|
|
|
T_State int
|
|
|
RemainingTime int // 剩余时长
|
|
|
+ CreateTime string
|
|
|
UpdateTime string
|
|
|
}
|
|
|
|
|
@@ -94,6 +96,7 @@ func AttendanceToAttendance_R(t Attendance) (r Attendance_R) {
|
|
|
r.T_approver = t.T_approver
|
|
|
r.T_approver_name = Account.Read_User_T_name_Get(t.T_approver)
|
|
|
r.T_State = t.T_State
|
|
|
+ r.CreateTime = t.CreateTime.Format("2006-01-02 15:04:05")
|
|
|
r.UpdateTime = t.UpdateTime.Format("2006-01-02 15:04:05")
|
|
|
if t.T_type > 100 {
|
|
|
r.T_start_time = "-"
|
|
@@ -115,6 +118,7 @@ func AttendanceToAttendance_S(t Attendance) (r Attendance_S) {
|
|
|
r.T_approver = t.T_approver
|
|
|
r.T_approver_name = Account.Read_User_T_name_Get(t.T_approver)
|
|
|
r.T_State = t.T_State
|
|
|
+ r.CreateTime = t.CreateTime.Format("2006-01-02 15:04:05")
|
|
|
r.UpdateTime = t.UpdateTime.Format("2006-01-02 15:04:05")
|
|
|
return r
|
|
|
}
|