|
|
|
@ -39,7 +39,7 @@ type LeaveApply struct {
|
|
|
|
|
ActionTime string `json:"actionTime" gorm:"column:action_time;type:varchar(255);comment:操作|申请时间"`
|
|
|
|
|
ApprovalID string `json:"approvalID" gorm:"column:approval_id;type:varchar(255);comment:审批系统中的approvalID"`
|
|
|
|
|
Reason string `json:"reason" gorm:"column:reason;type:varchar(255);comment:理由"`
|
|
|
|
|
LeaveBalance int32 `json:"leaveBalance" gorm:"column:leave_balance;type:int;comment:假期余额"`
|
|
|
|
|
LeaveBalance float32 `json:"leaveBalance" gorm:"column:leave_balance;type:int;comment:假期余额"`
|
|
|
|
|
Status int32 `json:"status" gorm:"column:status;type:int;comment:状态(目前和审批系统状态同步)"`
|
|
|
|
|
VerifyFile VerifyFiles `json:"verifyFile" gorm:"column:verify_file;type:json;comment:证明文件(图片|pdf)"`
|
|
|
|
|
ApprovalUsers ApprovalUsers `json:"approvalUsers" gorm:"column:approval_users;type:json;comment:审批人"`
|
|
|
|
@ -264,6 +264,23 @@ var sonMap = map[string]string{
|
|
|
|
|
"nursingLeaveApply": "leaveApply", // 独生子女护理假申请
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var OnceAYear = "onceAYear"
|
|
|
|
|
var Once = "once"
|
|
|
|
|
var More = "more"
|
|
|
|
|
|
|
|
|
|
var LeaveBalanceUsefulTime = map[string]string{
|
|
|
|
|
"annualLeaveApply": "onceAYear", // 年假申请
|
|
|
|
|
"parentalLeaveApply": "onceAYear", // 育儿假申请
|
|
|
|
|
"nursingLeaveApply": "onceAYear", // 独生子女护理假申请
|
|
|
|
|
|
|
|
|
|
"matingCheckLeaveApply": "more", // 孕检假申请
|
|
|
|
|
"maternityLeaveApply": "more", // 产假申请
|
|
|
|
|
"paternityLeaveApply": "more", // 陪产假申请
|
|
|
|
|
"funeralLeaveApply": "more", // 丧假申请
|
|
|
|
|
|
|
|
|
|
"maritalLeaveApply": "once", // 婚假申请
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetSonMapValue(k string) string {
|
|
|
|
|
return sonMap[k]
|
|
|
|
|
}
|
|
|
|
|