...
|
...
|
@@ -4,7 +4,6 @@ import ( |
|
|
"crypto/sha1"
|
|
|
"errors"
|
|
|
"fmt"
|
|
|
"strconv"
|
|
|
"time"
|
|
|
|
|
|
"github.com/astaxie/beego/logs"
|
...
|
...
|
@@ -230,7 +229,7 @@ func (c *PartnerInfoController) PartnerInfoSetState() { |
|
|
//ListPartnerInfo 合伙人列表
|
|
|
func (c *PartnerInfoController) ListPartnerInfo() {
|
|
|
type Parameter struct {
|
|
|
Partnertype string `json:"partnerType"`
|
|
|
Partnertype int `json:"partnerType"`
|
|
|
Area string `json:"area"`
|
|
|
PartnerName string `json:"partnerName"`
|
|
|
PageSize int `json:"pageSize"`
|
...
|
...
|
@@ -245,7 +244,7 @@ func (c *PartnerInfoController) ListPartnerInfo() { |
|
|
c.ResponseError(errors.New("json数据解析失败"))
|
|
|
return
|
|
|
}
|
|
|
partnertype, _ := strconv.Atoi(param.Partnertype)
|
|
|
|
|
|
if param.PageNumber == 0 {
|
|
|
param.PageNumber = 1
|
|
|
}
|
...
|
...
|
@@ -253,7 +252,7 @@ func (c *PartnerInfoController) ListPartnerInfo() { |
|
|
param.PageSize = 20
|
|
|
}
|
|
|
query := partnerQuery.ListPartnerInfoQuery{
|
|
|
Partnertype: partnertype,
|
|
|
Partnertype: param.Partnertype,
|
|
|
PartnerName: param.PartnerName,
|
|
|
RegionInfo: param.Area,
|
|
|
Limit: param.PageSize,
|
...
|
...
|
|