| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- /**
- * @Author: zou.yingbin
- * @Create : 2021/2/4 11:27
- * @Modify : 2021/2/4 11:27
- */
- package ermcp
- import (
- "github.com/gin-gonic/gin"
- "mtp2_if/global/app"
- "mtp2_if/models"
- )
- // 财务日报表请求
- type QryReportDayReq struct {
- UserId int64 `form:"userid" binding:"required"` //用户ID
- TradeDate string `form:"tradedate" binding:"required"` // 交易日
- }
- type QryReportFinanceDayRsp models.ErmcpReportDayFR
- // @Summary 查询财务日报表(菜单:报表查询/财务报表/日报表)
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param tradedate query string true "交易日(格式:yyyyMMdd)"
- // @Success 200 {array} QryReportFinanceDayRsp
- // @Failure 500 {object} app.Response
- // @Router /Ermcp/QryReportDayFinance [get]
- // @Tags 企业风险管理(app)
- func QryReportDayFinance(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- req := QryReportDayReq{}
- a.DoBindReq(&req)
- m := models.ErmcpReportDayFR{AREAUSERID: req.UserId, RECKONDATE: req.TradeDate}
- a.DoGetDataEx(&m)
- }
- // 财务日报表款项明细
- type QryReportFinanceKxRsp models.ErmcpReportOPLog
- // @Summary 查询财务日报表款项(菜单:报表查询/财务报表/日报表/款项)
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param tradedate query string true "交易日(格式:yyyyMMdd)"
- // @Success 200 {array} QryReportFinanceKxRsp
- // @Failure 500 {object} app.Response
- // @Router /Ermcp/QryReportDayFinanceKx [get]
- // @Tags 企业风险管理(app)
- func QryReportDayFinanceKx(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- req := QryReportDayReq{}
- a.DoBindReq(&req)
- m := models.ErmcpReportDayFRKx{USERID: req.UserId, TRADEDATE: req.TradeDate}
- a.DoGetDataEx(&m)
- }
- // 财务日报表发票明细
- type QryReportFinanceFpRsp models.ErmcpReportOPLog
- // @Summary 查询财务日报表发票(菜单:报表查询/财务报表/日报表/发票)
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param tradedate query string true "交易日(格式:yyyyMMdd)"
- // @Success 200 {array} QryReportFinanceKxRsp
- // @Failure 500 {object} app.Response
- // @Router /Ermcp/QryReportDayFinanceFp [get]
- // @Tags 企业风险管理(app)
- func QryReportDayFinanceFp(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- req := QryReportDayReq{}
- a.DoBindReq(&req)
- m := models.ErmcpReportOPLog{USERID: req.UserId, TRADEDATE: req.TradeDate, LogTypeFilter: "11, 12"}
- a.DoGetDataEx(&m)
- }
- // 财务月报表请求
- type QryReportMonthReq struct {
- UserId int64 `form:"userid" binding:"required"` //用户ID
- CycleTime string `form:"cycletime" binding:"required"` // 周期时间:月(格式:yyyyMM)
- }
- type QryReportFinanceMonRsp models.ErmcpReportMonthFR
- // @Summary 查询财务月报表(菜单:报表查询/财务报表/月报表)
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param cycletime query string true "交易日(格式:yyyyMMdd)"
- // @Success 200 {array} QryReportFinanceMonRsp
- // @Failure 500 {object} app.Response
- // @Router /Ermcp/QryReportMonthFinance [get]
- // @Tags 企业风险管理(app)
- func QryReportMonthFinance(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- req := QryReportMonthReq{}
- a.DoBindReq(&req)
- m := models.ErmcpReportMonthFR{AREAUSERID: req.UserId, CYCLETIME: req.CycleTime}
- a.DoGetDataEx(&m)
- }
- // 敞口日报表
- type QryReportExposureDayRsp models.ErmcpReportDayExposure
- // @Summary 查询敞口日报表(菜单:报表查询/敞口报表/敞口日报表)
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param tradedate query string true "交易日(格式:yyyyMMdd)"
- // @Success 200 {array} QryReportExposureDayRsp
- // @Failure 500 {object} app.Response
- // @Router /Ermcp/QryReportDayExposure [get]
- // @Tags 企业风险管理(app)
- func QryReportDayExposure(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- req := QryReportDayReq{}
- a.DoBindReq(&req)
- m := models.ErmcpReportDayExposure{AREAUSERID: req.UserId, RECKONDATE: req.TradeDate}
- a.DoGetDataEx(&m)
- }
|