作者 tangxuhui

Merge branch 'dev' into local-tangxvhui

@@ -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,