作者 yangfu

分红合约列表修改

@@ -26,7 +26,11 @@ func (srv CompanyStatisticsService) SearchDividendContracts(cmd *command.SearchD @@ -26,7 +26,11 @@ func (srv CompanyStatisticsService) SearchDividendContracts(cmd *command.SearchD
26 cmd.OrgId = cmd.Operator.OrgId 26 cmd.OrgId = cmd.Operator.OrgId
27 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( 27 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
28 cmd.Operator) 28 cmd.Operator)
29 - result, err := gateway.CooperationStatistics(allied_creation_cooperation.SearchContractDividends, cmd) 29 + result, err := gateway.CooperationStatistics(allied_creation_cooperation.SearchContractDividends, map[string]interface{}{
  30 + "offset": cmd.PageNumber * cmd.PageSize,
  31 + "limit": cmd.PageSize,
  32 + "orgId": cmd.Operator.OrgId,
  33 + })
30 if err != nil { 34 if err != nil {
31 return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 35 return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
32 } 36 }