Merge branch 'dev' into local-tangxvhui
正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
@@ -22,7 +22,7 @@ type UpdateCompanyCommand struct { | @@ -22,7 +22,7 @@ type UpdateCompanyCommand struct { | ||
22 | } | 22 | } |
23 | 23 | ||
24 | func (updateCompanyCommand *UpdateCompanyCommand) Valid(validation *validation.Validation) { | 24 | func (updateCompanyCommand *UpdateCompanyCommand) Valid(validation *validation.Validation) { |
25 | - validation.SetError("CustomValid", "未实现的自定义认证") | 25 | + //validation.SetError("CustomValid", "未实现的自定义认证") |
26 | } | 26 | } |
27 | 27 | ||
28 | func (updateCompanyCommand *UpdateCompanyCommand) ValidateCommand() error { | 28 | func (updateCompanyCommand *UpdateCompanyCommand) ValidateCommand() error { |
@@ -68,6 +68,7 @@ func (repository *CompanyRepository) Save(company *domain.Company) (*domain.Comp | @@ -68,6 +68,7 @@ func (repository *CompanyRepository) Save(company *domain.Company) (*domain.Comp | ||
68 | } else { | 68 | } else { |
69 | if _, err := tx.QueryOne( | 69 | if _, err := tx.QueryOne( |
70 | pg.Scan( | 70 | pg.Scan( |
71 | + &company.CompanyId, | ||
71 | &company.CompanyConfig, | 72 | &company.CompanyConfig, |
72 | &company.CompanyInfo, | 73 | &company.CompanyInfo, |
73 | &company.Status, | 74 | &company.Status, |
-
请 注册 或 登录 后发表评论