checkworks

package
v0.0.0-...-288c4e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2017 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCheckwork

func AddCheckwork(upd Checkworks) error

打卡

func CountCheck

func CountCheck(table string, date string, userId int64) (num int64, err error)

统计 请假 外出

func CountCheckwork

func CountCheckwork(date string, userId int64) (num float64, err error)

func CountClock

func CountClock(id int64) int64

Types

type Checkworks

type Checkworks struct {
	Id      int64 `orm:"pk;column(checkid);"`
	Userid  int64
	Clock   string
	Type    int
	Ip      string
	Created int64
}

func ListCheckwork

func ListCheckwork(condArr map[string]string) (num int64, err error, checkwork []Checkworks)

个人用户考勤列表30/31条

func (*Checkworks) TableName

func (this *Checkworks) TableName() string

type CheckworksAll

type CheckworksAll struct {
	Realname string
	Userid   int64
	Clock    string
	Date     string
	Ip       string
}

func ListCheckworkAll

func ListCheckworkAll(condArr map[string]string) (num int64, err error, checkwork []CheckworksAll)

type CountCheckworkCommon

type CountCheckworkCommon struct {
	Num  int
	Type int
}

统计1正常2迟到3早退4加班

func CountCheckworkType

func CountCheckworkType(date string, userId int64) (num int64, err error, need []CountCheckworkCommon)

type TmpClockCount

type TmpClockCount struct {
	Num int64
}

计算当天用户打卡次数 2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL