正在显示
4 个修改的文件
包含
17 行增加
和
6 行删除
| @@ -19,6 +19,7 @@ func (srv CompanyCreditAccountService) CreditAccountSearch(cmd *command.CreditAc | @@ -19,6 +19,7 @@ func (srv CompanyCreditAccountService) CreditAccountSearch(cmd *command.CreditAc | ||
| 19 | PageNumber: cmd.PageNumber, | 19 | PageNumber: cmd.PageNumber, |
| 20 | PageSize: cmd.PageSize, | 20 | PageSize: cmd.PageSize, |
| 21 | PaymentStatus: cmd.PaymentStatus, | 21 | PaymentStatus: cmd.PaymentStatus, |
| 22 | + OrgId: cmd.Operator.OrgId, | ||
| 22 | }) | 23 | }) |
| 23 | if err != nil { | 24 | if err != nil { |
| 24 | return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 25 | return 0, nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
| @@ -25,10 +25,10 @@ type CreditAccountItem struct { | @@ -25,10 +25,10 @@ type CreditAccountItem struct { | ||
| 25 | OrgID int `json:"orgId,string"` | 25 | OrgID int `json:"orgId,string"` |
| 26 | OrgName string `json:"orgName"` | 26 | OrgName string `json:"orgName"` |
| 27 | } `json:"org"` // 数据所属组织机构 | 27 | } `json:"org"` // 数据所属组织机构 |
| 28 | - Company domain.CompanyData `json:"company"` // 公司 | 28 | + Company domain.CompanyData `json:"company11"` // TODO:暂时不需要公司 |
| 29 | CreatedAt int64 `json:"createdAt"` // 创建时间 | 29 | CreatedAt int64 `json:"createdAt"` // 创建时间 |
| 30 | UpdatedAt int64 `json:"updatedAt"` // 更新时间 | 30 | UpdatedAt int64 `json:"updatedAt"` // 更新时间 |
| 31 | - AccountDetail []struct { | 31 | + AccountDetail struct { |
| 32 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` | 32 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` |
| 33 | DividendsType int `json:"dividendsType"` | 33 | DividendsType int `json:"dividendsType"` |
| 34 | DividendsAmount float64 `json:"dividendsAmount"` | 34 | DividendsAmount float64 `json:"dividendsAmount"` |
| @@ -195,7 +195,7 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co | @@ -195,7 +195,7 @@ func (usersService *UsersService) CompanyUserList(companyUserListQuery *query.Co | ||
| 195 | //数据转换 | 195 | //数据转换 |
| 196 | cnt := int64(result.Count) | 196 | cnt := int64(result.Count) |
| 197 | var ( | 197 | var ( |
| 198 | - listData []dto.CompanyUserItem | 198 | + listData = make([]dto.CompanyUserItem, 0) |
| 199 | item dto.CompanyUserItem | 199 | item dto.CompanyUserItem |
| 200 | ) | 200 | ) |
| 201 | for _, v := range result.Users { | 201 | for _, v := range result.Users { |
| @@ -374,7 +374,7 @@ func (usersService *UsersService) CooperationUserList(cooperationUserListQuery * | @@ -374,7 +374,7 @@ func (usersService *UsersService) CooperationUserList(cooperationUserListQuery * | ||
| 374 | InOrgIds: cooperationUserListQuery.Operator.OrgIds, | 374 | InOrgIds: cooperationUserListQuery.Operator.OrgIds, |
| 375 | }) | 375 | }) |
| 376 | var ( | 376 | var ( |
| 377 | - listData []dto.CooperationUserItem | 377 | + listData = make([]dto.CooperationUserItem, 0) |
| 378 | item dto.CooperationUserItem | 378 | item dto.CooperationUserItem |
| 379 | ) | 379 | ) |
| 380 | cnt := result.Count | 380 | cnt := result.Count |
| @@ -38,10 +38,10 @@ type CreditAccount struct { | @@ -38,10 +38,10 @@ type CreditAccount struct { | ||
| 38 | OrgID int `json:"orgId,string"` | 38 | OrgID int `json:"orgId,string"` |
| 39 | OrgName string `json:"orgName"` | 39 | OrgName string `json:"orgName"` |
| 40 | } `json:"org"` // 数据所属组织机构 | 40 | } `json:"org"` // 数据所属组织机构 |
| 41 | - Company domain.CompanyData `json:"company"` // 公司 | 41 | + Company domain.CompanyData `json:"company1"` // 公司 |
| 42 | CreatedAt time.Time `json:"createdAt"` // 创建时间 | 42 | CreatedAt time.Time `json:"createdAt"` // 创建时间 |
| 43 | UpdatedAt time.Time `json:"updatedAt"` // 更新时间 | 43 | UpdatedAt time.Time `json:"updatedAt"` // 更新时间 |
| 44 | - AccountDetail []struct { | 44 | + AccountDetail struct { |
| 45 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` | 45 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` |
| 46 | DividendsType int `json:"dividendsType"` | 46 | DividendsType int `json:"dividendsType"` |
| 47 | DividendsAmount float64 `json:"dividendsAmount"` | 47 | DividendsAmount float64 `json:"dividendsAmount"` |
| @@ -76,6 +76,16 @@ type ( | @@ -76,6 +76,16 @@ type ( | ||
| 76 | PaymentStatus int32 `json:"paymentStatus" valid:"Required"` | 76 | PaymentStatus int32 `json:"paymentStatus" valid:"Required"` |
| 77 | // 结算周期,按年“2021”或者按月结算”2021-07“ | 77 | // 结算周期,按年“2021”或者按月结算”2021-07“ |
| 78 | Period time.Time `json:"period,omitempty"` | 78 | Period time.Time `json:"period,omitempty"` |
| 79 | + // 公司ID,通过集成REST上下文获取 | ||
| 80 | + CompanyId int64 `cname:"公司ID" json:"companyId"` | ||
| 81 | + // 组织机构ID | ||
| 82 | + OrgId int64 `cname:"组织机构ID" json:"orgId"` | ||
| 83 | + // 关联的组织机构ID列表 | ||
| 84 | + OrgIds []int64 `cname:"关联的组织机构ID列表" json:"orgIds"` | ||
| 85 | + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 | ||
| 86 | + UserId int64 `cname:"用户ID" json:"userId"` | ||
| 87 | + // 用户基础数据id | ||
| 88 | + UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId"` | ||
| 79 | } | 89 | } |
| 80 | 90 | ||
| 81 | DataCreditAccountsSearch struct { | 91 | DataCreditAccountsSearch struct { |
-
请 注册 或 登录 后发表评论