作者 tangxuhui

更新

... ... @@ -14,6 +14,8 @@ type ListCooperationContractQuery struct {
PageNumber int `json:"pageNumber"`
// 查询限制
PageSize int `json:"pageSize" valid:"Required"`
CooperationContractNumber string `json:"cooperationContractNumber"`
SponsorName string `json:"sponsorName"`
}
func (listCooperationContractQuery *ListCooperationContractQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -114,6 +114,8 @@ func (cooperationContractService *CooperationContractService) ListCooperationCon
result, err := creationCooperationGateway.CooperationContractSearch(allied_creation_cooperation.ReqCooperationContractSearch{
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))
... ...