作者 yangfu

共创项目参与人数限制修改

@@ -245,7 +245,7 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer @@ -245,7 +245,7 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer
245 245
246 // 0.2 合约数据 246 // 0.2 合约数据
247 contractRepository, _ := dao.NewCooperationContractDao(ptr.transactionContext) // repository.NewCooperationContractRepository(ptr.transactionContext) 247 contractRepository, _ := dao.NewCooperationContractDao(ptr.transactionContext) // repository.NewCooperationContractRepository(ptr.transactionContext)
248 - _, contracts, _ := contractRepository.Find(map[string]interface{}{"cooperationProjectNumber": project.CooperationProjectNumber, "companyId": project.Company.CompanyId, "orgId": project.Org.OrgId}) 248 + _, contracts, _ := contractRepository.Find(map[string]interface{}{"cooperationProjectNumber": project.CooperationProjectNumber, "companyId": project.Company.CompanyId, "orgId": project.Org.OrgId, "offsetLimit": false})
249 if len(contracts) == 0 { 249 if len(contracts) == 0 {
250 return response, nil 250 return response, nil
251 } 251 }
@@ -262,7 +262,7 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer @@ -262,7 +262,7 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer
262 262
263 // 1.项目的承接人 263 // 1.项目的承接人
264 undertakerRepository, _ := repository.NewCooperationContractUndertakerRepository(ptr.transactionContext) 264 undertakerRepository, _ := repository.NewCooperationContractUndertakerRepository(ptr.transactionContext)
265 - _, undertakers, err := undertakerRepository.Find(map[string]interface{}{"cooperationContractNumbers": contractNumbers, "companyId": project.Company.CompanyId, "orgId": project.Org.OrgId}) 265 + _, undertakers, err := undertakerRepository.Find(map[string]interface{}{"cooperationContractNumbers": contractNumbers, "companyId": project.Company.CompanyId, "orgId": project.Org.OrgId, "offsetLimitFlag": false})
266 userSorted := make([]string, 0) 266 userSorted := make([]string, 0)
267 mapUser := make(map[string]*domain.ContractParticipant) 267 mapUser := make(map[string]*domain.ContractParticipant)
268 for i := range undertakers { 268 for i := range undertakers {
@@ -283,7 +283,7 @@ type searchContractDividendsResult struct { @@ -283,7 +283,7 @@ type searchContractDividendsResult struct {
283 func (ptr *CooperationStatisticsService) GetContractDividends(queryOptions map[string]interface{}) (interface{}, error) { 283 func (ptr *CooperationStatisticsService) GetContractDividends(queryOptions map[string]interface{}) (interface{}, error) {
284 var request = struct { 284 var request = struct {
285 //企业 285 //企业
286 - CompanyId int64 `json:"companyId" valid:"Required"` 286 + CompanyId int64 `json:"companyId" `
287 //OrgId int64 `json:"orgId"` 287 //OrgId int64 `json:"orgId"`
288 //UserId int64 `json:"userId"` 288 //UserId int64 `json:"userId"`
289 //个人 289 //个人