report.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package guangzuan
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryMemberReport
  8. // @Summary 查询会员报表
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Security LoginID
  12. // @Security Group
  13. // @Param userid query int true "用户ID"
  14. // @Param page query int false "页码"
  15. // @Param pagesize query int false "每页条数"
  16. // @Param cycletype query string false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表 (日报表不传此参数)"
  17. // @Param begindate query string true "开始时段(日报表:yyyymmdd 月报表:yyyymm 年报表:yyyy)"
  18. // @Param enddate query string true "结束时段(日报表:yyyymmdd 月报表:yyyymm 年报表:yyyy)"
  19. // @Success 200 {array} models.Reckondaytaaccount
  20. // @Failure 500 {object} app.Response
  21. // @Router /Guangzuan/QueryMemberReport [get]
  22. // @Tags 广钻
  23. func QueryMemberReport(c *gin.Context) {
  24. a := app.GinUtils{Gin: app.Gin{C: c}}
  25. m := models.Reckondaytaaccount{}
  26. a.DoBindReq(&m)
  27. a.DoGetDataByPage(&m)
  28. }
  29. // QueryWRPositionReport
  30. // @Summary 查询仓储报表
  31. // @Produce json
  32. // @Security ApiKeyAuth
  33. // @Security LoginID
  34. // @Security Group
  35. // @Param userid query int true "用户ID"
  36. // @Param page query int false "页码"
  37. // @Param pagesize query int false "每页条数"
  38. // @Param cycletype query string false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表 (日报表不传此参数)"
  39. // @Param begindate query string true "开始时段(日报表:yyyymmdd 月报表:yyyymm 年报表:yyyy)"
  40. // @Param enddate query string true "结束时段(日报表:yyyymmdd 月报表:yyyymm 年报表:yyyy)"
  41. // @Param zscategory query int false "商品分类"
  42. // @Param zscurrencytype query int false "商品币种"
  43. // @Success 200 {array} models.WRPositionReport
  44. // @Failure 500 {object} app.Response
  45. // @Router /Guangzuan/QueryWRPositionReport [get]
  46. // @Tags 广钻
  47. func QueryWRPositionReport(c *gin.Context) {
  48. a := app.GinUtils{Gin: app.Gin{C: c}}
  49. m := models.WRPositionReport{}
  50. a.DoBindReq(&m)
  51. a.DoGetDataByPage(&m)
  52. }
  53. // QueryTradeReport
  54. // @Summary 查询交易报表
  55. // @Produce json
  56. // @Security ApiKeyAuth
  57. // @Security LoginID
  58. // @Security Group
  59. // @Param userid query int true "用户ID"
  60. // @Param page query int false "页码"
  61. // @Param pagesize query int false "每页条数"
  62. // @Param cycletype query string false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表 (日报表不传此参数)"
  63. // @Param begindate query string true "开始时段(日报表:yyyymmdd 月报表:yyyymm 年报表:yyyy)"
  64. // @Param enddate query string true "结束时段(日报表:yyyymmdd 月报表:yyyymm 年报表:yyyy)"
  65. // @Param zscategory query int false "商品分类"
  66. // @Param zscurrencytype query int false "商品币种"
  67. // @Success 200 {array} models.Reckongzmemtradesum
  68. // @Failure 500 {object} app.Response
  69. // @Router /Guangzuan/QueryTradeReport [get]
  70. // @Tags 广钻
  71. func QueryTradeReport(c *gin.Context) {
  72. a := app.GinUtils{Gin: app.Gin{C: c}}
  73. m := models.Reckongzmemtradesum{}
  74. a.DoBindReq(&m)
  75. a.DoGetDataByPage(&m)
  76. }