...
|
...
|
@@ -360,10 +360,24 @@ func (controller *CooperationController) GetDividendContracts() { |
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
cmd.ContractId, _ = controller.GetInt("contractId")
|
|
|
data, err := svr.GetDividendContracts(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) SearchDividendContracts() {
|
|
|
svr := service.CompanyStatisticsService{}
|
|
|
cmd := &command.SearchDividendContractsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.SearchDividendContracts(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) DividendsStatistics() {
|
|
|
svr := service.CompanyStatisticsService{}
|
|
|
cmd := &command.DividendsStatisticsCommand{}
|
...
|
...
|
@@ -390,6 +404,60 @@ func (controller *CooperationController) SearchDividendsEstimates() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
/***** PersonDividends 个人端分红 *****/
|
|
|
func (controller *CooperationController) GetDividendContractsPerson() {
|
|
|
svr := service.PersonDividendsService{}
|
|
|
cmd := &command.GetDividendContractsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
cmd.ContractId, _ = controller.GetInt("contractId")
|
|
|
data, err := svr.GetDividendContracts(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) SearchDividendContractsPerson() {
|
|
|
svr := service.PersonDividendsService{}
|
|
|
cmd := &command.SearchDividendContractsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.SearchDividendContracts(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) DividendsStatisticsPerson() {
|
|
|
svr := service.PersonDividendsService{}
|
|
|
cmd := &command.DividendsStatisticsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.DividendsStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) SearchDividendsEstimatesPerson() {
|
|
|
svr := service.PersonDividendsService{}
|
|
|
cmd := &command.SearchDividendsEstimatesCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.SearchDividendsEstimates(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
/***** CompanyStatistics 企业端统计 *****/
|
|
|
|
|
|
func (controller *CooperationController) IndexStatistics() {
|
...
|
...
|
|