作者 庄敏学

修复部门设置主管报错问题

@@ -92,7 +92,7 @@ func (repo *DepartmentRepository) FindOne(queryOptions map[string]interface{}) ( @@ -92,7 +92,7 @@ func (repo *DepartmentRepository) FindOne(queryOptions map[string]interface{}) (
92 func (repo *DepartmentRepository) Find(queryOptions map[string]interface{}) (int, []*domain.Department, error) { 92 func (repo *DepartmentRepository) Find(queryOptions map[string]interface{}) (int, []*domain.Department, error) {
93 tx := repo.transactionContext.PgTx 93 tx := repo.transactionContext.PgTx
94 dparmentModel := []models.Department{} 94 dparmentModel := []models.Department{}
95 - query := tx.Model(&dparmentModel).Where("delete_at isnull") 95 + query := tx.Model(&dparmentModel)
96 if v, ok := queryOptions["id"]; ok { 96 if v, ok := queryOptions["id"]; ok {
97 query.Where("id=?", v) 97 query.Where("id=?", v)
98 } 98 }