更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
+30
-26
@@ -2,39 +2,38 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// 考勤与排班的匹配状态(match_status)
|
||||
const (
|
||||
OaAttendMatchUnknown int8 = 0 // 未判定(历史数据)
|
||||
OaAttendMatchOK int8 = 1 // 已匹配到当日排班
|
||||
OaAttendMatchMissing int8 = 2 // 未匹配到排班(仍允许打卡,只做提醒)
|
||||
OaAttendMatchUnknown int8 = 0
|
||||
OaAttendMatchOK int8 = 1
|
||||
OaAttendMatchMissing int8 = 2
|
||||
)
|
||||
|
||||
// 单次打卡结果(clock_in_status / clock_out_status)
|
||||
// - 签到侧:1 正常 2 迟到 3 无排班打卡 4 不在班次时段
|
||||
// - 签退侧:1 正常 2 早退 3 无排班打卡 4 不在班次时段
|
||||
const (
|
||||
OaAttendClockNone int8 = 0 // 未打卡
|
||||
OaAttendClockNormal int8 = 1 // 正常
|
||||
OaAttendClockLate int8 = 2 // 迟到(签退侧表示早退)
|
||||
OaAttendClockNoShift int8 = 3 // 未匹配排班时的打卡
|
||||
OaAttendClockOffTime int8 = 4 // 不在班次时段内
|
||||
OaAttendClockNone int8 = 0
|
||||
OaAttendClockNormal int8 = 1
|
||||
OaAttendClockLate int8 = 2
|
||||
OaAttendClockNoShift int8 = 3
|
||||
OaAttendClockOffTime int8 = 4
|
||||
)
|
||||
|
||||
// 考勤数据来源(source)
|
||||
const (
|
||||
OaAttendSourceApp int8 = 1 // 移动端打卡
|
||||
OaAttendSourceWeb int8 = 2 // 后台补录
|
||||
OaAttendSourceApp int8 = 1
|
||||
OaAttendSourceWeb int8 = 2
|
||||
)
|
||||
|
||||
const (
|
||||
OaAttendFixNone int8 = 0
|
||||
OaAttendFixRunning int8 = 1
|
||||
OaAttendFixApproved int8 = 2
|
||||
OaAttendFixRejected int8 = 3
|
||||
OaAttendFixWithdrawn int8 = 4
|
||||
)
|
||||
|
||||
const (
|
||||
OaAttendFixTypeIn int8 = 1
|
||||
OaAttendFixTypeOut int8 = 2
|
||||
)
|
||||
|
||||
// OaAttendance OA 考勤打卡 yz_backend_oa_attendance
|
||||
//
|
||||
// 一人一天一条:签到与签退写同一行,便于按「人 × 日期」做统计与展示。
|
||||
// 打卡时会实时联动排班明细(yz_backend_oa_schedule_entry):
|
||||
// - 匹配上:把班次名称与上下班时间快照到本表(排班后续被改也不影响历史判定);
|
||||
// - 匹配不上:match_status=2,仍正常落库,clock_*_note 记录提醒文案。
|
||||
//
|
||||
// 唯一键为 (tid, uid, attend_date):uid 是登录身份,员工档案缺失时也能打卡,
|
||||
// employee_id=0 表示未绑定员工(后台只能按账号/姓名检索到)。
|
||||
type OaAttendance struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Tid int `orm:"column(tid)" json:"tid"`
|
||||
@@ -63,8 +62,13 @@ type OaAttendance struct {
|
||||
Location string `orm:"column(location);size(255);default()" json:"location"`
|
||||
Remark string `orm:"column(remark);size(255);default()" json:"remark"`
|
||||
Source int8 `orm:"column(source);default(1)" json:"source"`
|
||||
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
||||
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"update_time"`
|
||||
FixStatus int8 `orm:"column(fix_status);default(0)" json:"fix_status"`
|
||||
FixType int8 `orm:"column(fix_type);default(0)" json:"fix_type"`
|
||||
FixInstanceID uint64 `orm:"column(fix_instance_id);default(0)" json:"fix_instance_id"`
|
||||
FixTime string `orm:"column(fix_time);size(8);default()" json:"fix_time"`
|
||||
FixReason string `orm:"column(fix_reason);size(255);default()" json:"fix_reason"`
|
||||
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
||||
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"update_time"`
|
||||
}
|
||||
|
||||
func (m *OaAttendance) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user