...
|
...
|
@@ -34,7 +34,7 @@ func (data ExportCompanyUserData) CellValue(index int, enName string) (value int |
|
|
return data[index].UserInfo.Phone
|
|
|
case "DepartmentName":
|
|
|
if data[index].Department != nil {
|
|
|
return data[index].Department.DepartmentName
|
|
|
return data[index].Department.DepartmentNumber
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
...
|
...
|
@@ -53,7 +53,7 @@ func (data ExportCompanyUserData) CellValue(index int, enName string) (value int |
|
|
return statusName
|
|
|
case "OrgName":
|
|
|
if data[index].Org != nil {
|
|
|
return data[index].Org.OrgName
|
|
|
return data[index].Org.OrgCode
|
|
|
} else {
|
|
|
return ""
|
|
|
}
|
...
|
...
|
@@ -97,6 +97,9 @@ func (data ExportCooperationUserData) CellValue(index int, enName string) (value |
|
|
case "CooperationCompany":
|
|
|
return data[index].CooperationInfo.CooperationCompany
|
|
|
case "CooperationDeadline":
|
|
|
if data[index].CooperationInfo.CooperationDeadline.IsZero() {
|
|
|
return ""
|
|
|
}
|
|
|
return data[index].CooperationInfo.CooperationDeadline.Format("2006-01-02")
|
|
|
case "Phone":
|
|
|
return data[index].UserInfo.Phone
|
...
|
...
|
|