...
|
...
|
@@ -247,6 +247,7 @@ func (controller *CooperationController) CreditAccountGet() { |
|
|
if err != nil {
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.CreditAccountId, _ = controller.GetInt(":creditAccountId")
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CreditAccountGet(cmd)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -276,6 +277,79 @@ func (controller *CooperationController) CreditAccountPaySearch() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) DeleteAccountPaySearch() {
|
|
|
svr := service.CompanyCreditAccountService{}
|
|
|
cmd := &command.CreditAccountGetCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.CreditAccountId, _ = controller.GetInt(":creditAccountId")
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CreditAccountDelete(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PaymentHistoryStatistics() {
|
|
|
svr := service.CompanyCreditAccountService{}
|
|
|
cmd := &command.CreditAccountPaySearchCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.PaymentHistoryStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PaymentHistoryHistogramStatistics() {
|
|
|
svr := service.CompanyCreditAccountService{}
|
|
|
cmd := &command.CreditAccountPaySearchCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.PaymentHistoryHistogramStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonCreditAccountPaySearch() {
|
|
|
svr := service.PersonCreditAccountService{}
|
|
|
cmd := &command.CreditAccountPaySearchCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CreditAccountPaySearch(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonPaymentHistoryStatistics() {
|
|
|
svr := service.PersonCreditAccountService{}
|
|
|
cmd := &command.CreditAccountPaySearchCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.PaymentHistoryStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonPaymentHistoryHistogramStatistics() {
|
|
|
svr := service.PersonCreditAccountService{}
|
|
|
cmd := &command.CreditAccountPaySearchCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.PaymentHistoryHistogramStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
/***** CompanyDividends 企业端分红 *****/
|
|
|
func (controller *CooperationController) GetDividendContracts() {
|
|
|
svr := service.CompanyStatisticsService{}
|
...
|
...
|
@@ -369,3 +443,57 @@ func (controller *CooperationController) CooperationDividendsStatistics() { |
|
|
data, err := svr.CooperationDividendsStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
/***** PersonStatistics 用户端统计 *****/
|
|
|
|
|
|
func (controller *CooperationController) PersonIndexStatistics() {
|
|
|
svr := service.PersonStatisticsService{}
|
|
|
cmd := &command.IndexStatisticsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.IndexStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonCompanyStatistics() {
|
|
|
svr := service.PersonStatisticsService{}
|
|
|
cmd := &command.CooperationPersonStatisticsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CompanyStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonCompanyDividendStatistics() {
|
|
|
svr := service.PersonStatisticsService{}
|
|
|
cmd := &command.CooperationPersonStatisticsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CompanyDividendStatistics(cmd)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonCooperationProjectRecommend() {
|
|
|
svr := service.PersonStatisticsService{}
|
|
|
cmd := &command.GoodsStatisticsCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CooperationProjectRecommend(cmd)
|
|
|
controller.Response(data, err)
|
|
|
} |
...
|
...
|
|