...
|
...
|
@@ -13,7 +13,13 @@ type DividendsEstimateController struct { |
|
|
func (controller *DividendsEstimateController) CreateDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
createDividendsEstimateCommand := &command.CreateDividendsEstimateCommand{}
|
|
|
controller.Unmarshal(createDividendsEstimateCommand)
|
|
|
_ = controller.Unmarshal(createDividendsEstimateCommand)
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
createDividendsEstimateCommand.CompanyId = header.CompanyId
|
|
|
createDividendsEstimateCommand.OrgId = header.OrgId
|
|
|
createDividendsEstimateCommand.UserId = header.UserId
|
|
|
createDividendsEstimateCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.CreateDividendsEstimate(createDividendsEstimateCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -21,7 +27,13 @@ func (controller *DividendsEstimateController) CreateDividendsEstimate() { |
|
|
func (controller *DividendsEstimateController) UpdateDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
updateDividendsEstimateCommand := &command.UpdateDividendsEstimateCommand{}
|
|
|
controller.Unmarshal(updateDividendsEstimateCommand)
|
|
|
_ = controller.Unmarshal(updateDividendsEstimateCommand)
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
updateDividendsEstimateCommand.CompanyId = header.CompanyId
|
|
|
updateDividendsEstimateCommand.OrgId = header.OrgId
|
|
|
updateDividendsEstimateCommand.UserId = header.UserId
|
|
|
updateDividendsEstimateCommand.UserBaseId = header.UserBaseId
|
|
|
dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId")
|
|
|
updateDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
|
|
|
data, err := dividendsEstimateService.UpdateDividendsEstimate(updateDividendsEstimateCommand)
|
...
|
...
|
@@ -31,6 +43,12 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { |
|
|
func (controller *DividendsEstimateController) GetDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{}
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
getDividendsEstimateQuery.CompanyId = header.CompanyId
|
|
|
getDividendsEstimateQuery.OrgId = header.OrgId
|
|
|
getDividendsEstimateQuery.UserId = header.UserId
|
|
|
getDividendsEstimateQuery.UserBaseId = header.UserBaseId
|
|
|
dividendsEstimateId := controller.GetString(":dividendsEstimateId")
|
|
|
getDividendsEstimateQuery.DividendsEstimateId = dividendsEstimateId
|
|
|
data, err := dividendsEstimateService.GetDividendsEstimate(getDividendsEstimateQuery)
|
...
|
...
|
@@ -40,7 +58,13 @@ func (controller *DividendsEstimateController) GetDividendsEstimate() { |
|
|
func (controller *DividendsEstimateController) RemoveDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
removeDividendsEstimateCommand := &command.RemoveDividendsEstimateCommand{}
|
|
|
controller.Unmarshal(removeDividendsEstimateCommand)
|
|
|
_ = controller.Unmarshal(removeDividendsEstimateCommand)
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
removeDividendsEstimateCommand.CompanyId = header.CompanyId
|
|
|
removeDividendsEstimateCommand.OrgId = header.OrgId
|
|
|
removeDividendsEstimateCommand.UserId = header.UserId
|
|
|
removeDividendsEstimateCommand.UserBaseId = header.UserBaseId
|
|
|
dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId")
|
|
|
removeDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
|
|
|
data, err := dividendsEstimateService.RemoveDividendsEstimate(removeDividendsEstimateCommand)
|
...
|
...
|
@@ -50,7 +74,13 @@ func (controller *DividendsEstimateController) RemoveDividendsEstimate() { |
|
|
func (controller *DividendsEstimateController) CancelDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
cancelDividendsEstimateCommand := &command.CancelDividendsEstimateCommand{}
|
|
|
controller.Unmarshal(cancelDividendsEstimateCommand)
|
|
|
_ = controller.Unmarshal(cancelDividendsEstimateCommand)
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
cancelDividendsEstimateCommand.CompanyId = header.CompanyId
|
|
|
cancelDividendsEstimateCommand.OrgId = header.OrgId
|
|
|
cancelDividendsEstimateCommand.UserId = header.UserId
|
|
|
cancelDividendsEstimateCommand.UserBaseId = header.UserBaseId
|
|
|
dividendsEstimateId := controller.GetString(":dividendsEstimateId")
|
|
|
cancelDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
|
|
|
data, err := dividendsEstimateService.CancelDividendsEstimate(cancelDividendsEstimateCommand)
|
...
|
...
|
@@ -60,6 +90,12 @@ func (controller *DividendsEstimateController) CancelDividendsEstimate() { |
|
|
func (controller *DividendsEstimateController) SearchDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
searchDividendsEstimateQuery := &query.SearchDividendsEstimateQuery{}
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
searchDividendsEstimateQuery.CompanyId = header.CompanyId
|
|
|
searchDividendsEstimateQuery.OrgId = header.OrgId
|
|
|
searchDividendsEstimateQuery.UserId = header.UserId
|
|
|
searchDividendsEstimateQuery.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.SearchDividendsEstimate(searchDividendsEstimateQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -67,7 +103,13 @@ func (controller *DividendsEstimateController) SearchDividendsEstimate() { |
|
|
func (controller *DividendsEstimateController) EstimateDividendsIncentives() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
estimateDividendsIncentivesCommand := &command.EstimateDividendsIncentivesCommand{}
|
|
|
controller.Unmarshal(estimateDividendsIncentivesCommand)
|
|
|
_ = controller.Unmarshal(estimateDividendsIncentivesCommand)
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
estimateDividendsIncentivesCommand.CompanyId = header.CompanyId
|
|
|
estimateDividendsIncentivesCommand.OrgId = header.OrgId
|
|
|
estimateDividendsIncentivesCommand.UserId = header.UserId
|
|
|
estimateDividendsIncentivesCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.EstimateDividendsIncentives(estimateDividendsIncentivesCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -75,7 +117,13 @@ func (controller *DividendsEstimateController) EstimateDividendsIncentives() { |
|
|
func (controller *DividendsEstimateController) EstimateMoneyIncentives() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
estimateMoneyIncentivesCommand := &command.EstimateMoneyIncentivesCommand{}
|
|
|
controller.Unmarshal(estimateMoneyIncentivesCommand)
|
|
|
_ = controller.Unmarshal(estimateMoneyIncentivesCommand)
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
estimateMoneyIncentivesCommand.CompanyId = header.CompanyId
|
|
|
estimateMoneyIncentivesCommand.OrgId = header.OrgId
|
|
|
estimateMoneyIncentivesCommand.UserId = header.UserId
|
|
|
estimateMoneyIncentivesCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.EstimateMoneyIncentives(estimateMoneyIncentivesCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -83,6 +131,12 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() { |
|
|
func (controller *DividendsEstimateController) ListMoneyIncentives() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
listMoneyIncentivesQuery := &query.ListMoneyIncentivesQuery{}
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
listMoneyIncentivesQuery.CompanyId = header.CompanyId
|
|
|
listMoneyIncentivesQuery.OrgId = header.OrgId
|
|
|
listMoneyIncentivesQuery.UserId = header.UserId
|
|
|
listMoneyIncentivesQuery.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.ListMoneyIncentives(listMoneyIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -90,6 +144,12 @@ func (controller *DividendsEstimateController) ListMoneyIncentives() { |
|
|
func (controller *DividendsEstimateController) SearchMoneyIncentives() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
searchMoneyIncentivesQuery := &query.SearchMoneyIncentivesQuery{}
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
searchMoneyIncentivesQuery.CompanyId = header.CompanyId
|
|
|
searchMoneyIncentivesQuery.OrgId = header.OrgId
|
|
|
searchMoneyIncentivesQuery.UserId = header.UserId
|
|
|
searchMoneyIncentivesQuery.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.SearchMoneyIncentives(searchMoneyIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -97,6 +157,12 @@ func (controller *DividendsEstimateController) SearchMoneyIncentives() { |
|
|
func (controller *DividendsEstimateController) ListDividendsIncentives() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
listDividendsIncentivesQuery := &query.ListDividendsIncentivesQuery{}
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
listDividendsIncentivesQuery.CompanyId = header.CompanyId
|
|
|
listDividendsIncentivesQuery.OrgId = header.OrgId
|
|
|
listDividendsIncentivesQuery.UserId = header.UserId
|
|
|
listDividendsIncentivesQuery.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.ListDividendsIncentives(listDividendsIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -104,6 +170,12 @@ func (controller *DividendsEstimateController) ListDividendsIncentives() { |
|
|
func (controller *DividendsEstimateController) SearchDividendsIncentives() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
searchDividendsIncentivesQuery := &query.SearchDividendsIncentivesQuery{}
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
searchDividendsIncentivesQuery.CompanyId = header.CompanyId
|
|
|
searchDividendsIncentivesQuery.OrgId = header.OrgId
|
|
|
searchDividendsIncentivesQuery.UserId = header.UserId
|
|
|
searchDividendsIncentivesQuery.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.SearchDividendsIncentives(searchDividendsIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -111,6 +183,12 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() { |
|
|
func (controller *DividendsEstimateController) ListDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{}
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
listDividendsEstimateQuery.CompanyId = header.CompanyId
|
|
|
listDividendsEstimateQuery.OrgId = header.OrgId
|
|
|
listDividendsEstimateQuery.UserId = header.UserId
|
|
|
listDividendsEstimateQuery.UserBaseId = header.UserBaseId
|
|
|
pageSize, _ := controller.GetInt32("pageSize")
|
|
|
listDividendsEstimateQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt32("pageNumber")
|
...
|
...
|
|