dao

package
v0.0.0-...-0cac348 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDepartmentById

func DeleteDepartmentById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteDepartmentByOrg

func DeleteDepartmentByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteUserDepartmentById

func DeleteUserDepartmentById(id int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func DeleteUserDepartmentByOrg

func DeleteUserDepartmentByOrg(id int64, orgId int64, operatorId int64, tx ...sqlbuilder.Tx) (int64, error)

func InsertDepartment

func InsertDepartment(po po.PpmOrgDepartment, tx ...sqlbuilder.Tx) error

func InsertDepartmentBatch

func InsertDepartmentBatch(pos []po.PpmOrgDepartment, tx ...sqlbuilder.Tx) error

func InsertUserDepartment

func InsertUserDepartment(po po.PpmOrgUserDepartment, tx ...sqlbuilder.Tx) error

func InsertUserDepartmentBatch

func InsertUserDepartmentBatch(pos []po.PpmOrgUserDepartment, tx ...sqlbuilder.Tx) error

func OrcConfigPageList

func OrcConfigPageList(page int, size int) (*[]*po.PpmOrcConfig, int64, error)

func SelectDepartment

func SelectDepartment(cond db.Cond) (*[]po.PpmOrgDepartment, error)

func SelectDepartmentById

func SelectDepartmentById(id int64) (*po.PpmOrgDepartment, error)

func SelectDepartmentByIdAndOrg

func SelectDepartmentByIdAndOrg(id int64, orgId int64) (*po.PpmOrgDepartment, error)

func SelectDepartmentByPage

func SelectDepartmentByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmOrgDepartment, uint64, error)

func SelectOneDepartment

func SelectOneDepartment(cond db.Cond) (*po.PpmOrgDepartment, error)

func SelectOneUserDepartment

func SelectOneUserDepartment(cond db.Cond) (*po.PpmOrgUserDepartment, error)

func SelectUserDepartment

func SelectUserDepartment(cond db.Cond) (*[]po.PpmOrgUserDepartment, error)

func SelectUserDepartmentById

func SelectUserDepartmentById(id int64) (*po.PpmOrgUserDepartment, error)

func SelectUserDepartmentByIdAndOrg

func SelectUserDepartmentByIdAndOrg(id int64, orgId int64) (*po.PpmOrgUserDepartment, error)

func SelectUserDepartmentByPage

func SelectUserDepartmentByPage(cond db.Cond, pageBo bo.PageBo) (*[]po.PpmOrgUserDepartment, uint64, error)

func UpdateDepartment

func UpdateDepartment(po po.PpmOrgDepartment, tx ...sqlbuilder.Tx) error

func UpdateDepartmentByCond

func UpdateDepartmentByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateDepartmentById

func UpdateDepartmentById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateDepartmentByOrg

func UpdateDepartmentByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateUserDepartment

func UpdateUserDepartment(po po.PpmOrgUserDepartment, tx ...sqlbuilder.Tx) error

func UpdateUserDepartmentByCond

func UpdateUserDepartmentByCond(cond db.Cond, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateUserDepartmentById

func UpdateUserDepartmentById(id int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

func UpdateUserDepartmentByOrg

func UpdateUserDepartmentByOrg(id int64, orgId int64, upd mysql.Upd, tx ...sqlbuilder.Tx) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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