qryErmcp8.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package ermcp8
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryErmcp2HedgedItem
  8. // @Summary 查询被套期项目信息
  9. // @description 已完成项目查询 -> 项目状态 = 3:正常完结 or 5:异常完结
  10. // @Produce json
  11. // @Security ApiKeyAuth
  12. // @Param userid query string true "用户ID"
  13. // @Param hedgedtype query int false "套期类型 1:采购计划项目 2:销售计划项目 3:现货贸易项目 4:库存存货项目 5:定价采购合同项目"
  14. // @Param hedgeditemstatus query int false "项目状态 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
  15. // @Success 200 {array} models.Ermcp2hedgeditem
  16. // @Failure 500 {object} app.Response
  17. // @Router /Ermcp8/QueryErmcp2HedgedItem [get]
  18. // @Tags 企业风险管理v8
  19. func QueryErmcp2HedgedItem(c *gin.Context) {
  20. a := app.GinUtils{Gin: app.Gin{C: c}}
  21. m := models.Ermcp2hedgeditem{}
  22. a.DoBindReq(&m)
  23. a.DoGetDataI(&m)
  24. }
  25. // QueryERMCPJRLinkPos
  26. // @Summary 期货持仓明细查询
  27. // @Produce json
  28. // @Security ApiKeyAuth
  29. // @Param hedgeditemid query int true "套期项目ID"
  30. // @Success 200 {array} models.Ermcpjrlinkpos
  31. // @Failure 500 {object} app.Response
  32. // @Router /Ermcp8/QueryERMCPJRLinkPos [get]
  33. // @Tags 企业风险管理v8
  34. func QueryERMCPJRLinkPos(c *gin.Context) {
  35. a := app.GinUtils{Gin: app.Gin{C: c}}
  36. m := models.Ermcpjrlinkpos{}
  37. a.DoBindReq(&m)
  38. a.DoGetDataI(&m)
  39. }
  40. // QueryERMCP2HedgedItemspot
  41. // @Summary 套期计划明细查询
  42. // @Produce json
  43. // @Security ApiKeyAuth
  44. // @Param hedgeditemid query int true "套期项目ID"
  45. // @Success 200 {array} models.Ermcp2hedgeditemspot
  46. // @Failure 500 {object} app.Response
  47. // @Router /Ermcp8/QueryERMCP2HedgedItemspot [get]
  48. // @Tags 企业风险管理v8
  49. func QueryERMCP2HedgedItemspot(c *gin.Context) {
  50. a := app.GinUtils{Gin: app.Gin{C: c}}
  51. m := models.Ermcp2hedgeditemspot{}
  52. a.DoBindReq(&m)
  53. a.DoGetDataI(&m)
  54. }