rizhi
This commit is contained in:
parent
88d138f2c0
commit
daa4ff7bff
@ -1,7 +1,6 @@
|
|||||||
package controller
|
package controller
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
"hospital-admin-api/api/dao"
|
"hospital-admin-api/api/dao"
|
||||||
"hospital-admin-api/api/dto"
|
"hospital-admin-api/api/dto"
|
||||||
"hospital-admin-api/api/requests"
|
"hospital-admin-api/api/requests"
|
||||||
@ -10,6 +9,9 @@ import (
|
|||||||
"hospital-admin-api/global"
|
"hospital-admin-api/global"
|
||||||
"hospital-admin-api/utils"
|
"hospital-admin-api/utils"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/gin-gonic/gin"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
type OrderProduct struct{}
|
type OrderProduct struct{}
|
||||||
@ -40,6 +42,14 @@ func (r *OrderProduct) GetOrderProductPage(c *gin.Context) {
|
|||||||
orderProductDao := dao.OrderProductDao{}
|
orderProductDao := dao.OrderProductDao{}
|
||||||
orderProduct, total, err := orderProductDao.GetOrderProductPageSearch(req, req.Page, req.PageSize)
|
orderProduct, total, err := orderProductDao.GetOrderProductPageSearch(req, req.Page, req.PageSize)
|
||||||
|
|
||||||
|
// 记录orderProduct数据到日志
|
||||||
|
global.Logger.WithFields(logrus.Fields{
|
||||||
|
"orderProduct": orderProduct,
|
||||||
|
"total": total,
|
||||||
|
"page": req.Page,
|
||||||
|
"pageSize": req.PageSize,
|
||||||
|
}).Info("获取药品订单列表数据")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
responses.FailWithMessage(err.Error(), c)
|
responses.FailWithMessage(err.Error(), c)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user