作者 陈志颖

feat:调整controller层参数解析

正在显示 24 个修改的文件 包含 506 行增加58 行删除
@@ -13,10 +13,6 @@ type ListCreditAccountQuery struct { @@ -13,10 +13,6 @@ type ListCreditAccountQuery struct {
13 PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"` 13 PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
14 // 页面大小 14 // 页面大小
15 PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"` 15 PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
16 - // 查询偏离量  
17 - Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`  
18 - // 查询限制  
19 - Limit int `cname:"查询限制" json:"limit" valid:"Required"`  
20 // 公司ID,通过集成REST上下文获取 16 // 公司ID,通过集成REST上下文获取
21 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"` 17 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
22 // 组织机构ID 18 // 组织机构ID
@@ -51,10 +51,12 @@ type CreateDividendsOrderCommand struct { @@ -51,10 +51,12 @@ type CreateDividendsOrderCommand struct {
51 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 51 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
52 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 52 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
53 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 53 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  54 + // 用户基础信息id
  55 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId" valid:"Required"`
54 } 56 }
55 57
56 func (createDividendsOrderCommand *CreateDividendsOrderCommand) Valid(validation *validation.Validation) { 58 func (createDividendsOrderCommand *CreateDividendsOrderCommand) Valid(validation *validation.Validation) {
57 - validation.SetError("CustomValid", "未实现的自定义认证") 59 + //validation.SetError("CustomValid", "未实现的自定义认证")
58 } 60 }
59 61
60 func (createDividendsOrderCommand *CreateDividendsOrderCommand) ValidateCommand() error { 62 func (createDividendsOrderCommand *CreateDividendsOrderCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type RemoveDividendsOrderCommand struct { @@ -17,10 +17,12 @@ type RemoveDividendsOrderCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeDividendsOrderCommand *RemoveDividendsOrderCommand) Valid(validation *validation.Validation) { 24 func (removeDividendsOrderCommand *RemoveDividendsOrderCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (removeDividendsOrderCommand *RemoveDividendsOrderCommand) ValidateCommand() error { 28 func (removeDividendsOrderCommand *RemoveDividendsOrderCommand) ValidateCommand() error {
@@ -34,6 +34,8 @@ type UpdateDividendsOrderCommand struct { @@ -34,6 +34,8 @@ type UpdateDividendsOrderCommand struct {
34 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 34 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
35 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 35 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
36 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 36 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  37 + // 用户基础数据id
  38 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
37 } 39 }
38 40
39 func (updateDividendsOrderCommand *UpdateDividendsOrderCommand) Valid(validation *validation.Validation) { 41 func (updateDividendsOrderCommand *UpdateDividendsOrderCommand) Valid(validation *validation.Validation) {
@@ -17,6 +17,8 @@ type GetDividendsOrderQuery struct { @@ -17,6 +17,8 @@ type GetDividendsOrderQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `canme:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getDividendsOrderQuery *GetDividendsOrderQuery) Valid(validation *validation.Validation) { 24 func (getDividendsOrderQuery *GetDividendsOrderQuery) Valid(validation *validation.Validation) {
@@ -23,6 +23,8 @@ type ListDividendsOrdersQuery struct { @@ -23,6 +23,8 @@ type ListDividendsOrdersQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (listDividendsOrdersQuery *ListDividendsOrdersQuery) Valid(validation *validation.Validation) { 30 func (listDividendsOrdersQuery *ListDividendsOrdersQuery) Valid(validation *validation.Validation) {
@@ -23,6 +23,8 @@ type SearchDividendsOrderQuery struct { @@ -23,6 +23,8 @@ type SearchDividendsOrderQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (searchDividendsOrderQuery *SearchDividendsOrderQuery) Valid(validation *validation.Validation) { 30 func (searchDividendsOrderQuery *SearchDividendsOrderQuery) Valid(validation *validation.Validation) {
@@ -17,6 +17,8 @@ type SearchDividendsOrderNumberQuery struct { @@ -17,6 +17,8 @@ type SearchDividendsOrderNumberQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (searchDividendsOrderNumberQuery *SearchDividendsOrderNumberQuery) Valid(validation *validation.Validation) { 24 func (searchDividendsOrderNumberQuery *SearchDividendsOrderNumberQuery) Valid(validation *validation.Validation) {
@@ -47,10 +47,12 @@ type CreateDividendsReturnedOrderCommand struct { @@ -47,10 +47,12 @@ type CreateDividendsReturnedOrderCommand struct {
47 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 47 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
48 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 48 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
49 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 49 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  50 + // 用户基础数据id
  51 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
50 } 52 }
51 53
52 func (createDividendsReturnedOrderCommand *CreateDividendsReturnedOrderCommand) Valid(validation *validation.Validation) { 54 func (createDividendsReturnedOrderCommand *CreateDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
53 - validation.SetError("CustomValid", "未实现的自定义认证") 55 + //validation.SetError("CustomValid", "未实现的自定义认证")
54 } 56 }
55 57
56 func (createDividendsReturnedOrderCommand *CreateDividendsReturnedOrderCommand) ValidateCommand() error { 58 func (createDividendsReturnedOrderCommand *CreateDividendsReturnedOrderCommand) ValidateCommand() error {
@@ -19,10 +19,12 @@ type ImportDividendsReturnedOrderCommand struct { @@ -19,10 +19,12 @@ type ImportDividendsReturnedOrderCommand struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (importDividendsReturnedOrderCommand *ImportDividendsReturnedOrderCommand) Valid(validation *validation.Validation) { 26 func (importDividendsReturnedOrderCommand *ImportDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (importDividendsReturnedOrderCommand *ImportDividendsReturnedOrderCommand) ValidateCommand() error { 30 func (importDividendsReturnedOrderCommand *ImportDividendsReturnedOrderCommand) ValidateCommand() error {
@@ -17,6 +17,8 @@ type RemoveDividendsReturnedOrderCommand struct { @@ -17,6 +17,8 @@ type RemoveDividendsReturnedOrderCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeDividendsReturnedOrderCommand *RemoveDividendsReturnedOrderCommand) Valid(validation *validation.Validation) { 24 func (removeDividendsReturnedOrderCommand *RemoveDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
@@ -32,6 +32,8 @@ type UpdateDividendsReturnedOrderCommand struct { @@ -32,6 +32,8 @@ type UpdateDividendsReturnedOrderCommand struct {
32 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 32 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
33 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 33 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
34 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 34 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  35 + // 用户基础数据id
  36 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
35 } 37 }
36 38
37 func (updateDividendsReturnedOrderCommand *UpdateDividendsReturnedOrderCommand) Valid(validation *validation.Validation) { 39 func (updateDividendsReturnedOrderCommand *UpdateDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
@@ -17,10 +17,12 @@ type GetDividendsReturnedOrderQuery struct { @@ -17,10 +17,12 @@ type GetDividendsReturnedOrderQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getDividendsReturnedOrderQuery *GetDividendsReturnedOrderQuery) Valid(validation *validation.Validation) { 24 func (getDividendsReturnedOrderQuery *GetDividendsReturnedOrderQuery) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (getDividendsReturnedOrderQuery *GetDividendsReturnedOrderQuery) ValidateQuery() error { 28 func (getDividendsReturnedOrderQuery *GetDividendsReturnedOrderQuery) ValidateQuery() error {
@@ -23,6 +23,8 @@ type ListDividendsReturnedOrderQuery struct { @@ -23,6 +23,8 @@ type ListDividendsReturnedOrderQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (listDividendsReturnedOrderQuery *ListDividendsReturnedOrderQuery) Valid(validation *validation.Validation) { 30 func (listDividendsReturnedOrderQuery *ListDividendsReturnedOrderQuery) Valid(validation *validation.Validation) {
@@ -23,6 +23,8 @@ type SearchDividendsReturnedOrderQuery struct { @@ -23,6 +23,8 @@ type SearchDividendsReturnedOrderQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (searchDividendsReturnedOrderQuery *SearchDividendsReturnedOrderQuery) Valid(validation *validation.Validation) { 30 func (searchDividendsReturnedOrderQuery *SearchDividendsReturnedOrderQuery) Valid(validation *validation.Validation) {
@@ -13,7 +13,13 @@ type ContractUndertakerFeedbackController struct { @@ -13,7 +13,13 @@ type ContractUndertakerFeedbackController struct {
13 func (controller *ContractUndertakerFeedbackController) CreateContractUndertakerFeedback() { 13 func (controller *ContractUndertakerFeedbackController) CreateContractUndertakerFeedback() {
14 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil) 14 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
15 createContractUndertakerFeedbackCommand := &command.CreateContractUndertakerFeedbackCommand{} 15 createContractUndertakerFeedbackCommand := &command.CreateContractUndertakerFeedbackCommand{}
16 - controller.Unmarshal(createContractUndertakerFeedbackCommand) 16 + _ = controller.Unmarshal(createContractUndertakerFeedbackCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + createContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
  20 + createContractUndertakerFeedbackCommand.OrgId = header.OrgId
  21 + createContractUndertakerFeedbackCommand.UserId = header.UserId
  22 + createContractUndertakerFeedbackCommand.UserBaseId = header.UserBaseId
17 data, err := contractUndertakerFeedbackService.CreateContractUndertakerFeedback(createContractUndertakerFeedbackCommand) 23 data, err := contractUndertakerFeedbackService.CreateContractUndertakerFeedback(createContractUndertakerFeedbackCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,14 @@ func (controller *ContractUndertakerFeedbackController) CreateContractUndertaker @@ -21,7 +27,14 @@ func (controller *ContractUndertakerFeedbackController) CreateContractUndertaker
21 func (controller *ContractUndertakerFeedbackController) UpdateContractUndertakerFeedback() { 27 func (controller *ContractUndertakerFeedbackController) UpdateContractUndertakerFeedback() {
22 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil) 28 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
23 updateContractUndertakerFeedbackCommand := &command.UpdateContractUndertakerFeedbackCommand{} 29 updateContractUndertakerFeedbackCommand := &command.UpdateContractUndertakerFeedbackCommand{}
24 - controller.Unmarshal(updateContractUndertakerFeedbackCommand) 30 + _ = controller.Unmarshal(updateContractUndertakerFeedbackCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + updateContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
  34 + updateContractUndertakerFeedbackCommand.OrgId = header.OrgId
  35 + updateContractUndertakerFeedbackCommand.UserId = header.UserId
  36 + updateContractUndertakerFeedbackCommand.UserBaseId = header.UserBaseId
  37 + // 解析路径参数
25 contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId") 38 contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId")
26 updateContractUndertakerFeedbackCommand.FeedbackId = contractUndertakerFeedbackId 39 updateContractUndertakerFeedbackCommand.FeedbackId = contractUndertakerFeedbackId
27 data, err := contractUndertakerFeedbackService.UpdateContractUndertakerFeedback(updateContractUndertakerFeedbackCommand) 40 data, err := contractUndertakerFeedbackService.UpdateContractUndertakerFeedback(updateContractUndertakerFeedbackCommand)
@@ -47,7 +60,7 @@ func (controller *ContractUndertakerFeedbackController) GetContractUndertakerFee @@ -47,7 +60,7 @@ func (controller *ContractUndertakerFeedbackController) GetContractUndertakerFee
47 func (controller *ContractUndertakerFeedbackController) RemoveContractUndertakerFeedback() { 60 func (controller *ContractUndertakerFeedbackController) RemoveContractUndertakerFeedback() {
48 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil) 61 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
49 removeContractUndertakerFeedbackCommand := &command.RemoveContractUndertakerFeedbackCommand{} 62 removeContractUndertakerFeedbackCommand := &command.RemoveContractUndertakerFeedbackCommand{}
50 - controller.Unmarshal(removeContractUndertakerFeedbackCommand) 63 + _ = controller.Unmarshal(removeContractUndertakerFeedbackCommand)
51 // 解析头部信息 64 // 解析头部信息
52 header := controller.GetRequestHeader(controller.Ctx) 65 header := controller.GetRequestHeader(controller.Ctx)
53 removeContractUndertakerFeedbackCommand.CompanyId = header.CompanyId 66 removeContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
@@ -13,7 +13,13 @@ type CooperationApplicationController struct { @@ -13,7 +13,13 @@ type CooperationApplicationController struct {
13 func (controller *CooperationApplicationController) ApplyForCooperation() { 13 func (controller *CooperationApplicationController) ApplyForCooperation() {
14 cooperationApplicationService := service.NewCooperationApplicationService(nil) 14 cooperationApplicationService := service.NewCooperationApplicationService(nil)
15 applyForCooperationCommand := &command.ApplyForCooperationCommand{} 15 applyForCooperationCommand := &command.ApplyForCooperationCommand{}
16 - controller.Unmarshal(applyForCooperationCommand) 16 + _ = controller.Unmarshal(applyForCooperationCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + applyForCooperationCommand.CompanyId = header.CompanyId
  20 + applyForCooperationCommand.OrgId = header.OrgId
  21 + applyForCooperationCommand.UserId = header.UserId
  22 + applyForCooperationCommand.UserBaseId = header.UserBaseId
17 data, err := cooperationApplicationService.ApplyForCooperation(applyForCooperationCommand) 23 data, err := cooperationApplicationService.ApplyForCooperation(applyForCooperationCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *CooperationApplicationController) ApplyForCooperation() { @@ -21,7 +27,13 @@ func (controller *CooperationApplicationController) ApplyForCooperation() {
21 func (controller *CooperationApplicationController) AgreeCooperationApplication() { 27 func (controller *CooperationApplicationController) AgreeCooperationApplication() {
22 cooperationApplicationService := service.NewCooperationApplicationService(nil) 28 cooperationApplicationService := service.NewCooperationApplicationService(nil)
23 agreeCooperationApplicationCommand := &command.AgreeCooperationApplicationCommand{} 29 agreeCooperationApplicationCommand := &command.AgreeCooperationApplicationCommand{}
24 - controller.Unmarshal(agreeCooperationApplicationCommand) 30 + _ = controller.Unmarshal(agreeCooperationApplicationCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + agreeCooperationApplicationCommand.CompanyId = header.CompanyId
  34 + agreeCooperationApplicationCommand.OrgId = header.OrgId
  35 + agreeCooperationApplicationCommand.UserId = header.UserId
  36 + agreeCooperationApplicationCommand.UserBaseId = header.UserBaseId
25 data, err := cooperationApplicationService.AgreeCooperationApplication(agreeCooperationApplicationCommand) 37 data, err := cooperationApplicationService.AgreeCooperationApplication(agreeCooperationApplicationCommand)
26 controller.Response(data, err) 38 controller.Response(data, err)
27 } 39 }
@@ -29,19 +41,41 @@ func (controller *CooperationApplicationController) AgreeCooperationApplication( @@ -29,19 +41,41 @@ func (controller *CooperationApplicationController) AgreeCooperationApplication(
29 func (controller *CooperationApplicationController) RejectCooperationApplication() { 41 func (controller *CooperationApplicationController) RejectCooperationApplication() {
30 cooperationApplicationService := service.NewCooperationApplicationService(nil) 42 cooperationApplicationService := service.NewCooperationApplicationService(nil)
31 rejectCooperationApplicationCommand := &command.RejectCooperationApplicationCommand{} 43 rejectCooperationApplicationCommand := &command.RejectCooperationApplicationCommand{}
32 - controller.Unmarshal(rejectCooperationApplicationCommand) 44 + _ = controller.Unmarshal(rejectCooperationApplicationCommand)
  45 + // 解析头部信息
  46 + header := controller.GetRequestHeader(controller.Ctx)
  47 + rejectCooperationApplicationCommand.CompanyId = header.CompanyId
  48 + rejectCooperationApplicationCommand.OrgId = header.OrgId
  49 + rejectCooperationApplicationCommand.UserId = header.UserId
  50 + rejectCooperationApplicationCommand.UserBaseId = header.UserBaseId
33 data, err := cooperationApplicationService.RejectCooperationApplication(rejectCooperationApplicationCommand) 51 data, err := cooperationApplicationService.RejectCooperationApplication(rejectCooperationApplicationCommand)
34 controller.Response(data, err) 52 controller.Response(data, err)
35 } 53 }
36 54
37 func (controller *CooperationContractController) BatchApprovalCooperationApplication() { 55 func (controller *CooperationContractController) BatchApprovalCooperationApplication() {
38 - 56 + cooperationApplicationService := service.NewCooperationApplicationService(nil)
  57 + batchApprovalCooperationApplicationCommand := &command.BatchApprovalCooperationApplicationCommand{}
  58 + _ = controller.Unmarshal(batchApprovalCooperationApplicationCommand)
  59 + // 解析头部信息
  60 + header := controller.GetRequestHeader(controller.Ctx)
  61 + batchApprovalCooperationApplicationCommand.CompanyId = header.CompanyId
  62 + batchApprovalCooperationApplicationCommand.OrgId = header.OrgId
  63 + batchApprovalCooperationApplicationCommand.UserId = header.UserId
  64 + batchApprovalCooperationApplicationCommand.UserBaseId = header.UserBaseId
  65 + data, err := cooperationApplicationService.BatchApprovalCooperationApplication(batchApprovalCooperationApplicationCommand)
  66 + controller.Response(data, err)
39 } 67 }
40 68
41 func (controller *CooperationApplicationController) CreateCooperationApplication() { 69 func (controller *CooperationApplicationController) CreateCooperationApplication() {
42 cooperationApplicationService := service.NewCooperationApplicationService(nil) 70 cooperationApplicationService := service.NewCooperationApplicationService(nil)
43 createCooperationApplicationCommand := &command.CreateCooperationApplicationCommand{} 71 createCooperationApplicationCommand := &command.CreateCooperationApplicationCommand{}
44 - controller.Unmarshal(createCooperationApplicationCommand) 72 + _ = controller.Unmarshal(createCooperationApplicationCommand)
  73 + // 解析头部信息
  74 + header := controller.GetRequestHeader(controller.Ctx)
  75 + createCooperationApplicationCommand.CompanyId = header.CompanyId
  76 + createCooperationApplicationCommand.OrgId = header.OrgId
  77 + createCooperationApplicationCommand.UserId = header.UserId
  78 + createCooperationApplicationCommand.UserBaseId = header.UserBaseId
45 data, err := cooperationApplicationService.CreateCooperationApplication(createCooperationApplicationCommand) 79 data, err := cooperationApplicationService.CreateCooperationApplication(createCooperationApplicationCommand)
46 controller.Response(data, err) 80 controller.Response(data, err)
47 } 81 }
@@ -49,7 +83,14 @@ func (controller *CooperationApplicationController) CreateCooperationApplication @@ -49,7 +83,14 @@ func (controller *CooperationApplicationController) CreateCooperationApplication
49 func (controller *CooperationApplicationController) UpdateCooperationApplication() { 83 func (controller *CooperationApplicationController) UpdateCooperationApplication() {
50 cooperationApplicationService := service.NewCooperationApplicationService(nil) 84 cooperationApplicationService := service.NewCooperationApplicationService(nil)
51 updateCooperationApplicationCommand := &command.UpdateCooperationApplicationCommand{} 85 updateCooperationApplicationCommand := &command.UpdateCooperationApplicationCommand{}
52 - controller.Unmarshal(updateCooperationApplicationCommand) 86 + _ = controller.Unmarshal(updateCooperationApplicationCommand)
  87 + // 解析头部信息
  88 + header := controller.GetRequestHeader(controller.Ctx)
  89 + updateCooperationApplicationCommand.CompanyId = header.CompanyId
  90 + updateCooperationApplicationCommand.OrgId = header.OrgId
  91 + updateCooperationApplicationCommand.UserId = header.UserId
  92 + updateCooperationApplicationCommand.UserBaseId = header.UserBaseId
  93 + // 解析路径参数
53 cooperationApplicationId := controller.GetString(":cooperationApplicationId") 94 cooperationApplicationId := controller.GetString(":cooperationApplicationId")
54 updateCooperationApplicationCommand.CooperationApplicationId = cooperationApplicationId 95 updateCooperationApplicationCommand.CooperationApplicationId = cooperationApplicationId
55 data, err := cooperationApplicationService.UpdateCooperationApplication(updateCooperationApplicationCommand) 96 data, err := cooperationApplicationService.UpdateCooperationApplication(updateCooperationApplicationCommand)
@@ -59,6 +100,13 @@ func (controller *CooperationApplicationController) UpdateCooperationApplication @@ -59,6 +100,13 @@ func (controller *CooperationApplicationController) UpdateCooperationApplication
59 func (controller *CooperationApplicationController) GetCooperationApplication() { 100 func (controller *CooperationApplicationController) GetCooperationApplication() {
60 cooperationApplicationService := service.NewCooperationApplicationService(nil) 101 cooperationApplicationService := service.NewCooperationApplicationService(nil)
61 getCooperationApplicationQuery := &query.GetCooperationApplicationQuery{} 102 getCooperationApplicationQuery := &query.GetCooperationApplicationQuery{}
  103 + // 解析头部信息
  104 + header := controller.GetRequestHeader(controller.Ctx)
  105 + getCooperationApplicationQuery.CompanyId = header.CompanyId
  106 + getCooperationApplicationQuery.OrgId = header.OrgId
  107 + getCooperationApplicationQuery.UserId = header.UserId
  108 + getCooperationApplicationQuery.UserBaseId = header.UserBaseId
  109 + // 解析路劲参数
62 cooperationApplicationId, _ := controller.GetInt64(":cooperationApplicationId") 110 cooperationApplicationId, _ := controller.GetInt64(":cooperationApplicationId")
63 getCooperationApplicationQuery.CooperationApplicationId = cooperationApplicationId 111 getCooperationApplicationQuery.CooperationApplicationId = cooperationApplicationId
64 data, err := cooperationApplicationService.GetCooperationApplication(getCooperationApplicationQuery) 112 data, err := cooperationApplicationService.GetCooperationApplication(getCooperationApplicationQuery)
@@ -68,7 +116,14 @@ func (controller *CooperationApplicationController) GetCooperationApplication() @@ -68,7 +116,14 @@ func (controller *CooperationApplicationController) GetCooperationApplication()
68 func (controller *CooperationApplicationController) RemoveCooperationApplication() { 116 func (controller *CooperationApplicationController) RemoveCooperationApplication() {
69 cooperationApplicationService := service.NewCooperationApplicationService(nil) 117 cooperationApplicationService := service.NewCooperationApplicationService(nil)
70 removeCooperationApplicationCommand := &command.RemoveCooperationApplicationCommand{} 118 removeCooperationApplicationCommand := &command.RemoveCooperationApplicationCommand{}
71 - controller.Unmarshal(removeCooperationApplicationCommand) 119 + _ = controller.Unmarshal(removeCooperationApplicationCommand)
  120 + // 解析头部信息
  121 + header := controller.GetRequestHeader(controller.Ctx)
  122 + removeCooperationApplicationCommand.CompanyId = header.CompanyId
  123 + removeCooperationApplicationCommand.OrgId = header.OrgId
  124 + removeCooperationApplicationCommand.UserId = header.UserId
  125 + removeCooperationApplicationCommand.UserBaseId = header.UserBaseId
  126 + // 解析路径参数
72 cooperationApplicationId, _ := controller.GetInt64(":cooperationApplicationId") 127 cooperationApplicationId, _ := controller.GetInt64(":cooperationApplicationId")
73 removeCooperationApplicationCommand.CooperationApplicationId = cooperationApplicationId 128 removeCooperationApplicationCommand.CooperationApplicationId = cooperationApplicationId
74 data, err := cooperationApplicationService.RemoveCooperationApplication(removeCooperationApplicationCommand) 129 data, err := cooperationApplicationService.RemoveCooperationApplication(removeCooperationApplicationCommand)
@@ -78,6 +133,17 @@ func (controller *CooperationApplicationController) RemoveCooperationApplication @@ -78,6 +133,17 @@ func (controller *CooperationApplicationController) RemoveCooperationApplication
78 func (controller *CooperationApplicationController) SearchCooperationApplication() { 133 func (controller *CooperationApplicationController) SearchCooperationApplication() {
79 cooperationApplicationService := service.NewCooperationApplicationService(nil) 134 cooperationApplicationService := service.NewCooperationApplicationService(nil)
80 searchCooperationApplicationQuery := &query.SearchCooperationApplicationQuery{} 135 searchCooperationApplicationQuery := &query.SearchCooperationApplicationQuery{}
  136 + // 解析头部信息
  137 + header := controller.GetRequestHeader(controller.Ctx)
  138 + searchCooperationApplicationQuery.CompanyId = header.CompanyId
  139 + searchCooperationApplicationQuery.OrgId = header.OrgId
  140 + searchCooperationApplicationQuery.UserId = header.UserId
  141 + searchCooperationApplicationQuery.UserBaseId = header.UserBaseId
  142 + // 解析其他参数
  143 + pageSize, _ := controller.GetInt32("pageSize")
  144 + searchCooperationApplicationQuery.PageSize = pageSize
  145 + pageNumber, _ := controller.GetInt32("pageNumber")
  146 + searchCooperationApplicationQuery.PageNumber = pageNumber
81 data, err := cooperationApplicationService.SearchCooperationApplication(searchCooperationApplicationQuery) 147 data, err := cooperationApplicationService.SearchCooperationApplication(searchCooperationApplicationQuery)
82 controller.Response(data, err) 148 controller.Response(data, err)
83 } 149 }
@@ -85,10 +151,17 @@ func (controller *CooperationApplicationController) SearchCooperationApplication @@ -85,10 +151,17 @@ func (controller *CooperationApplicationController) SearchCooperationApplication
85 func (controller *CooperationApplicationController) ListCooperationApplication() { 151 func (controller *CooperationApplicationController) ListCooperationApplication() {
86 cooperationApplicationService := service.NewCooperationApplicationService(nil) 152 cooperationApplicationService := service.NewCooperationApplicationService(nil)
87 listCooperationApplicationQuery := &query.ListCooperationApplicationQuery{} 153 listCooperationApplicationQuery := &query.ListCooperationApplicationQuery{}
88 - offset, _ := controller.GetInt("offset")  
89 - listCooperationApplicationQuery.Offset = offset  
90 - limit, _ := controller.GetInt("limit")  
91 - listCooperationApplicationQuery.Limit = limit 154 + // 解析头部信息
  155 + header := controller.GetRequestHeader(controller.Ctx)
  156 + listCooperationApplicationQuery.CompanyId = header.CompanyId
  157 + listCooperationApplicationQuery.OrgId = header.OrgId
  158 + listCooperationApplicationQuery.UserId = header.UserId
  159 + listCooperationApplicationQuery.UserBaseId = header.UserBaseId
  160 + // 解析其他参数
  161 + pageSize, _ := controller.GetInt32("pageSize")
  162 + listCooperationApplicationQuery.PageSize = pageSize
  163 + pageNumber, _ := controller.GetInt32("pageNumber")
  164 + listCooperationApplicationQuery.PageNumber = pageNumber
92 data, err := cooperationApplicationService.ListCooperationApplication(listCooperationApplicationQuery) 165 data, err := cooperationApplicationService.ListCooperationApplication(listCooperationApplicationQuery)
93 controller.Response(data, err) 166 controller.Response(data, err)
94 } 167 }
@@ -13,7 +13,13 @@ type CooperationContractController struct { @@ -13,7 +13,13 @@ type CooperationContractController struct {
13 func (controller *CooperationContractController) CreateCooperationContract() { 13 func (controller *CooperationContractController) CreateCooperationContract() {
14 cooperationContractService := service.NewCooperationContractService(nil) 14 cooperationContractService := service.NewCooperationContractService(nil)
15 createCooperationContractCommand := &command.CreateCooperationContractCommand{} 15 createCooperationContractCommand := &command.CreateCooperationContractCommand{}
16 - controller.Unmarshal(createCooperationContractCommand) 16 + _ = controller.Unmarshal(createCooperationContractCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + createCooperationContractCommand.CompanyId = header.CompanyId
  20 + createCooperationContractCommand.OrgId = header.OrgId
  21 + createCooperationContractCommand.UserId = header.UserId
  22 + createCooperationContractCommand.UserBaseId = header.UserBaseId
17 data, err := cooperationContractService.CreateCooperationContract(createCooperationContractCommand) 23 data, err := cooperationContractService.CreateCooperationContract(createCooperationContractCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *CooperationContractController) CreateCooperationContract() { @@ -21,7 +27,13 @@ func (controller *CooperationContractController) CreateCooperationContract() {
21 func (controller *CooperationContractController) UpdateCooperationContract() { 27 func (controller *CooperationContractController) UpdateCooperationContract() {
22 cooperationContractService := service.NewCooperationContractService(nil) 28 cooperationContractService := service.NewCooperationContractService(nil)
23 updateCooperationContractCommand := &command.UpdateCooperationContractCommand{} 29 updateCooperationContractCommand := &command.UpdateCooperationContractCommand{}
24 - controller.Unmarshal(updateCooperationContractCommand) 30 + _ = controller.Unmarshal(updateCooperationContractCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + updateCooperationContractCommand.CompanyId = header.CompanyId
  34 + updateCooperationContractCommand.OrgId = header.OrgId
  35 + updateCooperationContractCommand.UserId = header.UserId
  36 + updateCooperationContractCommand.UserBaseId = header.UserBaseId
25 cooperationContractId := controller.GetString(":cooperationContractId") 37 cooperationContractId := controller.GetString(":cooperationContractId")
26 updateCooperationContractCommand.CooperationContractId = cooperationContractId 38 updateCooperationContractCommand.CooperationContractId = cooperationContractId
27 data, err := cooperationContractService.UpdateCooperationContract(updateCooperationContractCommand) 39 data, err := cooperationContractService.UpdateCooperationContract(updateCooperationContractCommand)
@@ -31,6 +43,12 @@ func (controller *CooperationContractController) UpdateCooperationContract() { @@ -31,6 +43,12 @@ func (controller *CooperationContractController) UpdateCooperationContract() {
31 func (controller *CooperationContractController) GetCooperationContract() { 43 func (controller *CooperationContractController) GetCooperationContract() {
32 cooperationContractService := service.NewCooperationContractService(nil) 44 cooperationContractService := service.NewCooperationContractService(nil)
33 getCooperationContractQuery := &query.GetCooperationContractQuery{} 45 getCooperationContractQuery := &query.GetCooperationContractQuery{}
  46 + // 解析头部信息
  47 + header := controller.GetRequestHeader(controller.Ctx)
  48 + getCooperationContractQuery.CompanyId = header.CompanyId
  49 + getCooperationContractQuery.OrgId = header.OrgId
  50 + getCooperationContractQuery.UserId = header.UserId
  51 + getCooperationContractQuery.UserBaseId = header.UserBaseId
34 cooperationContractId, _ := controller.GetInt64(":cooperationContractId") 52 cooperationContractId, _ := controller.GetInt64(":cooperationContractId")
35 getCooperationContractQuery.CooperationContractId = cooperationContractId 53 getCooperationContractQuery.CooperationContractId = cooperationContractId
36 data, err := cooperationContractService.GetCooperationContract(getCooperationContractQuery) 54 data, err := cooperationContractService.GetCooperationContract(getCooperationContractQuery)
@@ -40,7 +58,13 @@ func (controller *CooperationContractController) GetCooperationContract() { @@ -40,7 +58,13 @@ func (controller *CooperationContractController) GetCooperationContract() {
40 func (controller *CooperationContractController) RemoveCooperationContract() { 58 func (controller *CooperationContractController) RemoveCooperationContract() {
41 cooperationContractService := service.NewCooperationContractService(nil) 59 cooperationContractService := service.NewCooperationContractService(nil)
42 removeCooperationContractCommand := &command.RemoveCooperationContractCommand{} 60 removeCooperationContractCommand := &command.RemoveCooperationContractCommand{}
43 - controller.Unmarshal(removeCooperationContractCommand) 61 + _ = controller.Unmarshal(removeCooperationContractCommand)
  62 + // 解析头部信息
  63 + header := controller.GetRequestHeader(controller.Ctx)
  64 + removeCooperationContractCommand.CompanyId = header.CompanyId
  65 + removeCooperationContractCommand.OrgId = header.OrgId
  66 + removeCooperationContractCommand.UserId = header.UserId
  67 + removeCooperationContractCommand.UserBaseId = header.UserBaseId
44 cooperationContractId, _ := controller.GetInt64(":cooperationContractId") 68 cooperationContractId, _ := controller.GetInt64(":cooperationContractId")
45 removeCooperationContractCommand.CooperationContractId = cooperationContractId 69 removeCooperationContractCommand.CooperationContractId = cooperationContractId
46 data, err := cooperationContractService.RemoveCooperationContract(removeCooperationContractCommand) 70 data, err := cooperationContractService.RemoveCooperationContract(removeCooperationContractCommand)
@@ -50,6 +74,16 @@ func (controller *CooperationContractController) RemoveCooperationContract() { @@ -50,6 +74,16 @@ func (controller *CooperationContractController) RemoveCooperationContract() {
50 func (controller *CooperationContractController) SearchCooperationContract() { 74 func (controller *CooperationContractController) SearchCooperationContract() {
51 cooperationContractService := service.NewCooperationContractService(nil) 75 cooperationContractService := service.NewCooperationContractService(nil)
52 searchCooperationContractQuery := &query.SearchCooperationContractQuery{} 76 searchCooperationContractQuery := &query.SearchCooperationContractQuery{}
  77 + // 解析头部信息
  78 + header := controller.GetRequestHeader(controller.Ctx)
  79 + searchCooperationContractQuery.CompanyId = header.CompanyId
  80 + searchCooperationContractQuery.OrgId = header.OrgId
  81 + searchCooperationContractQuery.UserId = header.UserId
  82 + searchCooperationContractQuery.UserBaseId = header.UserBaseId
  83 + pageSize, _ := controller.GetInt32("pageSize")
  84 + searchCooperationContractQuery.PageSize = pageSize
  85 + pageNumber, _ := controller.GetInt32("pageNumber")
  86 + searchCooperationContractQuery.PageNumber = pageNumber
53 data, err := cooperationContractService.SearchCooperationContract(searchCooperationContractQuery) 87 data, err := cooperationContractService.SearchCooperationContract(searchCooperationContractQuery)
54 controller.Response(data, err) 88 controller.Response(data, err)
55 } 89 }
@@ -57,6 +91,16 @@ func (controller *CooperationContractController) SearchCooperationContract() { @@ -57,6 +91,16 @@ func (controller *CooperationContractController) SearchCooperationContract() {
57 func (controller *CooperationContractController) SearchCooperationContractByUndertaker() { 91 func (controller *CooperationContractController) SearchCooperationContractByUndertaker() {
58 cooperationContractService := service.NewCooperationContractService(nil) 92 cooperationContractService := service.NewCooperationContractService(nil)
59 searchCooperationContractByUndertakerQuery := &query.SearchCooperationContractByUndertakerQuery{} 93 searchCooperationContractByUndertakerQuery := &query.SearchCooperationContractByUndertakerQuery{}
  94 + // 解析头部信息
  95 + header := controller.GetRequestHeader(controller.Ctx)
  96 + searchCooperationContractByUndertakerQuery.CompanyId = header.CompanyId
  97 + searchCooperationContractByUndertakerQuery.OrgId = header.OrgId
  98 + searchCooperationContractByUndertakerQuery.UserId = header.UserId
  99 + searchCooperationContractByUndertakerQuery.UserBaseId = header.UserBaseId
  100 + pageSize, _ := controller.GetInt32("pageSize")
  101 + searchCooperationContractByUndertakerQuery.PageSize = pageSize
  102 + pageNumber, _ := controller.GetInt32("pageNumber")
  103 + searchCooperationContractByUndertakerQuery.PageNumber = pageNumber
60 data, err := cooperationContractService.SearchCooperationContractByUndertaker(searchCooperationContractByUndertakerQuery) 104 data, err := cooperationContractService.SearchCooperationContractByUndertaker(searchCooperationContractByUndertakerQuery)
61 controller.Response(data, err) 105 controller.Response(data, err)
62 } 106 }
@@ -64,6 +108,12 @@ func (controller *CooperationContractController) SearchCooperationContractByUnde @@ -64,6 +108,12 @@ func (controller *CooperationContractController) SearchCooperationContractByUnde
64 func (controller *CooperationContractController) ListCooperationContract() { 108 func (controller *CooperationContractController) ListCooperationContract() {
65 cooperationContractService := service.NewCooperationContractService(nil) 109 cooperationContractService := service.NewCooperationContractService(nil)
66 listCooperationContractQuery := &query.ListCooperationContractQuery{} 110 listCooperationContractQuery := &query.ListCooperationContractQuery{}
  111 + // 解析头部信息
  112 + header := controller.GetRequestHeader(controller.Ctx)
  113 + listCooperationContractQuery.CompanyId = header.CompanyId
  114 + listCooperationContractQuery.OrgId = header.OrgId
  115 + listCooperationContractQuery.UserId = header.UserId
  116 + listCooperationContractQuery.UserBaseId = header.UserBaseId
67 pageSize, _ := controller.GetInt32("pageSize") 117 pageSize, _ := controller.GetInt32("pageSize")
68 listCooperationContractQuery.PageSize = pageSize 118 listCooperationContractQuery.PageSize = pageSize
69 pageNumber, _ := controller.GetInt32("pageNumber") 119 pageNumber, _ := controller.GetInt32("pageNumber")
@@ -13,7 +13,13 @@ type CooperationModeController struct { @@ -13,7 +13,13 @@ type CooperationModeController struct {
13 func (controller *CooperationModeController) CreateCooperationMode() { 13 func (controller *CooperationModeController) CreateCooperationMode() {
14 cooperationModeService := service.NewCooperationModeService(nil) 14 cooperationModeService := service.NewCooperationModeService(nil)
15 createCooperationModeCommand := &command.CreateCooperationModeCommand{} 15 createCooperationModeCommand := &command.CreateCooperationModeCommand{}
16 - controller.Unmarshal(createCooperationModeCommand) 16 + _ = controller.Unmarshal(createCooperationModeCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + createCooperationModeCommand.CompanyId = header.CompanyId
  20 + createCooperationModeCommand.OrgId = header.OrgId
  21 + createCooperationModeCommand.UserId = header.UserId
  22 + createCooperationModeCommand.UserBaseId = header.UserBaseId
17 data, err := cooperationModeService.CreateCooperationMode(createCooperationModeCommand) 23 data, err := cooperationModeService.CreateCooperationMode(createCooperationModeCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *CooperationModeController) CreateCooperationMode() { @@ -21,7 +27,13 @@ func (controller *CooperationModeController) CreateCooperationMode() {
21 func (controller *CooperationModeController) UpdateCooperationMode() { 27 func (controller *CooperationModeController) UpdateCooperationMode() {
22 cooperationModeService := service.NewCooperationModeService(nil) 28 cooperationModeService := service.NewCooperationModeService(nil)
23 updateCooperationModeCommand := &command.UpdateCooperationModeCommand{} 29 updateCooperationModeCommand := &command.UpdateCooperationModeCommand{}
24 - controller.Unmarshal(updateCooperationModeCommand) 30 + _ = controller.Unmarshal(updateCooperationModeCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + updateCooperationModeCommand.CompanyId = header.CompanyId
  34 + updateCooperationModeCommand.OrgId = header.OrgId
  35 + updateCooperationModeCommand.UserId = header.UserId
  36 + updateCooperationModeCommand.UserBaseId = header.UserBaseId
25 cooperationModeId := controller.GetString(":cooperationModeId") 37 cooperationModeId := controller.GetString(":cooperationModeId")
26 updateCooperationModeCommand.CooperationModeId = cooperationModeId 38 updateCooperationModeCommand.CooperationModeId = cooperationModeId
27 data, err := cooperationModeService.UpdateCooperationMode(updateCooperationModeCommand) 39 data, err := cooperationModeService.UpdateCooperationMode(updateCooperationModeCommand)
@@ -31,6 +43,12 @@ func (controller *CooperationModeController) UpdateCooperationMode() { @@ -31,6 +43,12 @@ func (controller *CooperationModeController) UpdateCooperationMode() {
31 func (controller *CooperationModeController) GetCooperationMode() { 43 func (controller *CooperationModeController) GetCooperationMode() {
32 cooperationModeService := service.NewCooperationModeService(nil) 44 cooperationModeService := service.NewCooperationModeService(nil)
33 getCooperationModeQuery := &query.GetCooperationModeQuery{} 45 getCooperationModeQuery := &query.GetCooperationModeQuery{}
  46 + // 解析头部信息
  47 + header := controller.GetRequestHeader(controller.Ctx)
  48 + getCooperationModeQuery.CompanyId = header.CompanyId
  49 + getCooperationModeQuery.OrgId = header.OrgId
  50 + getCooperationModeQuery.UserId = header.UserId
  51 + getCooperationModeQuery.UserBaseId = header.UserBaseId
34 cooperationModeId, _ := controller.GetInt64(":cooperationModeId") 52 cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
35 getCooperationModeQuery.CooperationModeId = cooperationModeId 53 getCooperationModeQuery.CooperationModeId = cooperationModeId
36 data, err := cooperationModeService.GetCooperationMode(getCooperationModeQuery) 54 data, err := cooperationModeService.GetCooperationMode(getCooperationModeQuery)
@@ -40,7 +58,13 @@ func (controller *CooperationModeController) GetCooperationMode() { @@ -40,7 +58,13 @@ func (controller *CooperationModeController) GetCooperationMode() {
40 func (controller *CooperationModeController) RemoveCooperationMode() { 58 func (controller *CooperationModeController) RemoveCooperationMode() {
41 cooperationModeService := service.NewCooperationModeService(nil) 59 cooperationModeService := service.NewCooperationModeService(nil)
42 removeCooperationModeCommand := &command.RemoveCooperationModeCommand{} 60 removeCooperationModeCommand := &command.RemoveCooperationModeCommand{}
43 - controller.Unmarshal(removeCooperationModeCommand) 61 + _ = controller.Unmarshal(removeCooperationModeCommand)
  62 + // 解析头部信息
  63 + header := controller.GetRequestHeader(controller.Ctx)
  64 + removeCooperationModeCommand.CompanyId = header.CompanyId
  65 + removeCooperationModeCommand.OrgId = header.OrgId
  66 + removeCooperationModeCommand.UserId = header.UserId
  67 + removeCooperationModeCommand.UserBaseId = header.UserBaseId
44 cooperationModeId, _ := controller.GetInt64(":cooperationModeId") 68 cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
45 removeCooperationModeCommand.CooperationModeId = cooperationModeId 69 removeCooperationModeCommand.CooperationModeId = cooperationModeId
46 data, err := cooperationModeService.RemoveCooperationMode(removeCooperationModeCommand) 70 data, err := cooperationModeService.RemoveCooperationMode(removeCooperationModeCommand)
@@ -50,6 +74,12 @@ func (controller *CooperationModeController) RemoveCooperationMode() { @@ -50,6 +74,12 @@ func (controller *CooperationModeController) RemoveCooperationMode() {
50 func (controller *CooperationModeController) SearchCooperationMode() { 74 func (controller *CooperationModeController) SearchCooperationMode() {
51 cooperationModeService := service.NewCooperationModeService(nil) 75 cooperationModeService := service.NewCooperationModeService(nil)
52 searchCooperationModeQuery := &query.SearchCooperationModeQuery{} 76 searchCooperationModeQuery := &query.SearchCooperationModeQuery{}
  77 + // 解析头部信息
  78 + header := controller.GetRequestHeader(controller.Ctx)
  79 + searchCooperationModeQuery.CompanyId = header.CompanyId
  80 + searchCooperationModeQuery.OrgId = header.OrgId
  81 + searchCooperationModeQuery.UserId = header.UserId
  82 + searchCooperationModeQuery.UserBaseId = header.UserBaseId
53 data, err := cooperationModeService.SearchCooperationMode(searchCooperationModeQuery) 83 data, err := cooperationModeService.SearchCooperationMode(searchCooperationModeQuery)
54 controller.Response(data, err) 84 controller.Response(data, err)
55 } 85 }
@@ -57,10 +87,16 @@ func (controller *CooperationModeController) SearchCooperationMode() { @@ -57,10 +87,16 @@ func (controller *CooperationModeController) SearchCooperationMode() {
57 func (controller *CooperationModeController) ListCooperationMode() { 87 func (controller *CooperationModeController) ListCooperationMode() {
58 cooperationModeService := service.NewCooperationModeService(nil) 88 cooperationModeService := service.NewCooperationModeService(nil)
59 listCooperationModeQuery := &query.ListCooperationModeQuery{} 89 listCooperationModeQuery := &query.ListCooperationModeQuery{}
60 - offset, _ := controller.GetInt("offset")  
61 - listCooperationModeQuery.Offset = offset  
62 - limit, _ := controller.GetInt("limit")  
63 - listCooperationModeQuery.Limit = limit 90 + // 解析头部信息
  91 + header := controller.GetRequestHeader(controller.Ctx)
  92 + listCooperationModeQuery.CompanyId = header.CompanyId
  93 + listCooperationModeQuery.OrgId = header.OrgId
  94 + listCooperationModeQuery.UserId = header.UserId
  95 + listCooperationModeQuery.UserBaseId = header.UserBaseId
  96 + pageSize, _ := controller.GetInt32("pageSize")
  97 + listCooperationModeQuery.PageSize = pageSize
  98 + pageNumber, _ := controller.GetInt32("pageNumber")
  99 + listCooperationModeQuery.PageNumber = pageNumber
64 data, err := cooperationModeService.ListCooperationMode(listCooperationModeQuery) 100 data, err := cooperationModeService.ListCooperationMode(listCooperationModeQuery)
65 controller.Response(data, err) 101 controller.Response(data, err)
66 } 102 }
@@ -13,7 +13,13 @@ type CooperationProjectController struct { @@ -13,7 +13,13 @@ type CooperationProjectController struct {
13 func (controller *CooperationProjectController) ReleaseCooperationProject() { 13 func (controller *CooperationProjectController) ReleaseCooperationProject() {
14 cooperationProjectService := service.NewCooperationProjectService(nil) 14 cooperationProjectService := service.NewCooperationProjectService(nil)
15 releaseCooperationProjectCommand := &command.ReleaseCooperationProjectCommand{} 15 releaseCooperationProjectCommand := &command.ReleaseCooperationProjectCommand{}
16 - controller.Unmarshal(releaseCooperationProjectCommand) 16 + _ = controller.Unmarshal(releaseCooperationProjectCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + releaseCooperationProjectCommand.CompanyId = header.CompanyId
  20 + releaseCooperationProjectCommand.OrgId = header.OrgId
  21 + releaseCooperationProjectCommand.UserId = header.UserId
  22 + releaseCooperationProjectCommand.UserBaseId = header.UserBaseId
17 data, err := cooperationProjectService.ReleaseCooperationProject(releaseCooperationProjectCommand) 23 data, err := cooperationProjectService.ReleaseCooperationProject(releaseCooperationProjectCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *CooperationProjectController) ReleaseCooperationProject() { @@ -21,7 +27,13 @@ func (controller *CooperationProjectController) ReleaseCooperationProject() {
21 func (controller *CooperationProjectController) CreateCooperationProject() { 27 func (controller *CooperationProjectController) CreateCooperationProject() {
22 cooperationProjectService := service.NewCooperationProjectService(nil) 28 cooperationProjectService := service.NewCooperationProjectService(nil)
23 createCooperationProjectCommand := &command.CreateCooperationProjectCommand{} 29 createCooperationProjectCommand := &command.CreateCooperationProjectCommand{}
24 - controller.Unmarshal(createCooperationProjectCommand) 30 + _ = controller.Unmarshal(createCooperationProjectCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + createCooperationProjectCommand.CompanyId = header.CompanyId
  34 + createCooperationProjectCommand.OrgId = header.OrgId
  35 + createCooperationProjectCommand.UserId = header.UserId
  36 + createCooperationProjectCommand.UserBaseId = header.UserBaseId
25 data, err := cooperationProjectService.CreateCooperationProject(createCooperationProjectCommand) 37 data, err := cooperationProjectService.CreateCooperationProject(createCooperationProjectCommand)
26 controller.Response(data, err) 38 controller.Response(data, err)
27 } 39 }
@@ -29,7 +41,13 @@ func (controller *CooperationProjectController) CreateCooperationProject() { @@ -29,7 +41,13 @@ func (controller *CooperationProjectController) CreateCooperationProject() {
29 func (controller *CooperationProjectController) UpdateCooperationProject() { 41 func (controller *CooperationProjectController) UpdateCooperationProject() {
30 cooperationProjectService := service.NewCooperationProjectService(nil) 42 cooperationProjectService := service.NewCooperationProjectService(nil)
31 updateCooperationProjectCommand := &command.UpdateCooperationProjectCommand{} 43 updateCooperationProjectCommand := &command.UpdateCooperationProjectCommand{}
32 - controller.Unmarshal(updateCooperationProjectCommand) 44 + _ = controller.Unmarshal(updateCooperationProjectCommand)
  45 + // 解析头部信息
  46 + header := controller.GetRequestHeader(controller.Ctx)
  47 + updateCooperationProjectCommand.CompanyId = header.CompanyId
  48 + updateCooperationProjectCommand.OrgId = header.OrgId
  49 + updateCooperationProjectCommand.UserId = header.UserId
  50 + updateCooperationProjectCommand.UserBaseId = header.UserBaseId
33 cooperationProjectId := controller.GetString(":cooperationProjectId") 51 cooperationProjectId := controller.GetString(":cooperationProjectId")
34 updateCooperationProjectCommand.CooperationProjectId = cooperationProjectId 52 updateCooperationProjectCommand.CooperationProjectId = cooperationProjectId
35 data, err := cooperationProjectService.UpdateCooperationProject(updateCooperationProjectCommand) 53 data, err := cooperationProjectService.UpdateCooperationProject(updateCooperationProjectCommand)
@@ -39,6 +57,12 @@ func (controller *CooperationProjectController) UpdateCooperationProject() { @@ -39,6 +57,12 @@ func (controller *CooperationProjectController) UpdateCooperationProject() {
39 func (controller *CooperationProjectController) GetCooperationProject() { 57 func (controller *CooperationProjectController) GetCooperationProject() {
40 cooperationProjectService := service.NewCooperationProjectService(nil) 58 cooperationProjectService := service.NewCooperationProjectService(nil)
41 getCooperationProjectQuery := &query.GetCooperationProjectQuery{} 59 getCooperationProjectQuery := &query.GetCooperationProjectQuery{}
  60 + // 解析头部信息
  61 + header := controller.GetRequestHeader(controller.Ctx)
  62 + getCooperationProjectQuery.CompanyId = header.CompanyId
  63 + getCooperationProjectQuery.OrgId = header.OrgId
  64 + getCooperationProjectQuery.UserId = header.UserId
  65 + getCooperationProjectQuery.UserBaseId = header.UserBaseId
42 cooperationProjectId, _ := controller.GetInt64(":cooperationProjectId") 66 cooperationProjectId, _ := controller.GetInt64(":cooperationProjectId")
43 getCooperationProjectQuery.CooperationProjectId = cooperationProjectId 67 getCooperationProjectQuery.CooperationProjectId = cooperationProjectId
44 data, err := cooperationProjectService.GetCooperationProject(getCooperationProjectQuery) 68 data, err := cooperationProjectService.GetCooperationProject(getCooperationProjectQuery)
@@ -48,7 +72,13 @@ func (controller *CooperationProjectController) GetCooperationProject() { @@ -48,7 +72,13 @@ func (controller *CooperationProjectController) GetCooperationProject() {
48 func (controller *CooperationProjectController) RemoveCooperationProject() { 72 func (controller *CooperationProjectController) RemoveCooperationProject() {
49 cooperationProjectService := service.NewCooperationProjectService(nil) 73 cooperationProjectService := service.NewCooperationProjectService(nil)
50 removeCooperationProjectCommand := &command.RemoveCooperationProjectCommand{} 74 removeCooperationProjectCommand := &command.RemoveCooperationProjectCommand{}
51 - controller.Unmarshal(removeCooperationProjectCommand) 75 + _ = controller.Unmarshal(removeCooperationProjectCommand)
  76 + // 解析头部信息
  77 + header := controller.GetRequestHeader(controller.Ctx)
  78 + removeCooperationProjectCommand.CompanyId = header.CompanyId
  79 + removeCooperationProjectCommand.OrgId = header.OrgId
  80 + removeCooperationProjectCommand.UserId = header.UserId
  81 + removeCooperationProjectCommand.UserBaseId = header.UserBaseId
52 cooperationProjectId, _ := controller.GetInt64(":cooperationProjectId") 82 cooperationProjectId, _ := controller.GetInt64(":cooperationProjectId")
53 removeCooperationProjectCommand.CooperationProjectId = cooperationProjectId 83 removeCooperationProjectCommand.CooperationProjectId = cooperationProjectId
54 data, err := cooperationProjectService.RemoveCooperationProject(removeCooperationProjectCommand) 84 data, err := cooperationProjectService.RemoveCooperationProject(removeCooperationProjectCommand)
@@ -58,6 +88,12 @@ func (controller *CooperationProjectController) RemoveCooperationProject() { @@ -58,6 +88,12 @@ func (controller *CooperationProjectController) RemoveCooperationProject() {
58 func (controller *CooperationProjectController) SearchCooperationProject() { 88 func (controller *CooperationProjectController) SearchCooperationProject() {
59 cooperationProjectService := service.NewCooperationProjectService(nil) 89 cooperationProjectService := service.NewCooperationProjectService(nil)
60 searchCooperationProjectQuery := &query.SearchCooperationProjectQuery{} 90 searchCooperationProjectQuery := &query.SearchCooperationProjectQuery{}
  91 + // 解析头部信息
  92 + header := controller.GetRequestHeader(controller.Ctx)
  93 + searchCooperationProjectQuery.CompanyId = header.CompanyId
  94 + searchCooperationProjectQuery.OrgId = header.OrgId
  95 + searchCooperationProjectQuery.UserId = header.UserId
  96 + searchCooperationProjectQuery.UserBaseId = header.UserBaseId
61 data, err := cooperationProjectService.SearchCooperationProject(searchCooperationProjectQuery) 97 data, err := cooperationProjectService.SearchCooperationProject(searchCooperationProjectQuery)
62 controller.Response(data, err) 98 controller.Response(data, err)
63 } 99 }
@@ -65,6 +101,12 @@ func (controller *CooperationProjectController) SearchCooperationProject() { @@ -65,6 +101,12 @@ func (controller *CooperationProjectController) SearchCooperationProject() {
65 func (controller *CooperationProjectController) CheckUndertaker() { 101 func (controller *CooperationProjectController) CheckUndertaker() {
66 cooperationProjectService := service.NewCooperationProjectService(nil) 102 cooperationProjectService := service.NewCooperationProjectService(nil)
67 checkUndertakerQuery := &query.CheckUndertakerQuery{} 103 checkUndertakerQuery := &query.CheckUndertakerQuery{}
  104 + // 解析头部信息
  105 + header := controller.GetRequestHeader(controller.Ctx)
  106 + checkUndertakerQuery.CompanyId = header.CompanyId
  107 + checkUndertakerQuery.OrgId = header.OrgId
  108 + checkUndertakerQuery.UserId = header.UserId
  109 + checkUndertakerQuery.UserBaseId = header.UserBaseId
68 data, err := cooperationProjectService.CheckUndertaker(checkUndertakerQuery) 110 data, err := cooperationProjectService.CheckUndertaker(checkUndertakerQuery)
69 controller.Response(data, err) 111 controller.Response(data, err)
70 } 112 }
@@ -72,6 +114,12 @@ func (controller *CooperationProjectController) CheckUndertaker() { @@ -72,6 +114,12 @@ func (controller *CooperationProjectController) CheckUndertaker() {
72 func (controller *CooperationProjectController) ListCooperationProject() { 114 func (controller *CooperationProjectController) ListCooperationProject() {
73 cooperationProjectService := service.NewCooperationProjectService(nil) 115 cooperationProjectService := service.NewCooperationProjectService(nil)
74 listCooperationProjectQuery := &query.ListCooperationProjectQuery{} 116 listCooperationProjectQuery := &query.ListCooperationProjectQuery{}
  117 + // 解析头部信息
  118 + header := controller.GetRequestHeader(controller.Ctx)
  119 + listCooperationProjectQuery.CompanyId = header.CompanyId
  120 + listCooperationProjectQuery.OrgId = header.OrgId
  121 + listCooperationProjectQuery.UserId = header.UserId
  122 + listCooperationProjectQuery.UserBaseId = header.UserBaseId
75 pageSize, _ := controller.GetInt32("pageSize") 123 pageSize, _ := controller.GetInt32("pageSize")
76 listCooperationProjectQuery.PageSize = pageSize 124 listCooperationProjectQuery.PageSize = pageSize
77 pageNumber, _ := controller.GetInt32("pageNumber") 125 pageNumber, _ := controller.GetInt32("pageNumber")
@@ -13,7 +13,13 @@ type CreditAccountController struct { @@ -13,7 +13,13 @@ type CreditAccountController struct {
13 func (controller *CreditAccountController) CreateCreditAccount() { 13 func (controller *CreditAccountController) CreateCreditAccount() {
14 creditAccountService := service.NewCreditAccountService(nil) 14 creditAccountService := service.NewCreditAccountService(nil)
15 createCreditAccountCommand := &command.CreateCreditAccountCommand{} 15 createCreditAccountCommand := &command.CreateCreditAccountCommand{}
16 - controller.Unmarshal(createCreditAccountCommand) 16 + _ = controller.Unmarshal(createCreditAccountCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + createCreditAccountCommand.CompanyId = header.CompanyId
  20 + createCreditAccountCommand.OrgId = header.OrgId
  21 + createCreditAccountCommand.UserId = header.UserId
  22 + createCreditAccountCommand.UserBaseId = header.UserBaseId
17 data, err := creditAccountService.CreateCreditAccount(createCreditAccountCommand) 23 data, err := creditAccountService.CreateCreditAccount(createCreditAccountCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *CreditAccountController) CreateCreditAccount() { @@ -21,7 +27,13 @@ func (controller *CreditAccountController) CreateCreditAccount() {
21 func (controller *CreditAccountController) UpdateCreditAccount() { 27 func (controller *CreditAccountController) UpdateCreditAccount() {
22 creditAccountService := service.NewCreditAccountService(nil) 28 creditAccountService := service.NewCreditAccountService(nil)
23 updateCreditAccountCommand := &command.UpdateCreditAccountCommand{} 29 updateCreditAccountCommand := &command.UpdateCreditAccountCommand{}
24 - controller.Unmarshal(updateCreditAccountCommand) 30 + _ = controller.Unmarshal(updateCreditAccountCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + updateCreditAccountCommand.CompanyId = header.CompanyId
  34 + updateCreditAccountCommand.OrgId = header.OrgId
  35 + updateCreditAccountCommand.UserId = header.UserId
  36 + updateCreditAccountCommand.UserBaseId = header.UserBaseId
25 creditAccountId, _ := controller.GetInt64(":creditAccountId") 37 creditAccountId, _ := controller.GetInt64(":creditAccountId")
26 updateCreditAccountCommand.CreditAccountId = creditAccountId 38 updateCreditAccountCommand.CreditAccountId = creditAccountId
27 data, err := creditAccountService.UpdateCreditAccount(updateCreditAccountCommand) 39 data, err := creditAccountService.UpdateCreditAccount(updateCreditAccountCommand)
@@ -31,6 +43,12 @@ func (controller *CreditAccountController) UpdateCreditAccount() { @@ -31,6 +43,12 @@ func (controller *CreditAccountController) UpdateCreditAccount() {
31 func (controller *CreditAccountController) GetCreditAccount() { 43 func (controller *CreditAccountController) GetCreditAccount() {
32 creditAccountService := service.NewCreditAccountService(nil) 44 creditAccountService := service.NewCreditAccountService(nil)
33 getCreditAccountQuery := &query.GetCreditAccountQuery{} 45 getCreditAccountQuery := &query.GetCreditAccountQuery{}
  46 + // 解析头部信息
  47 + header := controller.GetRequestHeader(controller.Ctx)
  48 + getCreditAccountQuery.CompanyId = header.CompanyId
  49 + getCreditAccountQuery.OrgId = header.OrgId
  50 + getCreditAccountQuery.UserId = header.UserId
  51 + getCreditAccountQuery.UserBaseId = header.UserBaseId
34 creditAccountId, _ := controller.GetInt64(":creditAccountId") 52 creditAccountId, _ := controller.GetInt64(":creditAccountId")
35 getCreditAccountQuery.CreditAccountId = creditAccountId 53 getCreditAccountQuery.CreditAccountId = creditAccountId
36 data, err := creditAccountService.GetCreditAccount(getCreditAccountQuery) 54 data, err := creditAccountService.GetCreditAccount(getCreditAccountQuery)
@@ -40,7 +58,13 @@ func (controller *CreditAccountController) GetCreditAccount() { @@ -40,7 +58,13 @@ func (controller *CreditAccountController) GetCreditAccount() {
40 func (controller *CreditAccountController) RemoveCreditAccount() { 58 func (controller *CreditAccountController) RemoveCreditAccount() {
41 creditAccountService := service.NewCreditAccountService(nil) 59 creditAccountService := service.NewCreditAccountService(nil)
42 removeCreditAccountCommand := &command.RemoveCreditAccountCommand{} 60 removeCreditAccountCommand := &command.RemoveCreditAccountCommand{}
43 - controller.Unmarshal(removeCreditAccountCommand) 61 + _ = controller.Unmarshal(removeCreditAccountCommand)
  62 + // 解析头部信息
  63 + header := controller.GetRequestHeader(controller.Ctx)
  64 + removeCreditAccountCommand.CompanyId = header.CompanyId
  65 + removeCreditAccountCommand.OrgId = header.OrgId
  66 + removeCreditAccountCommand.UserId = header.UserId
  67 + removeCreditAccountCommand.UserBaseId = header.UserBaseId
44 creditAccountId, _ := controller.GetInt64(":creditAccountId") 68 creditAccountId, _ := controller.GetInt64(":creditAccountId")
45 removeCreditAccountCommand.CreditAccountId = creditAccountId 69 removeCreditAccountCommand.CreditAccountId = creditAccountId
46 data, err := creditAccountService.RemoveCreditAccount(removeCreditAccountCommand) 70 data, err := creditAccountService.RemoveCreditAccount(removeCreditAccountCommand)
@@ -50,6 +74,12 @@ func (controller *CreditAccountController) RemoveCreditAccount() { @@ -50,6 +74,12 @@ func (controller *CreditAccountController) RemoveCreditAccount() {
50 func (controller *CreditAccountController) SearchCreditAccount() { 74 func (controller *CreditAccountController) SearchCreditAccount() {
51 creditAccountService := service.NewCreditAccountService(nil) 75 creditAccountService := service.NewCreditAccountService(nil)
52 searchCreditAccountQuery := &query.SearchCreditAccountQuery{} 76 searchCreditAccountQuery := &query.SearchCreditAccountQuery{}
  77 + // 解析头部信息
  78 + header := controller.GetRequestHeader(controller.Ctx)
  79 + searchCreditAccountQuery.CompanyId = header.CompanyId
  80 + searchCreditAccountQuery.OrgId = header.OrgId
  81 + searchCreditAccountQuery.UserId = header.UserId
  82 + searchCreditAccountQuery.UserBaseId = header.UserBaseId
53 data, err := creditAccountService.SearchCreditAccount(searchCreditAccountQuery) 83 data, err := creditAccountService.SearchCreditAccount(searchCreditAccountQuery)
54 controller.Response(data, err) 84 controller.Response(data, err)
55 } 85 }
@@ -57,7 +87,13 @@ func (controller *CreditAccountController) SearchCreditAccount() { @@ -57,7 +87,13 @@ func (controller *CreditAccountController) SearchCreditAccount() {
57 func (controller *CreditAccountController) PayCreditAccount() { 87 func (controller *CreditAccountController) PayCreditAccount() {
58 creditAccountService := service.NewCreditAccountService(nil) 88 creditAccountService := service.NewCreditAccountService(nil)
59 payCreditAccountCommand := &command.PayCreditAccountCommand{} 89 payCreditAccountCommand := &command.PayCreditAccountCommand{}
60 - controller.Unmarshal(payCreditAccountCommand) 90 + _ = controller.Unmarshal(payCreditAccountCommand)
  91 + // 解析头部信息
  92 + header := controller.GetRequestHeader(controller.Ctx)
  93 + payCreditAccountCommand.CompanyId = header.CompanyId
  94 + payCreditAccountCommand.OrgId = header.OrgId
  95 + payCreditAccountCommand.UserId = header.UserId
  96 + payCreditAccountCommand.UserBaseId = header.UserBaseId
61 data, err := creditAccountService.PayCreditAccount(payCreditAccountCommand) 97 data, err := creditAccountService.PayCreditAccount(payCreditAccountCommand)
62 controller.Response(data, err) 98 controller.Response(data, err)
63 } 99 }
@@ -65,10 +101,16 @@ func (controller *CreditAccountController) PayCreditAccount() { @@ -65,10 +101,16 @@ func (controller *CreditAccountController) PayCreditAccount() {
65 func (controller *CreditAccountController) ListCreditAccount() { 101 func (controller *CreditAccountController) ListCreditAccount() {
66 creditAccountService := service.NewCreditAccountService(nil) 102 creditAccountService := service.NewCreditAccountService(nil)
67 listCreditAccountQuery := &query.ListCreditAccountQuery{} 103 listCreditAccountQuery := &query.ListCreditAccountQuery{}
68 - offset, _ := controller.GetInt("offset")  
69 - listCreditAccountQuery.Offset = offset  
70 - limit, _ := controller.GetInt("limit")  
71 - listCreditAccountQuery.Limit = limit 104 + // 解析头部信息
  105 + header := controller.GetRequestHeader(controller.Ctx)
  106 + listCreditAccountQuery.CompanyId = header.CompanyId
  107 + listCreditAccountQuery.OrgId = header.OrgId
  108 + listCreditAccountQuery.UserId = header.UserId
  109 + listCreditAccountQuery.UserBaseId = header.UserBaseId
  110 + pageSize, _ := controller.GetInt32("pageSize")
  111 + listCreditAccountQuery.PageSize = pageSize
  112 + pageNumber, _ := controller.GetInt32("pageNumber")
  113 + listCreditAccountQuery.PageNumber = pageNumber
72 data, err := creditAccountService.ListCreditAccount(listCreditAccountQuery) 114 data, err := creditAccountService.ListCreditAccount(listCreditAccountQuery)
73 controller.Response(data, err) 115 controller.Response(data, err)
74 } 116 }
@@ -13,7 +13,13 @@ type DividendsEstimateController struct { @@ -13,7 +13,13 @@ type DividendsEstimateController struct {
13 func (controller *DividendsEstimateController) CreateDividendsEstimate() { 13 func (controller *DividendsEstimateController) CreateDividendsEstimate() {
14 dividendsEstimateService := service.NewDividendsEstimateService(nil) 14 dividendsEstimateService := service.NewDividendsEstimateService(nil)
15 createDividendsEstimateCommand := &command.CreateDividendsEstimateCommand{} 15 createDividendsEstimateCommand := &command.CreateDividendsEstimateCommand{}
16 - controller.Unmarshal(createDividendsEstimateCommand) 16 + _ = controller.Unmarshal(createDividendsEstimateCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + createDividendsEstimateCommand.CompanyId = header.CompanyId
  20 + createDividendsEstimateCommand.OrgId = header.OrgId
  21 + createDividendsEstimateCommand.UserId = header.UserId
  22 + createDividendsEstimateCommand.UserBaseId = header.UserBaseId
17 data, err := dividendsEstimateService.CreateDividendsEstimate(createDividendsEstimateCommand) 23 data, err := dividendsEstimateService.CreateDividendsEstimate(createDividendsEstimateCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *DividendsEstimateController) CreateDividendsEstimate() { @@ -21,7 +27,13 @@ func (controller *DividendsEstimateController) CreateDividendsEstimate() {
21 func (controller *DividendsEstimateController) UpdateDividendsEstimate() { 27 func (controller *DividendsEstimateController) UpdateDividendsEstimate() {
22 dividendsEstimateService := service.NewDividendsEstimateService(nil) 28 dividendsEstimateService := service.NewDividendsEstimateService(nil)
23 updateDividendsEstimateCommand := &command.UpdateDividendsEstimateCommand{} 29 updateDividendsEstimateCommand := &command.UpdateDividendsEstimateCommand{}
24 - controller.Unmarshal(updateDividendsEstimateCommand) 30 + _ = controller.Unmarshal(updateDividendsEstimateCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + updateDividendsEstimateCommand.CompanyId = header.CompanyId
  34 + updateDividendsEstimateCommand.OrgId = header.OrgId
  35 + updateDividendsEstimateCommand.UserId = header.UserId
  36 + updateDividendsEstimateCommand.UserBaseId = header.UserBaseId
25 dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId") 37 dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId")
26 updateDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId 38 updateDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
27 data, err := dividendsEstimateService.UpdateDividendsEstimate(updateDividendsEstimateCommand) 39 data, err := dividendsEstimateService.UpdateDividendsEstimate(updateDividendsEstimateCommand)
@@ -31,6 +43,12 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { @@ -31,6 +43,12 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() {
31 func (controller *DividendsEstimateController) GetDividendsEstimate() { 43 func (controller *DividendsEstimateController) GetDividendsEstimate() {
32 dividendsEstimateService := service.NewDividendsEstimateService(nil) 44 dividendsEstimateService := service.NewDividendsEstimateService(nil)
33 getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{} 45 getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{}
  46 + // 解析头部信息
  47 + header := controller.GetRequestHeader(controller.Ctx)
  48 + getDividendsEstimateQuery.CompanyId = header.CompanyId
  49 + getDividendsEstimateQuery.OrgId = header.OrgId
  50 + getDividendsEstimateQuery.UserId = header.UserId
  51 + getDividendsEstimateQuery.UserBaseId = header.UserBaseId
34 dividendsEstimateId := controller.GetString(":dividendsEstimateId") 52 dividendsEstimateId := controller.GetString(":dividendsEstimateId")
35 getDividendsEstimateQuery.DividendsEstimateId = dividendsEstimateId 53 getDividendsEstimateQuery.DividendsEstimateId = dividendsEstimateId
36 data, err := dividendsEstimateService.GetDividendsEstimate(getDividendsEstimateQuery) 54 data, err := dividendsEstimateService.GetDividendsEstimate(getDividendsEstimateQuery)
@@ -40,7 +58,13 @@ func (controller *DividendsEstimateController) GetDividendsEstimate() { @@ -40,7 +58,13 @@ func (controller *DividendsEstimateController) GetDividendsEstimate() {
40 func (controller *DividendsEstimateController) RemoveDividendsEstimate() { 58 func (controller *DividendsEstimateController) RemoveDividendsEstimate() {
41 dividendsEstimateService := service.NewDividendsEstimateService(nil) 59 dividendsEstimateService := service.NewDividendsEstimateService(nil)
42 removeDividendsEstimateCommand := &command.RemoveDividendsEstimateCommand{} 60 removeDividendsEstimateCommand := &command.RemoveDividendsEstimateCommand{}
43 - controller.Unmarshal(removeDividendsEstimateCommand) 61 + _ = controller.Unmarshal(removeDividendsEstimateCommand)
  62 + // 解析头部信息
  63 + header := controller.GetRequestHeader(controller.Ctx)
  64 + removeDividendsEstimateCommand.CompanyId = header.CompanyId
  65 + removeDividendsEstimateCommand.OrgId = header.OrgId
  66 + removeDividendsEstimateCommand.UserId = header.UserId
  67 + removeDividendsEstimateCommand.UserBaseId = header.UserBaseId
44 dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId") 68 dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId")
45 removeDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId 69 removeDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
46 data, err := dividendsEstimateService.RemoveDividendsEstimate(removeDividendsEstimateCommand) 70 data, err := dividendsEstimateService.RemoveDividendsEstimate(removeDividendsEstimateCommand)
@@ -50,7 +74,13 @@ func (controller *DividendsEstimateController) RemoveDividendsEstimate() { @@ -50,7 +74,13 @@ func (controller *DividendsEstimateController) RemoveDividendsEstimate() {
50 func (controller *DividendsEstimateController) CancelDividendsEstimate() { 74 func (controller *DividendsEstimateController) CancelDividendsEstimate() {
51 dividendsEstimateService := service.NewDividendsEstimateService(nil) 75 dividendsEstimateService := service.NewDividendsEstimateService(nil)
52 cancelDividendsEstimateCommand := &command.CancelDividendsEstimateCommand{} 76 cancelDividendsEstimateCommand := &command.CancelDividendsEstimateCommand{}
53 - controller.Unmarshal(cancelDividendsEstimateCommand) 77 + _ = controller.Unmarshal(cancelDividendsEstimateCommand)
  78 + // 解析头部信息
  79 + header := controller.GetRequestHeader(controller.Ctx)
  80 + cancelDividendsEstimateCommand.CompanyId = header.CompanyId
  81 + cancelDividendsEstimateCommand.OrgId = header.OrgId
  82 + cancelDividendsEstimateCommand.UserId = header.UserId
  83 + cancelDividendsEstimateCommand.UserBaseId = header.UserBaseId
54 dividendsEstimateId := controller.GetString(":dividendsEstimateId") 84 dividendsEstimateId := controller.GetString(":dividendsEstimateId")
55 cancelDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId 85 cancelDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
56 data, err := dividendsEstimateService.CancelDividendsEstimate(cancelDividendsEstimateCommand) 86 data, err := dividendsEstimateService.CancelDividendsEstimate(cancelDividendsEstimateCommand)
@@ -60,6 +90,12 @@ func (controller *DividendsEstimateController) CancelDividendsEstimate() { @@ -60,6 +90,12 @@ func (controller *DividendsEstimateController) CancelDividendsEstimate() {
60 func (controller *DividendsEstimateController) SearchDividendsEstimate() { 90 func (controller *DividendsEstimateController) SearchDividendsEstimate() {
61 dividendsEstimateService := service.NewDividendsEstimateService(nil) 91 dividendsEstimateService := service.NewDividendsEstimateService(nil)
62 searchDividendsEstimateQuery := &query.SearchDividendsEstimateQuery{} 92 searchDividendsEstimateQuery := &query.SearchDividendsEstimateQuery{}
  93 + // 解析头部信息
  94 + header := controller.GetRequestHeader(controller.Ctx)
  95 + searchDividendsEstimateQuery.CompanyId = header.CompanyId
  96 + searchDividendsEstimateQuery.OrgId = header.OrgId
  97 + searchDividendsEstimateQuery.UserId = header.UserId
  98 + searchDividendsEstimateQuery.UserBaseId = header.UserBaseId
63 data, err := dividendsEstimateService.SearchDividendsEstimate(searchDividendsEstimateQuery) 99 data, err := dividendsEstimateService.SearchDividendsEstimate(searchDividendsEstimateQuery)
64 controller.Response(data, err) 100 controller.Response(data, err)
65 } 101 }
@@ -67,7 +103,13 @@ func (controller *DividendsEstimateController) SearchDividendsEstimate() { @@ -67,7 +103,13 @@ func (controller *DividendsEstimateController) SearchDividendsEstimate() {
67 func (controller *DividendsEstimateController) EstimateDividendsIncentives() { 103 func (controller *DividendsEstimateController) EstimateDividendsIncentives() {
68 dividendsEstimateService := service.NewDividendsEstimateService(nil) 104 dividendsEstimateService := service.NewDividendsEstimateService(nil)
69 estimateDividendsIncentivesCommand := &command.EstimateDividendsIncentivesCommand{} 105 estimateDividendsIncentivesCommand := &command.EstimateDividendsIncentivesCommand{}
70 - controller.Unmarshal(estimateDividendsIncentivesCommand) 106 + _ = controller.Unmarshal(estimateDividendsIncentivesCommand)
  107 + // 解析头部信息
  108 + header := controller.GetRequestHeader(controller.Ctx)
  109 + estimateDividendsIncentivesCommand.CompanyId = header.CompanyId
  110 + estimateDividendsIncentivesCommand.OrgId = header.OrgId
  111 + estimateDividendsIncentivesCommand.UserId = header.UserId
  112 + estimateDividendsIncentivesCommand.UserBaseId = header.UserBaseId
71 data, err := dividendsEstimateService.EstimateDividendsIncentives(estimateDividendsIncentivesCommand) 113 data, err := dividendsEstimateService.EstimateDividendsIncentives(estimateDividendsIncentivesCommand)
72 controller.Response(data, err) 114 controller.Response(data, err)
73 } 115 }
@@ -75,7 +117,13 @@ func (controller *DividendsEstimateController) EstimateDividendsIncentives() { @@ -75,7 +117,13 @@ func (controller *DividendsEstimateController) EstimateDividendsIncentives() {
75 func (controller *DividendsEstimateController) EstimateMoneyIncentives() { 117 func (controller *DividendsEstimateController) EstimateMoneyIncentives() {
76 dividendsEstimateService := service.NewDividendsEstimateService(nil) 118 dividendsEstimateService := service.NewDividendsEstimateService(nil)
77 estimateMoneyIncentivesCommand := &command.EstimateMoneyIncentivesCommand{} 119 estimateMoneyIncentivesCommand := &command.EstimateMoneyIncentivesCommand{}
78 - controller.Unmarshal(estimateMoneyIncentivesCommand) 120 + _ = controller.Unmarshal(estimateMoneyIncentivesCommand)
  121 + // 解析头部信息
  122 + header := controller.GetRequestHeader(controller.Ctx)
  123 + estimateMoneyIncentivesCommand.CompanyId = header.CompanyId
  124 + estimateMoneyIncentivesCommand.OrgId = header.OrgId
  125 + estimateMoneyIncentivesCommand.UserId = header.UserId
  126 + estimateMoneyIncentivesCommand.UserBaseId = header.UserBaseId
79 data, err := dividendsEstimateService.EstimateMoneyIncentives(estimateMoneyIncentivesCommand) 127 data, err := dividendsEstimateService.EstimateMoneyIncentives(estimateMoneyIncentivesCommand)
80 controller.Response(data, err) 128 controller.Response(data, err)
81 } 129 }
@@ -83,6 +131,12 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() { @@ -83,6 +131,12 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() {
83 func (controller *DividendsEstimateController) ListMoneyIncentives() { 131 func (controller *DividendsEstimateController) ListMoneyIncentives() {
84 dividendsEstimateService := service.NewDividendsEstimateService(nil) 132 dividendsEstimateService := service.NewDividendsEstimateService(nil)
85 listMoneyIncentivesQuery := &query.ListMoneyIncentivesQuery{} 133 listMoneyIncentivesQuery := &query.ListMoneyIncentivesQuery{}
  134 + // 解析头部信息
  135 + header := controller.GetRequestHeader(controller.Ctx)
  136 + listMoneyIncentivesQuery.CompanyId = header.CompanyId
  137 + listMoneyIncentivesQuery.OrgId = header.OrgId
  138 + listMoneyIncentivesQuery.UserId = header.UserId
  139 + listMoneyIncentivesQuery.UserBaseId = header.UserBaseId
86 data, err := dividendsEstimateService.ListMoneyIncentives(listMoneyIncentivesQuery) 140 data, err := dividendsEstimateService.ListMoneyIncentives(listMoneyIncentivesQuery)
87 controller.Response(data, err) 141 controller.Response(data, err)
88 } 142 }
@@ -90,6 +144,12 @@ func (controller *DividendsEstimateController) ListMoneyIncentives() { @@ -90,6 +144,12 @@ func (controller *DividendsEstimateController) ListMoneyIncentives() {
90 func (controller *DividendsEstimateController) SearchMoneyIncentives() { 144 func (controller *DividendsEstimateController) SearchMoneyIncentives() {
91 dividendsEstimateService := service.NewDividendsEstimateService(nil) 145 dividendsEstimateService := service.NewDividendsEstimateService(nil)
92 searchMoneyIncentivesQuery := &query.SearchMoneyIncentivesQuery{} 146 searchMoneyIncentivesQuery := &query.SearchMoneyIncentivesQuery{}
  147 + // 解析头部信息
  148 + header := controller.GetRequestHeader(controller.Ctx)
  149 + searchMoneyIncentivesQuery.CompanyId = header.CompanyId
  150 + searchMoneyIncentivesQuery.OrgId = header.OrgId
  151 + searchMoneyIncentivesQuery.UserId = header.UserId
  152 + searchMoneyIncentivesQuery.UserBaseId = header.UserBaseId
93 data, err := dividendsEstimateService.SearchMoneyIncentives(searchMoneyIncentivesQuery) 153 data, err := dividendsEstimateService.SearchMoneyIncentives(searchMoneyIncentivesQuery)
94 controller.Response(data, err) 154 controller.Response(data, err)
95 } 155 }
@@ -97,6 +157,12 @@ func (controller *DividendsEstimateController) SearchMoneyIncentives() { @@ -97,6 +157,12 @@ func (controller *DividendsEstimateController) SearchMoneyIncentives() {
97 func (controller *DividendsEstimateController) ListDividendsIncentives() { 157 func (controller *DividendsEstimateController) ListDividendsIncentives() {
98 dividendsEstimateService := service.NewDividendsEstimateService(nil) 158 dividendsEstimateService := service.NewDividendsEstimateService(nil)
99 listDividendsIncentivesQuery := &query.ListDividendsIncentivesQuery{} 159 listDividendsIncentivesQuery := &query.ListDividendsIncentivesQuery{}
  160 + // 解析头部信息
  161 + header := controller.GetRequestHeader(controller.Ctx)
  162 + listDividendsIncentivesQuery.CompanyId = header.CompanyId
  163 + listDividendsIncentivesQuery.OrgId = header.OrgId
  164 + listDividendsIncentivesQuery.UserId = header.UserId
  165 + listDividendsIncentivesQuery.UserBaseId = header.UserBaseId
100 data, err := dividendsEstimateService.ListDividendsIncentives(listDividendsIncentivesQuery) 166 data, err := dividendsEstimateService.ListDividendsIncentives(listDividendsIncentivesQuery)
101 controller.Response(data, err) 167 controller.Response(data, err)
102 } 168 }
@@ -104,6 +170,12 @@ func (controller *DividendsEstimateController) ListDividendsIncentives() { @@ -104,6 +170,12 @@ func (controller *DividendsEstimateController) ListDividendsIncentives() {
104 func (controller *DividendsEstimateController) SearchDividendsIncentives() { 170 func (controller *DividendsEstimateController) SearchDividendsIncentives() {
105 dividendsEstimateService := service.NewDividendsEstimateService(nil) 171 dividendsEstimateService := service.NewDividendsEstimateService(nil)
106 searchDividendsIncentivesQuery := &query.SearchDividendsIncentivesQuery{} 172 searchDividendsIncentivesQuery := &query.SearchDividendsIncentivesQuery{}
  173 + // 解析头部信息
  174 + header := controller.GetRequestHeader(controller.Ctx)
  175 + searchDividendsIncentivesQuery.CompanyId = header.CompanyId
  176 + searchDividendsIncentivesQuery.OrgId = header.OrgId
  177 + searchDividendsIncentivesQuery.UserId = header.UserId
  178 + searchDividendsIncentivesQuery.UserBaseId = header.UserBaseId
107 data, err := dividendsEstimateService.SearchDividendsIncentives(searchDividendsIncentivesQuery) 179 data, err := dividendsEstimateService.SearchDividendsIncentives(searchDividendsIncentivesQuery)
108 controller.Response(data, err) 180 controller.Response(data, err)
109 } 181 }
@@ -111,6 +183,12 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() { @@ -111,6 +183,12 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() {
111 func (controller *DividendsEstimateController) ListDividendsEstimate() { 183 func (controller *DividendsEstimateController) ListDividendsEstimate() {
112 dividendsEstimateService := service.NewDividendsEstimateService(nil) 184 dividendsEstimateService := service.NewDividendsEstimateService(nil)
113 listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{} 185 listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{}
  186 + // 解析头部信息
  187 + header := controller.GetRequestHeader(controller.Ctx)
  188 + listDividendsEstimateQuery.CompanyId = header.CompanyId
  189 + listDividendsEstimateQuery.OrgId = header.OrgId
  190 + listDividendsEstimateQuery.UserId = header.UserId
  191 + listDividendsEstimateQuery.UserBaseId = header.UserBaseId
114 pageSize, _ := controller.GetInt32("pageSize") 192 pageSize, _ := controller.GetInt32("pageSize")
115 listDividendsEstimateQuery.PageSize = pageSize 193 listDividendsEstimateQuery.PageSize = pageSize
116 pageNumber, _ := controller.GetInt32("pageNumber") 194 pageNumber, _ := controller.GetInt32("pageNumber")
@@ -13,7 +13,13 @@ type DividendsOrderController struct { @@ -13,7 +13,13 @@ type DividendsOrderController struct {
13 func (controller *DividendsOrderController) CreateDividendsOrder() { 13 func (controller *DividendsOrderController) CreateDividendsOrder() {
14 dividendsOrderService := service.NewDividendsOrderService(nil) 14 dividendsOrderService := service.NewDividendsOrderService(nil)
15 createDividendsOrderCommand := &command.CreateDividendsOrderCommand{} 15 createDividendsOrderCommand := &command.CreateDividendsOrderCommand{}
16 - controller.Unmarshal(createDividendsOrderCommand) 16 + _ = controller.Unmarshal(createDividendsOrderCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + createDividendsOrderCommand.CompanyId = header.CompanyId
  20 + createDividendsOrderCommand.OrgId = header.OrgId
  21 + createDividendsOrderCommand.UserId = header.UserId
  22 + createDividendsOrderCommand.UserBaseId = header.UserBaseId
17 data, err := dividendsOrderService.CreateDividendsOrder(createDividendsOrderCommand) 23 data, err := dividendsOrderService.CreateDividendsOrder(createDividendsOrderCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *DividendsOrderController) CreateDividendsOrder() { @@ -21,7 +27,13 @@ func (controller *DividendsOrderController) CreateDividendsOrder() {
21 func (controller *DividendsOrderController) UpdateDividendsOrder() { 27 func (controller *DividendsOrderController) UpdateDividendsOrder() {
22 dividendsOrderService := service.NewDividendsOrderService(nil) 28 dividendsOrderService := service.NewDividendsOrderService(nil)
23 updateDividendsOrderCommand := &command.UpdateDividendsOrderCommand{} 29 updateDividendsOrderCommand := &command.UpdateDividendsOrderCommand{}
24 - controller.Unmarshal(updateDividendsOrderCommand) 30 + _ = controller.Unmarshal(updateDividendsOrderCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + updateDividendsOrderCommand.CompanyId = header.CompanyId
  34 + updateDividendsOrderCommand.OrgId = header.OrgId
  35 + updateDividendsOrderCommand.UserId = header.UserId
  36 + updateDividendsOrderCommand.UserBaseId = header.UserBaseId
25 dividendsOrderId := controller.GetString(":dividendsOrderId") 37 dividendsOrderId := controller.GetString(":dividendsOrderId")
26 updateDividendsOrderCommand.DividendsOrderId = dividendsOrderId 38 updateDividendsOrderCommand.DividendsOrderId = dividendsOrderId
27 data, err := dividendsOrderService.UpdateDividendsOrder(updateDividendsOrderCommand) 39 data, err := dividendsOrderService.UpdateDividendsOrder(updateDividendsOrderCommand)
@@ -31,6 +43,12 @@ func (controller *DividendsOrderController) UpdateDividendsOrder() { @@ -31,6 +43,12 @@ func (controller *DividendsOrderController) UpdateDividendsOrder() {
31 func (controller *DividendsOrderController) GetDividendsOrder() { 43 func (controller *DividendsOrderController) GetDividendsOrder() {
32 dividendsOrderService := service.NewDividendsOrderService(nil) 44 dividendsOrderService := service.NewDividendsOrderService(nil)
33 getDividendsOrderQuery := &query.GetDividendsOrderQuery{} 45 getDividendsOrderQuery := &query.GetDividendsOrderQuery{}
  46 + // 解析头部信息
  47 + header := controller.GetRequestHeader(controller.Ctx)
  48 + getDividendsOrderQuery.CompanyId = header.CompanyId
  49 + getDividendsOrderQuery.OrgId = header.OrgId
  50 + getDividendsOrderQuery.UserId = header.UserId
  51 + getDividendsOrderQuery.UserBaseId = header.UserBaseId
34 dividendsOrderId, _ := controller.GetInt64(":dividendsOrderId") 52 dividendsOrderId, _ := controller.GetInt64(":dividendsOrderId")
35 getDividendsOrderQuery.DividendsOrderId = dividendsOrderId 53 getDividendsOrderQuery.DividendsOrderId = dividendsOrderId
36 data, err := dividendsOrderService.GetDividendsOrder(getDividendsOrderQuery) 54 data, err := dividendsOrderService.GetDividendsOrder(getDividendsOrderQuery)
@@ -40,7 +58,13 @@ func (controller *DividendsOrderController) GetDividendsOrder() { @@ -40,7 +58,13 @@ func (controller *DividendsOrderController) GetDividendsOrder() {
40 func (controller *DividendsOrderController) RemoveDividendsOrder() { 58 func (controller *DividendsOrderController) RemoveDividendsOrder() {
41 dividendsOrderService := service.NewDividendsOrderService(nil) 59 dividendsOrderService := service.NewDividendsOrderService(nil)
42 removeDividendsOrderCommand := &command.RemoveDividendsOrderCommand{} 60 removeDividendsOrderCommand := &command.RemoveDividendsOrderCommand{}
43 - controller.Unmarshal(removeDividendsOrderCommand) 61 + _ = controller.Unmarshal(removeDividendsOrderCommand)
  62 + // 解析头部信息
  63 + header := controller.GetRequestHeader(controller.Ctx)
  64 + removeDividendsOrderCommand.CompanyId = header.CompanyId
  65 + removeDividendsOrderCommand.OrgId = header.OrgId
  66 + removeDividendsOrderCommand.UserId = header.UserId
  67 + removeDividendsOrderCommand.UserBaseId = header.UserBaseId
44 dividendsOrderId := controller.GetString(":dividendsOrderId") 68 dividendsOrderId := controller.GetString(":dividendsOrderId")
45 removeDividendsOrderCommand.DividendsOrderId = dividendsOrderId 69 removeDividendsOrderCommand.DividendsOrderId = dividendsOrderId
46 data, err := dividendsOrderService.RemoveDividendsOrder(removeDividendsOrderCommand) 70 data, err := dividendsOrderService.RemoveDividendsOrder(removeDividendsOrderCommand)
@@ -50,6 +74,12 @@ func (controller *DividendsOrderController) RemoveDividendsOrder() { @@ -50,6 +74,12 @@ func (controller *DividendsOrderController) RemoveDividendsOrder() {
50 func (controller *DividendsOrderController) SearchDividendsOrder() { 74 func (controller *DividendsOrderController) SearchDividendsOrder() {
51 dividendsOrderService := service.NewDividendsOrderService(nil) 75 dividendsOrderService := service.NewDividendsOrderService(nil)
52 searchDividendsOrderQuery := &query.SearchDividendsOrderQuery{} 76 searchDividendsOrderQuery := &query.SearchDividendsOrderQuery{}
  77 + // 解析头部信息
  78 + header := controller.GetRequestHeader(controller.Ctx)
  79 + searchDividendsOrderQuery.CompanyId = header.CompanyId
  80 + searchDividendsOrderQuery.OrgId = header.OrgId
  81 + searchDividendsOrderQuery.UserId = header.UserId
  82 + searchDividendsOrderQuery.UserBaseId = header.UserBaseId
53 data, err := dividendsOrderService.SearchDividendsOrder(searchDividendsOrderQuery) 83 data, err := dividendsOrderService.SearchDividendsOrder(searchDividendsOrderQuery)
54 controller.Response(data, err) 84 controller.Response(data, err)
55 } 85 }
@@ -57,6 +87,12 @@ func (controller *DividendsOrderController) SearchDividendsOrder() { @@ -57,6 +87,12 @@ func (controller *DividendsOrderController) SearchDividendsOrder() {
57 func (controller *DividendsOrderController) SearchDividendsOrderNumber() { 87 func (controller *DividendsOrderController) SearchDividendsOrderNumber() {
58 dividendsOrderService := service.NewDividendsOrderService(nil) 88 dividendsOrderService := service.NewDividendsOrderService(nil)
59 searchDividendsOrderNumberQuery := &query.SearchDividendsOrderNumberQuery{} 89 searchDividendsOrderNumberQuery := &query.SearchDividendsOrderNumberQuery{}
  90 + // 解析头部信息
  91 + header := controller.GetRequestHeader(controller.Ctx)
  92 + searchDividendsOrderNumberQuery.CompanyId = header.CompanyId
  93 + searchDividendsOrderNumberQuery.OrgId = header.OrgId
  94 + searchDividendsOrderNumberQuery.UserId = header.UserId
  95 + searchDividendsOrderNumberQuery.UserBaseId = header.UserBaseId
60 data, err := dividendsOrderService.SearchDividendsOrderNumber(searchDividendsOrderNumberQuery) 96 data, err := dividendsOrderService.SearchDividendsOrderNumber(searchDividendsOrderNumberQuery)
61 controller.Response(data, err) 97 controller.Response(data, err)
62 } 98 }
@@ -64,6 +100,12 @@ func (controller *DividendsOrderController) SearchDividendsOrderNumber() { @@ -64,6 +100,12 @@ func (controller *DividendsOrderController) SearchDividendsOrderNumber() {
64 func (controller *DividendsOrderController) ListDividendsOrders() { 100 func (controller *DividendsOrderController) ListDividendsOrders() {
65 dividendsOrderService := service.NewDividendsOrderService(nil) 101 dividendsOrderService := service.NewDividendsOrderService(nil)
66 listDividendsOrdersQuery := &query.ListDividendsOrdersQuery{} 102 listDividendsOrdersQuery := &query.ListDividendsOrdersQuery{}
  103 + // 解析头部信息
  104 + header := controller.GetRequestHeader(controller.Ctx)
  105 + listDividendsOrdersQuery.CompanyId = header.CompanyId
  106 + listDividendsOrdersQuery.OrgId = header.OrgId
  107 + listDividendsOrdersQuery.UserId = header.UserId
  108 + listDividendsOrdersQuery.UserBaseId = header.UserBaseId
67 pageSize, _ := controller.GetInt32("pageSize") 109 pageSize, _ := controller.GetInt32("pageSize")
68 listDividendsOrdersQuery.PageSize = pageSize 110 listDividendsOrdersQuery.PageSize = pageSize
69 pageNumber, _ := controller.GetInt32("pageNumber") 111 pageNumber, _ := controller.GetInt32("pageNumber")
@@ -13,7 +13,13 @@ type DividendsReturnedOrderController struct { @@ -13,7 +13,13 @@ type DividendsReturnedOrderController struct {
13 func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder() { 13 func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder() {
14 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 14 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
15 createDividendsReturnedOrderCommand := &command.CreateDividendsReturnedOrderCommand{} 15 createDividendsReturnedOrderCommand := &command.CreateDividendsReturnedOrderCommand{}
16 - controller.Unmarshal(createDividendsReturnedOrderCommand) 16 + _ = controller.Unmarshal(createDividendsReturnedOrderCommand)
  17 + // 解析头部信息
  18 + header := controller.GetRequestHeader(controller.Ctx)
  19 + createDividendsReturnedOrderCommand.CompanyId = header.CompanyId
  20 + createDividendsReturnedOrderCommand.OrgId = header.OrgId
  21 + createDividendsReturnedOrderCommand.UserId = header.UserId
  22 + createDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
17 data, err := dividendsReturnedOrderService.CreateDividendsReturnedOrder(createDividendsReturnedOrderCommand) 23 data, err := dividendsReturnedOrderService.CreateDividendsReturnedOrder(createDividendsReturnedOrderCommand)
18 controller.Response(data, err) 24 controller.Response(data, err)
19 } 25 }
@@ -21,7 +27,13 @@ func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder @@ -21,7 +27,13 @@ func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder
21 func (controller *DividendsReturnedOrderController) UpdateDividendsReturnedOrder() { 27 func (controller *DividendsReturnedOrderController) UpdateDividendsReturnedOrder() {
22 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 28 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
23 updateDividendsReturnedOrderCommand := &command.UpdateDividendsReturnedOrderCommand{} 29 updateDividendsReturnedOrderCommand := &command.UpdateDividendsReturnedOrderCommand{}
24 - controller.Unmarshal(updateDividendsReturnedOrderCommand) 30 + _ = controller.Unmarshal(updateDividendsReturnedOrderCommand)
  31 + // 解析头部信息
  32 + header := controller.GetRequestHeader(controller.Ctx)
  33 + updateDividendsReturnedOrderCommand.CompanyId = header.CompanyId
  34 + updateDividendsReturnedOrderCommand.OrgId = header.OrgId
  35 + updateDividendsReturnedOrderCommand.UserId = header.UserId
  36 + updateDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
25 dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId") 37 dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId")
26 updateDividendsReturnedOrderCommand.DividendsReturnedOrderId = dividendsReturnedOrderId 38 updateDividendsReturnedOrderCommand.DividendsReturnedOrderId = dividendsReturnedOrderId
27 data, err := dividendsReturnedOrderService.UpdateDividendsReturnedOrder(updateDividendsReturnedOrderCommand) 39 data, err := dividendsReturnedOrderService.UpdateDividendsReturnedOrder(updateDividendsReturnedOrderCommand)
@@ -31,6 +43,12 @@ func (controller *DividendsReturnedOrderController) UpdateDividendsReturnedOrder @@ -31,6 +43,12 @@ func (controller *DividendsReturnedOrderController) UpdateDividendsReturnedOrder
31 func (controller *DividendsReturnedOrderController) GetDividendsReturnedOrder() { 43 func (controller *DividendsReturnedOrderController) GetDividendsReturnedOrder() {
32 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 44 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
33 getDividendsReturnedOrderQuery := &query.GetDividendsReturnedOrderQuery{} 45 getDividendsReturnedOrderQuery := &query.GetDividendsReturnedOrderQuery{}
  46 + // 解析头部信息
  47 + header := controller.GetRequestHeader(controller.Ctx)
  48 + getDividendsReturnedOrderQuery.CompanyId = header.CompanyId
  49 + getDividendsReturnedOrderQuery.OrgId = header.OrgId
  50 + getDividendsReturnedOrderQuery.UserId = header.UserId
  51 + getDividendsReturnedOrderQuery.UserBaseId = header.UserBaseId
34 dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId") 52 dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId")
35 getDividendsReturnedOrderQuery.DividendsReturnedOrderId = dividendsReturnedOrderId 53 getDividendsReturnedOrderQuery.DividendsReturnedOrderId = dividendsReturnedOrderId
36 data, err := dividendsReturnedOrderService.GetDividendsReturnedOrder(getDividendsReturnedOrderQuery) 54 data, err := dividendsReturnedOrderService.GetDividendsReturnedOrder(getDividendsReturnedOrderQuery)
@@ -40,7 +58,13 @@ func (controller *DividendsReturnedOrderController) GetDividendsReturnedOrder() @@ -40,7 +58,13 @@ func (controller *DividendsReturnedOrderController) GetDividendsReturnedOrder()
40 func (controller *DividendsReturnedOrderController) RemoveDividendsReturnedOrder() { 58 func (controller *DividendsReturnedOrderController) RemoveDividendsReturnedOrder() {
41 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 59 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
42 removeDividendsReturnedOrderCommand := &command.RemoveDividendsReturnedOrderCommand{} 60 removeDividendsReturnedOrderCommand := &command.RemoveDividendsReturnedOrderCommand{}
43 - controller.Unmarshal(removeDividendsReturnedOrderCommand) 61 + _ = controller.Unmarshal(removeDividendsReturnedOrderCommand)
  62 + // 解析头部信息
  63 + header := controller.GetRequestHeader(controller.Ctx)
  64 + removeDividendsReturnedOrderCommand.CompanyId = header.CompanyId
  65 + removeDividendsReturnedOrderCommand.OrgId = header.OrgId
  66 + removeDividendsReturnedOrderCommand.UserId = header.UserId
  67 + removeDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
44 dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId") 68 dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId")
45 removeDividendsReturnedOrderCommand.DividendsReturnedOrderId = dividendsReturnedOrderId 69 removeDividendsReturnedOrderCommand.DividendsReturnedOrderId = dividendsReturnedOrderId
46 data, err := dividendsReturnedOrderService.RemoveDividendsReturnedOrder(removeDividendsReturnedOrderCommand) 70 data, err := dividendsReturnedOrderService.RemoveDividendsReturnedOrder(removeDividendsReturnedOrderCommand)
@@ -50,6 +74,12 @@ func (controller *DividendsReturnedOrderController) RemoveDividendsReturnedOrder @@ -50,6 +74,12 @@ func (controller *DividendsReturnedOrderController) RemoveDividendsReturnedOrder
50 func (controller *DividendsReturnedOrderController) SearchDividendsReturnedOrder() { 74 func (controller *DividendsReturnedOrderController) SearchDividendsReturnedOrder() {
51 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 75 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
52 searchDividendsReturnedOrderQuery := &query.SearchDividendsReturnedOrderQuery{} 76 searchDividendsReturnedOrderQuery := &query.SearchDividendsReturnedOrderQuery{}
  77 + // 解析头部信息
  78 + header := controller.GetRequestHeader(controller.Ctx)
  79 + searchDividendsReturnedOrderQuery.CompanyId = header.CompanyId
  80 + searchDividendsReturnedOrderQuery.OrgId = header.OrgId
  81 + searchDividendsReturnedOrderQuery.UserId = header.UserId
  82 + searchDividendsReturnedOrderQuery.UserBaseId = header.UserBaseId
53 data, err := dividendsReturnedOrderService.SearchDividendsReturnedOrder(searchDividendsReturnedOrderQuery) 83 data, err := dividendsReturnedOrderService.SearchDividendsReturnedOrder(searchDividendsReturnedOrderQuery)
54 controller.Response(data, err) 84 controller.Response(data, err)
55 } 85 }
@@ -57,7 +87,13 @@ func (controller *DividendsReturnedOrderController) SearchDividendsReturnedOrder @@ -57,7 +87,13 @@ func (controller *DividendsReturnedOrderController) SearchDividendsReturnedOrder
57 func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder() { 87 func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder() {
58 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 88 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
59 importDividendsReturnedOrderCommand := &command.ImportDividendsReturnedOrderCommand{} 89 importDividendsReturnedOrderCommand := &command.ImportDividendsReturnedOrderCommand{}
60 - controller.Unmarshal(importDividendsReturnedOrderCommand) 90 + _ = controller.Unmarshal(importDividendsReturnedOrderCommand)
  91 + // 解析头部信息
  92 + header := controller.GetRequestHeader(controller.Ctx)
  93 + importDividendsReturnedOrderCommand.CompanyId = header.CompanyId
  94 + importDividendsReturnedOrderCommand.OrgId = header.OrgId
  95 + importDividendsReturnedOrderCommand.UserId = header.UserId
  96 + importDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
61 data, err := dividendsReturnedOrderService.ImportDividendsReturnedOrder(importDividendsReturnedOrderCommand) 97 data, err := dividendsReturnedOrderService.ImportDividendsReturnedOrder(importDividendsReturnedOrderCommand)
62 controller.Response(data, err) 98 controller.Response(data, err)
63 } 99 }
@@ -65,6 +101,12 @@ func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder @@ -65,6 +101,12 @@ func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder
65 func (controller *DividendsReturnedOrderController) ListDividendsReturnedOrder() { 101 func (controller *DividendsReturnedOrderController) ListDividendsReturnedOrder() {
66 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 102 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
67 listDividendsReturnedOrderQuery := &query.ListDividendsReturnedOrderQuery{} 103 listDividendsReturnedOrderQuery := &query.ListDividendsReturnedOrderQuery{}
  104 + // 解析头部信息
  105 + header := controller.GetRequestHeader(controller.Ctx)
  106 + listDividendsReturnedOrderQuery.CompanyId = header.CompanyId
  107 + listDividendsReturnedOrderQuery.OrgId = header.OrgId
  108 + listDividendsReturnedOrderQuery.UserId = header.UserId
  109 + listDividendsReturnedOrderQuery.UserBaseId = header.UserBaseId
68 pageSize, _ := controller.GetInt32("pageSize") 110 pageSize, _ := controller.GetInt32("pageSize")
69 listDividendsReturnedOrderQuery.PageSize = pageSize 111 listDividendsReturnedOrderQuery.PageSize = pageSize
70 pageNumber, _ := controller.GetInt32("pageNumber") 112 pageNumber, _ := controller.GetInt32("pageNumber")