...
|
...
|
@@ -170,8 +170,8 @@ func (c *PartnerInfoController) GetPartnerInfo() { |
|
|
"area": partnerInfo.RegionInfo.RegionName,
|
|
|
"salesmanName": "",
|
|
|
"phone": "",
|
|
|
"createTime": partnerInfo.CreateAt.Format("2006-01-02 15:04:05"),
|
|
|
"cooperationTime": partnerInfo.CooperateTime.Format("2006-01-02"),
|
|
|
"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,
|
|
|
}
|
...
|
...
|
@@ -187,8 +187,8 @@ func (c *PartnerInfoController) GetPartnerInfo() { |
|
|
func (c *PartnerInfoController) PartnerInfoSetState() {
|
|
|
//用与适配前端定义的数据结构
|
|
|
type Parameter struct {
|
|
|
Id int64 `json:"id"`
|
|
|
status string `json:"status"`
|
|
|
Id int64 `json:"id"`
|
|
|
status int `json:"status"`
|
|
|
}
|
|
|
var (
|
|
|
param Parameter
|
...
|
...
|
@@ -203,10 +203,10 @@ func (c *PartnerInfoController) PartnerInfoSetState() { |
|
|
cmd := partnerInfoCmd.StatusPartnerInfoCommand{
|
|
|
Id: param.Id,
|
|
|
}
|
|
|
if param.status == "1" {
|
|
|
if param.status == 1 {
|
|
|
//禁用操作
|
|
|
cmd.Status = domain.PARTNER_STATUS_NO
|
|
|
} else if param.status == "2" {
|
|
|
} else if param.status == 2 {
|
|
|
//启用操作
|
|
|
cmd.Status = domain.PARTNER_STATUS_YES
|
|
|
} else {
|
...
|
...
|
@@ -270,8 +270,8 @@ func (c *PartnerInfoController) ListPartnerInfo() { |
|
|
"account": partners[i].Account,
|
|
|
"partnerName": partners[i].PartnerName,
|
|
|
"area": partners[i].RegionInfo.RegionName,
|
|
|
"createTime": partners[i].CreateAt.Format("2006-01-02 15:04:05"),
|
|
|
"cooperationTime": partners[i].CooperateTime.Format("2006-01-02"),
|
|
|
"createTime": partners[i].CreateAt.Local().Format("2006-01-02 15:04:05"),
|
|
|
"cooperationTime": partners[i].CooperateTime.Local().Format("2006-01-02"),
|
|
|
"state": partners[i].Status,
|
|
|
"partnerType": partners[i].PartnerCategory,
|
|
|
"salesmanName": "",
|
...
|
...
|
|