This commit is contained in:
wucongxing 2023-11-03 15:48:53 +08:00
parent 2fcbd1a72c
commit f08893bff5
2 changed files with 58 additions and 16 deletions

View File

@ -263,14 +263,6 @@ func (r *OrderInquiry) GetOrderInquiryForAccountPage(c *gin.Context) {
req.PageSize = 20
}
doctorId := c.Param("doctor_id")
if doctorId == "" {
responses.FailWithMessage("缺少参数", c)
return
}
req.DoctorId = doctorId
orderInquiryDao := dao.OrderInquiryDao{}
orderInquiry, total, err := orderInquiryDao.GetOrderInquiryForAccountPageSearch(req, req.Page, req.PageSize)
if err != nil {

View File

@ -380,7 +380,7 @@ func privateRouter(r *gin.Engine, api controller.Api) {
accountGroup.GET("/:doctor_id", api.DoctorAccount.GetDoctorAccount)
// 获取医生账户关联订单列表-分页
accountGroup.GET("/order/:doctor_id", api.OrderInquiry.GetOrderInquiryForAccountPage)
accountGroup.GET("/order", api.OrderInquiry.GetOrderInquiryForAccountPage)
}
}
@ -538,7 +538,7 @@ func privateRouter(r *gin.Engine, api controller.Api) {
withdrawalGroup.GET("/:withdrawal_id", api.DoctorWithdrawal.GetDoctorWithdrawal)
// 提现详情-关联订单列表-分页
withdrawalGroup.GET("/order/:withdrawal_id", api.DoctorWithdrawal.GetDoctorWithdrawalOrderPage)
withdrawalGroup.GET("/order", api.DoctorWithdrawal.GetDoctorWithdrawalOrderPage)
// 修改提现个人所得税
withdrawalGroup.PUT("/income/:withdrawal_id", api.DoctorWithdrawal.PutDoctorWithdrawalIncome)
@ -592,10 +592,60 @@ func privateRouter(r *gin.Engine, api controller.Api) {
}
}
// 导出管理
exportGroup := adminGroup.Group("/export")
{
// 提现记录
exportGroup.PUT("/withdrawal", api.UserCaCert.RenewUserCloudCert)
}
// // 导出管理
// exportGroup := adminGroup.Group("/export")
// {
// // 提现
// withdrawalGroup := exportGroup.Group("/withdrawal")
// {
// // 提现记录
// withdrawalGroup.POST("", api.Export.DoctorWithdrawal)
//
// // 提现记录-关联订单
// withdrawalGroup.POST("/order", api.UserCaCert.RenewUserCloudCert)
// }
//
// // 医生
// doctorGroup := exportGroup.Group("/doctor")
// {
// // 医生列表
// doctorGroup.POST("", api.UserCaCert.RenewUserCloudCert)
//
// // 医生银行卡
// doctorGroup.POST("/bank/card", api.UserCaCert.RenewUserCloudCert)
//
// // 医生账户
// doctorGroup.POST("/account", api.UserCaCert.RenewUserCloudCert)
//
// // 医生账户-关联订单
// doctorGroup.POST("/account/order", api.UserCaCert.RenewUserCloudCert)
// }
//
// // 患者
// patientGroup := exportGroup.Group("/patient")
// {
// // 患者列表
// patientGroup.POST("", api.UserCaCert.RenewUserCloudCert)
//
// // 就诊人列表
// patientGroup.POST("/family", api.UserCaCert.RenewUserCloudCert)
// }
//
// // 订单
// orderGroup := exportGroup.Group("/order")
// {
// // 问诊订单
// orderGroup.POST("/inquiry", api.UserCaCert.RenewUserCloudCert)
//
// // 药品订单
// orderGroup.POST("/product", api.UserCaCert.RenewUserCloudCert)
// }
//
// // 处方
// prescriptionGroup := exportGroup.Group("/prescription")
// {
// // 处方
// prescriptionGroup.POST("", api.UserCaCert.RenewUserCloudCert)
// }
// }
}