...
|
...
|
@@ -32,7 +32,7 @@ func (dao *EmployeeDao) BatchSetStatus(uids []int64, status int) error { |
|
|
|
|
|
func (dao *EmployeeDao) ChangePrincipal(companyId int64, employeeAccount string) error {
|
|
|
tx := dao.transactionContext.PgTx
|
|
|
if _, err := tx.QueryOne(
|
|
|
if _, err := tx.Query(
|
|
|
pg.Scan(),
|
|
|
"UPDATE employees SET is_principal=? WHERE company_id=?",
|
|
|
false, companyId); err != nil {
|
...
|
...
|
|