正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论