作者 陈志颖

fix:修复批量删除用户

不能预览此文件类型
... ... @@ -22,7 +22,7 @@ func (dao *EmployeeDao) BatchRemove(uids []int64) error {
// pg.In(uids))
//return err
tx := dao.transactionContext.PgTx
_, err := tx.QueryOne(
_, err := tx.Query(
pg.Scan(),
"UPDATE employees SET status = 2 WHERE uid IN (?)",
pg.In(uids))
... ... @@ -32,7 +32,7 @@ func (dao *EmployeeDao) BatchRemove(uids []int64) error {
// 设置用户状态
func (dao *EmployeeDao) BatchSetStatus(uids []int64, status int) error {
tx := dao.transactionContext.PgTx
_, err := tx.QueryOne(
_, err := tx.Query(
pg.Scan(),
"UPDATE employees SET status=? WHERE uid IN (?)",
status, pg.In(uids))
... ...