...
|
...
|
@@ -105,12 +105,16 @@ func (controller *DividendsEstimateController) BatchCancelDividendsEstimate() { |
|
|
func (controller *DividendsEstimateController) SearchDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
searchDividendsEstimateQuery := &query.SearchDividendsEstimateQuery{}
|
|
|
// 解析头部信息
|
|
|
_ = controller.Unmarshal(searchDividendsEstimateQuery)
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
searchDividendsEstimateQuery.CompanyId = header.CompanyId
|
|
|
searchDividendsEstimateQuery.OrgId = header.OrgId
|
|
|
searchDividendsEstimateQuery.UserId = header.UserId
|
|
|
searchDividendsEstimateQuery.UserBaseId = header.UserBaseId
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
searchDividendsEstimateQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
searchDividendsEstimateQuery.PageNumber = pageNumber
|
|
|
data, err := dividendsEstimateService.SearchDividendsEstimate(searchDividendsEstimateQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -152,6 +156,10 @@ func (controller *DividendsEstimateController) ListMoneyIncentivesEstimate() { |
|
|
listMoneyIncentivesEstimateQuery.OrgId = header.OrgId
|
|
|
listMoneyIncentivesEstimateQuery.UserId = header.UserId
|
|
|
listMoneyIncentivesEstimateQuery.UserBaseId = header.UserBaseId
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
listMoneyIncentivesEstimateQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
listMoneyIncentivesEstimateQuery.PageNumber = pageNumber
|
|
|
data, err := dividendsEstimateService.ListMoneyIncentivesEstimate(listMoneyIncentivesEstimateQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -160,11 +168,16 @@ func (controller *DividendsEstimateController) ListMoneyIncentivesEstimate() { |
|
|
func (controller *DividendsEstimateController) SearchMoneyIncentivesEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
searchMoneyIncentivesEstimateQuery := &query.SearchMoneyIncentivesEstimateQuery{}
|
|
|
_ = controller.Unmarshal(searchMoneyIncentivesEstimateQuery)
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
searchMoneyIncentivesEstimateQuery.CompanyId = header.CompanyId
|
|
|
searchMoneyIncentivesEstimateQuery.OrgId = header.OrgId
|
|
|
searchMoneyIncentivesEstimateQuery.UserId = header.UserId
|
|
|
searchMoneyIncentivesEstimateQuery.UserBaseId = header.UserBaseId
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
searchMoneyIncentivesEstimateQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
searchMoneyIncentivesEstimateQuery.PageNumber = pageNumber
|
|
|
data, err := dividendsEstimateService.SearchMoneyIncentivesEstimate(searchMoneyIncentivesEstimateQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -178,6 +191,10 @@ func (controller *DividendsEstimateController) ListDividendsIncentivesEstimate() |
|
|
listDividendsIncentivesQuery.OrgId = header.OrgId
|
|
|
listDividendsIncentivesQuery.UserId = header.UserId
|
|
|
listDividendsIncentivesQuery.UserBaseId = header.UserBaseId
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
listDividendsIncentivesQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
listDividendsIncentivesQuery.PageNumber = pageNumber
|
|
|
data, err := dividendsEstimateService.ListDividendsIncentivesEstimate(listDividendsIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -186,11 +203,16 @@ func (controller *DividendsEstimateController) ListDividendsIncentivesEstimate() |
|
|
func (controller *DividendsEstimateController) SearchDividendsIncentivesEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
searchDividendsIncentivesQuery := &query.SearchDividendsIncentivesEstimateQuery{}
|
|
|
_ = controller.Unmarshal(searchDividendsIncentivesQuery)
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
searchDividendsIncentivesQuery.CompanyId = header.CompanyId
|
|
|
searchDividendsIncentivesQuery.OrgId = header.OrgId
|
|
|
searchDividendsIncentivesQuery.UserId = header.UserId
|
|
|
searchDividendsIncentivesQuery.UserBaseId = header.UserBaseId
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
searchDividendsIncentivesQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
searchDividendsIncentivesQuery.PageNumber = pageNumber
|
|
|
data, err := dividendsEstimateService.SearchDividendsIncentivesEstimate(searchDividendsIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
|