正在显示
4 个修改的文件
包含
7 行增加
和
5 行删除
@@ -234,8 +234,8 @@ func (cooperationContractService *CooperationContractService) RemoveCooperationC | @@ -234,8 +234,8 @@ func (cooperationContractService *CooperationContractService) RemoveCooperationC | ||
234 | return removeCooperationContractCommand, nil | 234 | return removeCooperationContractCommand, nil |
235 | } | 235 | } |
236 | 236 | ||
237 | -// 返回共创合约下拉选择列表表 | ||
238 | -func (cooperationContractService *CooperationContractService) ListCooperationContractSelector( | 237 | +// 分红单,分红退货单 返回共创合约下拉选择列表 |
238 | +func (cooperationContractService *CooperationContractService) ContractSelectorForDividendsOrder( | ||
239 | listCooperationContractQuery *query.ListContractSelectorQuery) (int, interface{}, error) { | 239 | listCooperationContractQuery *query.ListContractSelectorQuery) (int, interface{}, error) { |
240 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(listCooperationContractQuery.Operator) | 240 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(listCooperationContractQuery.Operator) |
241 | result, err := creationCooperationGateway.CooperationContractSearch(allied_creation_cooperation.ReqCooperationContractSearch{ | 241 | result, err := creationCooperationGateway.CooperationContractSearch(allied_creation_cooperation.ReqCooperationContractSearch{ |
@@ -244,6 +244,7 @@ func (cooperationContractService *CooperationContractService) ListCooperationCon | @@ -244,6 +244,7 @@ func (cooperationContractService *CooperationContractService) ListCooperationCon | ||
244 | SponsorName: listCooperationContractQuery.SponsorName, | 244 | SponsorName: listCooperationContractQuery.SponsorName, |
245 | CooperationContractNumber: listCooperationContractQuery.CooperationContractNumber, | 245 | CooperationContractNumber: listCooperationContractQuery.CooperationContractNumber, |
246 | OrgId: listCooperationContractQuery.Operator.OrgId, | 246 | OrgId: listCooperationContractQuery.Operator.OrgId, |
247 | + IncentivesType: 1, | ||
247 | }) | 248 | }) |
248 | if err != nil { | 249 | if err != nil { |
249 | return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 250 | return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
@@ -237,6 +237,7 @@ type ( | @@ -237,6 +237,7 @@ type ( | ||
237 | UserBaseId int64 `json:"userBaseId"` | 237 | UserBaseId int64 `json:"userBaseId"` |
238 | // 组织机构ID | 238 | // 组织机构ID |
239 | OrgIds []int64 ` json:"orgIds"` | 239 | OrgIds []int64 ` json:"orgIds"` |
240 | + IncentivesType int `json:"incentivesType"` //作为合约激励方式的判断,1业绩分红激励,2金额激励 | ||
240 | } | 241 | } |
241 | 242 | ||
242 | DataCooperationContractSearch struct { | 243 | DataCooperationContractSearch struct { |
@@ -108,7 +108,7 @@ func (controller *CooperationContractController) RemoveCooperationContract() { | @@ -108,7 +108,7 @@ func (controller *CooperationContractController) RemoveCooperationContract() { | ||
108 | } | 108 | } |
109 | 109 | ||
110 | //分红订单,分红退货单获取关联合约选择列表 | 110 | //分红订单,分红退货单获取关联合约选择列表 |
111 | -func (controller *CooperationContractController) SelectorContract() { | 111 | +func (controller *CooperationContractController) SelectorContractForDividendsOrder() { |
112 | cooperationContractService := service.NewCooperationContractService(nil) | 112 | cooperationContractService := service.NewCooperationContractService(nil) |
113 | listCooperationContractQuery := &query.ListContractSelectorQuery{} | 113 | listCooperationContractQuery := &query.ListContractSelectorQuery{} |
114 | err := controller.Unmarshal(listCooperationContractQuery) | 114 | err := controller.Unmarshal(listCooperationContractQuery) |
@@ -118,6 +118,6 @@ func (controller *CooperationContractController) SelectorContract() { | @@ -118,6 +118,6 @@ func (controller *CooperationContractController) SelectorContract() { | ||
118 | return | 118 | return |
119 | } | 119 | } |
120 | listCooperationContractQuery.Operator = controller.GetOperator() | 120 | listCooperationContractQuery.Operator = controller.GetOperator() |
121 | - cnt, data, err := cooperationContractService.ListCooperationContractSelector(listCooperationContractQuery) | 121 | + cnt, data, err := cooperationContractService.ContractSelectorForDividendsOrder(listCooperationContractQuery) |
122 | controller.ReturnPageListData(int64(cnt), data, err, listCooperationContractQuery.PageNumber) | 122 | controller.ReturnPageListData(int64(cnt), data, err, listCooperationContractQuery.PageNumber) |
123 | } | 123 | } |
@@ -11,5 +11,5 @@ func init() { | @@ -11,5 +11,5 @@ func init() { | ||
11 | web.Router("/v1/web/dividends-order/remove", &web_client.DividendsOrderController{}, "Post:RemoveDividendsOrder") | 11 | web.Router("/v1/web/dividends-order/remove", &web_client.DividendsOrderController{}, "Post:RemoveDividendsOrder") |
12 | web.Router("/v1/web/dividends-order/:orderId", &web_client.DividendsOrderController{}, "Get:GetDividendsOrder") | 12 | web.Router("/v1/web/dividends-order/:orderId", &web_client.DividendsOrderController{}, "Get:GetDividendsOrder") |
13 | web.Router("/v1/web/dividends-order/search", &web_client.DividendsOrderController{}, "Post:SearchDividendsOrder") | 13 | web.Router("/v1/web/dividends-order/search", &web_client.DividendsOrderController{}, "Post:SearchDividendsOrder") |
14 | - web.Router("/v1/web/dividends-order/selector/contract", &web_client.CooperationContractController{}, "Post:SelectorContract") | 14 | + web.Router("/v1/web/dividends-order/selector/contract", &web_client.CooperationContractController{}, "Post:SelectorContractForDividendsOrder") |
15 | } | 15 | } |
-
请 注册 或 登录 后发表评论