正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -32,7 +32,7 @@ func (dao *EmployeeDao) BatchSetStatus(uids []int64, status int) error { | @@ -32,7 +32,7 @@ func (dao *EmployeeDao) BatchSetStatus(uids []int64, status int) error { | ||
| 32 | 32 | ||
| 33 | func (dao *EmployeeDao) ChangePrincipal(companyId int64, employeeAccount string) error { | 33 | func (dao *EmployeeDao) ChangePrincipal(companyId int64, employeeAccount string) error { |
| 34 | tx := dao.transactionContext.PgTx | 34 | tx := dao.transactionContext.PgTx |
| 35 | - if _, err := tx.QueryOne( | 35 | + if _, err := tx.Query( |
| 36 | pg.Scan(), | 36 | pg.Scan(), |
| 37 | "UPDATE employees SET is_principal=? WHERE company_id=?", | 37 | "UPDATE employees SET is_principal=? WHERE company_id=?", |
| 38 | false, companyId); err != nil { | 38 | false, companyId); err != nil { |
-
请 注册 或 登录 后发表评论