...
|
...
|
@@ -23,6 +23,7 @@ type CompanyBase struct { |
|
|
Logo string `json:"logo"` //公司图标
|
|
|
Remarks string `json:"remarks"` //备注
|
|
|
Status int8 `json:"status"`
|
|
|
Abbreviation string `json:"abbreviation"`
|
|
|
}
|
|
|
|
|
|
// CompanytData 企业平台发送过来的公司数据数据
|
...
|
...
|
@@ -111,6 +112,7 @@ func (service SyncCompanyService) addCompany(data CompanytData) error { |
|
|
AdminCompanyId: data.Company.AdminCompanyId,
|
|
|
Status: data.Company.Status,
|
|
|
Enable: domain.CompanyEnableNo, //默认初始化值
|
|
|
Abbreviation: data.Company.Abbreviation,
|
|
|
}
|
|
|
err = companyRespository.Add(&comany)
|
|
|
if err != nil {
|
...
|
...
|
@@ -181,7 +183,8 @@ func (service SyncCompanyService) updateCompany(data CompanytData) error { |
|
|
"Logo": data.Company.Logo,
|
|
|
"Remarks": data.Company.Remarks,
|
|
|
"AdminCompanyId": data.Company.AdminCompanyId,
|
|
|
"Status": data.User.Status,
|
|
|
"Status": data.Company.Status,
|
|
|
"Abbreviation": data.Company.Abbreviation,
|
|
|
})
|
|
|
entryTime, _ := time.Parse("2006-01-02", data.User.EntryTime)
|
|
|
oldUser.Update(map[string]interface{}{
|
...
|
...
|
|