Documentation ¶
Index ¶
- func AddBusinesstrip(upd Businesstrips) error
- func AddBusinesstripsApprover(upd BusinesstripsApprover) error
- func ChangeBusinesstripResult(id int64, result int) error
- func ChangeBusinesstripStatus(id int64, status int) error
- func CheckBusinesstripApprover(id, userId int64) (int64, int)
- func CountBusinesstrip(condArr map[string]string) int64
- func CountBusinesstripApproval(condArr map[string]string) int64
- func DeleteBusinesstrip(id int64) error
- func ListBusinesstripApproverProcessHtml(businesstripid int64) string
- func UpdateBusinesstrip(id int64, upd Businesstrips) error
- func UpdateBusinesstripsApprover(id int64, upd BusinesstripsApprover) error
- type BusinesstripApproverProcess
- type Businesstrips
- type BusinesstripsApprover
- type TmpBusinesstripCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBusinesstrip ¶
func AddBusinesstrip(upd Businesstrips) error
func AddBusinesstripsApprover ¶
func AddBusinesstripsApprover(upd BusinesstripsApprover) error
func CheckBusinesstripApprover ¶
检测是否已经审批
func CountBusinesstrip ¶
func DeleteBusinesstrip ¶
func UpdateBusinesstrip ¶
func UpdateBusinesstrip(id int64, upd Businesstrips) error
func UpdateBusinesstripsApprover ¶
func UpdateBusinesstripsApprover(id int64, upd BusinesstripsApprover) error
Types ¶
type BusinesstripApproverProcess ¶
type BusinesstripApproverProcess struct { Userid int64 Realname string Avatar string Position string Status int Summary string Changed int64 }
func ListBusinesstripApproverProcess ¶
func ListBusinesstripApproverProcess(businesstripid int64) (num int64, err error, user []BusinesstripApproverProcess)
type Businesstrips ¶
type Businesstrips struct { Id int64 `orm:"pk;column(businesstripid);"` Userid int64 Destinations string Starteds string Endeds string Days int Reason string Picture string Result int Status int Approverids string Created int64 Changed int64 }
func GetBusinesstrip ¶
func GetBusinesstrip(id int64) (Businesstrips, error)
func ListBusinesstrip ¶
func ListBusinesstripApproval ¶
func ListBusinesstripApproval(condArr map[string]string, page int, offset int) (num int64, err error, ops []Businesstrips)
待审批
func (*Businesstrips) TableName ¶
func (this *Businesstrips) TableName() string
type BusinesstripsApprover ¶
type BusinesstripsApprover struct { Id int64 `orm:"pk;column(approverid);"` Businesstripid int64 Userid int64 Summary string Status int Created int64 Changed int64 }
func (*BusinesstripsApprover) TableName ¶
func (this *BusinesstripsApprover) TableName() string
type TmpBusinesstripCount ¶
type TmpBusinesstripCount struct {
Num int64
}
Click to show internal directories.
Click to hide internal directories.