作者 tangxuhui

更新

... ... @@ -13,7 +13,9 @@ type ListCooperationContractQuery struct {
// 查询偏离量
PageNumber int `json:"pageNumber"`
// 查询限制
PageSize int `json:"pageSize" valid:"Required"`
PageSize int `json:"pageSize" valid:"Required"`
CooperationContractNumber string `json:"cooperationContractNumber"`
SponsorName string `json:"sponsorName"`
}
func (listCooperationContractQuery *ListCooperationContractQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -112,8 +112,10 @@ func (cooperationContractService *CooperationContractService) ListCooperationCon
}
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(listCooperationContractQuery.Operator)
result, err := creationCooperationGateway.CooperationContractSearch(allied_creation_cooperation.ReqCooperationContractSearch{
PageNumber: listCooperationContractQuery.PageNumber,
PageSize: listCooperationContractQuery.PageSize,
PageNumber: listCooperationContractQuery.PageNumber,
PageSize: listCooperationContractQuery.PageSize,
SponsorName: listCooperationContractQuery.SponsorName,
CooperationContractNumber: listCooperationContractQuery.CooperationContractNumber,
})
if err != nil {
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
... ...
... ... @@ -88,10 +88,10 @@ func (controller *BaseController) GetOperator() domain.Operator {
}
// TODO:测试数据后期删除
if op.UserId == 0 {
op.UserId = 9
op.UserId = 23
op.CompanyId = 23
op.OrgId = 45
op.UserBaseId = 5
op.UserBaseId = 23
}
// TODO:打印测试日志
log.Logger.Debug("operator " + json.MarshalToString(op))
... ...