正在显示
2 个修改的文件
包含
1 行增加
和
3 行删除
@@ -30,7 +30,6 @@ func (repository *CompanyRepository) Save(company *domain.Company) (*domain.Comp | @@ -30,7 +30,6 @@ func (repository *CompanyRepository) Save(company *domain.Company) (*domain.Comp | ||
30 | "company_info", | 30 | "company_info", |
31 | "create_at", | 31 | "create_at", |
32 | "update_at", | 32 | "update_at", |
33 | - "delete_at", | ||
34 | } | 33 | } |
35 | insertFieldsSnippet := sqlbuilder.SqlFieldsSnippet(sqlBuildFields) | 34 | insertFieldsSnippet := sqlbuilder.SqlFieldsSnippet(sqlBuildFields) |
36 | insertPlaceHoldersSnippet := sqlbuilder.SqlPlaceHoldersSnippet(sqlBuildFields) | 35 | insertPlaceHoldersSnippet := sqlbuilder.SqlPlaceHoldersSnippet(sqlBuildFields) |
@@ -76,7 +75,6 @@ func (repository *CompanyRepository) Save(company *domain.Company) (*domain.Comp | @@ -76,7 +75,6 @@ func (repository *CompanyRepository) Save(company *domain.Company) (*domain.Comp | ||
76 | 75 | ||
77 | fmt.Sprintf("UPDATE companies SET %s WHERE company_id=? RETURNING %s", updateFieldsSnippet, returningFieldsSnippet), | 76 | fmt.Sprintf("UPDATE companies SET %s WHERE company_id=? RETURNING %s", updateFieldsSnippet, returningFieldsSnippet), |
78 | 77 | ||
79 | - company.CompanyId, | ||
80 | company.CompanyInfo, | 78 | company.CompanyInfo, |
81 | company.CreateAt, | 79 | company.CreateAt, |
82 | company.UpdateAt, | 80 | company.UpdateAt, |
-
请 注册 或 登录 后发表评论