...
|
...
|
@@ -167,8 +167,8 @@ func (c *PartnerInfoController) GetPartnerInfo() { |
|
|
}
|
|
|
//数据适配
|
|
|
rspResult := map[string]interface{}{
|
|
|
"account": partnerInfo.Account,
|
|
|
"partnerName": partnerInfo.PartnerName,
|
|
|
"account": partnerInfo.Partner.Account,
|
|
|
"partnerName": partnerInfo.Partner.PartnerName,
|
|
|
"partnerType": partnerInfo.PartnerCategory,
|
|
|
"area": partnerInfo.RegionInfo.RegionName,
|
|
|
"salesmanName": "",
|
...
|
...
|
@@ -176,7 +176,7 @@ func (c *PartnerInfoController) GetPartnerInfo() { |
|
|
"createTime": partnerInfo.CreateAt.Local().Format("2006-01-02 15:04:05"),
|
|
|
"cooperationTime": partnerInfo.CooperateTime.Local().Format("2006-01-02"),
|
|
|
"state": partnerInfo.Status,
|
|
|
"id": partnerInfo.Id,
|
|
|
"id": partnerInfo.Partner.Id,
|
|
|
}
|
|
|
if len(partnerInfo.Salesman) > 0 {
|
|
|
rspResult["salesmanName"] = partnerInfo.Salesman[0].Name
|
...
|
...
|
@@ -269,9 +269,9 @@ func (c *PartnerInfoController) ListPartnerInfo() { |
|
|
resp := []map[string]interface{}{}
|
|
|
for i := range partners {
|
|
|
m := map[string]interface{}{
|
|
|
"id": partners[i].Id,
|
|
|
"account": partners[i].Account,
|
|
|
"partnerName": partners[i].PartnerName,
|
|
|
"id": partners[i].Partner.Id,
|
|
|
"account": partners[i].Partner.Account,
|
|
|
"partnerName": partners[i].Partner.PartnerName,
|
|
|
"area": partners[i].RegionInfo.RegionName,
|
|
|
"createTime": partners[i].CreateAt.Local().Format("2006-01-02 15:04:05"),
|
|
|
"cooperationTime": partners[i].CooperateTime.Local().Format("2006-01-02"),
|
...
|
...
|
|