...
|
...
|
@@ -10,6 +10,7 @@ type DividendsEstimateController struct { |
|
|
BaseController
|
|
|
}
|
|
|
|
|
|
// CreateDividendsEstimate 新增分红预算单(预留)
|
|
|
func (controller *DividendsEstimateController) CreateDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
createDividendsEstimateCommand := &command.CreateDividendsEstimateCommand{}
|
...
|
...
|
@@ -23,6 +24,7 @@ func (controller *DividendsEstimateController) CreateDividendsEstimate() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// UpdateDividendsEstimate 编辑分红预算单(预留)
|
|
|
func (controller *DividendsEstimateController) UpdateDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
updateDividendsEstimateCommand := &command.UpdateDividendsEstimateCommand{}
|
...
|
...
|
@@ -38,6 +40,7 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// GetDividendsEstimate 获取分红预算单详情
|
|
|
func (controller *DividendsEstimateController) GetDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{}
|
...
|
...
|
@@ -52,6 +55,7 @@ func (controller *DividendsEstimateController) GetDividendsEstimate() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// RemoveDividendsEstimate 移除分红预算单(预留)
|
|
|
func (controller *DividendsEstimateController) RemoveDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
removeDividendsEstimateCommand := &command.RemoveDividendsEstimateCommand{}
|
...
|
...
|
@@ -67,6 +71,7 @@ func (controller *DividendsEstimateController) RemoveDividendsEstimate() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// CancelDividendsEstimate 取消分红预算单
|
|
|
func (controller *DividendsEstimateController) CancelDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
cancelDividendsEstimateCommand := &command.CancelDividendsEstimateCommand{}
|
...
|
...
|
@@ -82,20 +87,40 @@ func (controller *DividendsEstimateController) CancelDividendsEstimate() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// BatchCancelDividendsEstimate 批量取消分红预算单
|
|
|
func (controller *DividendsEstimateController) BatchCancelDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
batchCancelDividendsEstimateCommand := &command.BatchCancelDividendsEstimateCommand{}
|
|
|
_ = controller.Unmarshal(batchCancelDividendsEstimateCommand)
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
batchCancelDividendsEstimateCommand.CompanyId = header.CompanyId
|
|
|
batchCancelDividendsEstimateCommand.OrgId = header.OrgId
|
|
|
batchCancelDividendsEstimateCommand.UserId = header.UserId
|
|
|
batchCancelDividendsEstimateCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.BatchCancelDividendsEstimate(batchCancelDividendsEstimateCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// SearchDividendsEstimate 搜索分红预算单
|
|
|
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)
|
|
|
}
|
|
|
|
|
|
func (controller *DividendsEstimateController) EstimateDividendsIncentives() {
|
|
|
// ConfirmDividendsIncentivesEstimate 确定业绩激励分红预算
|
|
|
func (controller *DividendsEstimateController) ConfirmDividendsIncentivesEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
estimateDividendsIncentivesCommand := &command.ConfirmDividendsIncentivesEstimateCommand{}
|
|
|
_ = controller.Unmarshal(estimateDividendsIncentivesCommand)
|
...
|
...
|
@@ -104,48 +129,61 @@ func (controller *DividendsEstimateController) EstimateDividendsIncentives() { |
|
|
estimateDividendsIncentivesCommand.OrgId = header.OrgId
|
|
|
estimateDividendsIncentivesCommand.UserId = header.UserId
|
|
|
estimateDividendsIncentivesCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.EstimateDividendsIncentives(estimateDividendsIncentivesCommand)
|
|
|
data, err := dividendsEstimateService.ConfirmDividendsIncentivesEstimate(estimateDividendsIncentivesCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *DividendsEstimateController) EstimateMoneyIncentives() {
|
|
|
// ConfirmMoneyIncentivesEstimate 确定金额激励分红预算
|
|
|
func (controller *DividendsEstimateController) ConfirmMoneyIncentivesEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
estimateMoneyIncentivesCommand := &command.ConfirmMoneyIncentivesEstimateCommand{}
|
|
|
_ = controller.Unmarshal(estimateMoneyIncentivesCommand)
|
|
|
confirmMoneyIncentivesEstimateCommand := &command.ConfirmMoneyIncentivesEstimateCommand{}
|
|
|
_ = controller.Unmarshal(confirmMoneyIncentivesEstimateCommand)
|
|
|
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)
|
|
|
confirmMoneyIncentivesEstimateCommand.CompanyId = header.CompanyId
|
|
|
confirmMoneyIncentivesEstimateCommand.OrgId = header.OrgId
|
|
|
confirmMoneyIncentivesEstimateCommand.UserId = header.UserId
|
|
|
confirmMoneyIncentivesEstimateCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.ConfirmMoneyIncentivesEstimate(confirmMoneyIncentivesEstimateCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *DividendsEstimateController) ListMoneyIncentives() {
|
|
|
// ListMoneyIncentivesEstimate 返回金额激励分红预算信息列表
|
|
|
func (controller *DividendsEstimateController) ListMoneyIncentivesEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
listMoneyIncentivesQuery := &query.ListMoneyIncentivesEstimateQuery{}
|
|
|
listMoneyIncentivesEstimateQuery := &query.ListMoneyIncentivesEstimateQuery{}
|
|
|
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)
|
|
|
listMoneyIncentivesEstimateQuery.CompanyId = header.CompanyId
|
|
|
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)
|
|
|
}
|
|
|
|
|
|
func (controller *DividendsEstimateController) SearchMoneyIncentives() {
|
|
|
// SearchMoneyIncentivesEstimate 搜索金额激励分红预算信息
|
|
|
func (controller *DividendsEstimateController) SearchMoneyIncentivesEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
searchMoneyIncentivesQuery := &query.SearchMoneyIncentivesEstimateQuery{}
|
|
|
searchMoneyIncentivesEstimateQuery := &query.SearchMoneyIncentivesEstimateQuery{}
|
|
|
_ = controller.Unmarshal(searchMoneyIncentivesEstimateQuery)
|
|
|
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)
|
|
|
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)
|
|
|
}
|
|
|
|
|
|
func (controller *DividendsEstimateController) ListDividendsIncentives() {
|
|
|
// ListDividendsIncentivesEstimate 返回业绩激励分红预算信息列表
|
|
|
func (controller *DividendsEstimateController) ListDividendsIncentivesEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
listDividendsIncentivesQuery := &query.ListDividendsIncentivesEstimateQuery{}
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
...
|
...
|
@@ -153,22 +191,33 @@ func (controller *DividendsEstimateController) ListDividendsIncentives() { |
|
|
listDividendsIncentivesQuery.OrgId = header.OrgId
|
|
|
listDividendsIncentivesQuery.UserId = header.UserId
|
|
|
listDividendsIncentivesQuery.UserBaseId = header.UserBaseId
|
|
|
data, err := dividendsEstimateService.ListDividendsIncentives(listDividendsIncentivesQuery)
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
listDividendsIncentivesQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
listDividendsIncentivesQuery.PageNumber = pageNumber
|
|
|
data, err := dividendsEstimateService.ListDividendsIncentivesEstimate(listDividendsIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *DividendsEstimateController) SearchDividendsIncentives() {
|
|
|
// SearchDividendsIncentivesEstimate 搜索业绩激励分红预算信息
|
|
|
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
|
|
|
data, err := dividendsEstimateService.SearchDividendsIncentives(searchDividendsIncentivesQuery)
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
searchDividendsIncentivesQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
searchDividendsIncentivesQuery.PageNumber = pageNumber
|
|
|
data, err := dividendsEstimateService.SearchDividendsIncentivesEstimate(searchDividendsIncentivesQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// ListDividendsEstimate 返回分红预算单列表
|
|
|
func (controller *DividendsEstimateController) ListDividendsEstimate() {
|
|
|
dividendsEstimateService := service.NewDividendsEstimateService(nil)
|
|
|
listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{}
|
...
|
...
|
|