...
|
...
|
@@ -118,6 +118,7 @@ func (cooperationContractService *CooperationContractService) ListCooperationCon |
|
|
PageSize: listCooperationContractQuery.PageSize,
|
|
|
SponsorName: listCooperationContractQuery.SponsorName,
|
|
|
CooperationContractNumber: listCooperationContractQuery.CooperationContractNumber,
|
|
|
OrgIds: listCooperationContractQuery.Operator.OrgIds,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -214,6 +215,7 @@ func (cooperationContractService *CooperationContractService) SearchCooperationC |
|
|
PageNumber: queryParam.PageNumber,
|
|
|
PageIndex: queryParam.PageSize,
|
|
|
CompanyId: queryParam.Operator.CompanyId,
|
|
|
OrgIds: queryParam.Operator.OrgIds,
|
|
|
})
|
|
|
|
|
|
return result.Grid.Total, result.Grid.List, err
|
...
|
...
|
@@ -231,3 +233,27 @@ func (cooperationContractService *CooperationContractService) RemoveCooperationC |
|
|
|
|
|
return removeCooperationContractCommand, nil
|
|
|
}
|
|
|
|
|
|
// 分红单,分红退货单 返回共创合约下拉选择列表
|
|
|
func (cooperationContractService *CooperationContractService) ContractSelectorForDividendsOrder(
|
|
|
listCooperationContractQuery *query.ListContractSelectorQuery) (int, interface{}, error) {
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(listCooperationContractQuery.Operator)
|
|
|
result, err := creationCooperationGateway.CooperationContractSearch(allied_creation_cooperation.ReqCooperationContractSearch{
|
|
|
PageNumber: listCooperationContractQuery.PageNumber,
|
|
|
PageSize: listCooperationContractQuery.PageSize,
|
|
|
SponsorName: listCooperationContractQuery.SponsorName,
|
|
|
CooperationContractNumber: listCooperationContractQuery.CooperationContractNumber,
|
|
|
OrgId: listCooperationContractQuery.Operator.OrgId,
|
|
|
IncentivesType: 1,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
data := []dto.CooperationContractItem{}
|
|
|
for i := range result.Grid.List {
|
|
|
item := dto.ToCooperationContractItem(&result.Grid.List[i], listCooperationContractQuery.Operator.OrgId)
|
|
|
data = append(data, *item)
|
|
|
}
|
|
|
|
|
|
return result.Grid.Total, data, nil
|
|
|
} |
...
|
...
|
|