作者 yangfu

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

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