| | |
| | | return ecode.DBErr |
| | | } |
| | | |
| | | err = model.NewCourierCompanySearch().SetId(v.Id).Updates(map[string]interface{}{ |
| | | |
| | | }) |
| | | err = model.NewCourierCompanySearch().SetId(v.Id).Updates(map[string]interface{}{}) |
| | | if err != nil { |
| | | return ecode.DBErr |
| | | } |
| | |
| | | } |
| | | |
| | | func (CourierCompanyService) UpdateCourierCompany(courierCompany *model.CourierCompany) int { |
| | | err := model.NewCourierCompanySearch().SetId(courierCompany.Id).Save(courierCompany) |
| | | err := model.NewCourierCompanySearch().SetId(courierCompany.Id).Update(courierCompany) |
| | | if err != nil { |
| | | return ecode.DBErr |
| | | } |