作者 linmadan

修复同步变更管理员bug

@@ -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 {