修改问诊订单接口,年度审查处理

This commit is contained in:
haomingming
2026-06-29 15:56:35 +08:00
parent edc4497b69
commit ff73c074bc
3 changed files with 31 additions and 0 deletions
+21
View File
@@ -37,6 +37,27 @@ func (r *OrderInquiry) GetOrderInquiryPage(c *gin.Context) {
req.PageSize = 20
}
// 特殊处理
// 获取配置
systemConfigDao := dao.SystemConfigDao{}
systemConfig, err := systemConfigDao.GetSystemConfigById(1)
if err != nil {
responses.FailWithMessage(err.Error(), c)
return
}
// 年度审查
if systemConfig.IsAnnualReview == 1 {
// 后台用户id
adminUserId := c.GetInt64("UserId")
// 正式lixiumei user_id 测试 lixiumei user_id
if adminUserId == 1845704393354121216 || adminUserId == 1732273543535661056 {
status := 1
req.MultiPointStatus = &status
}
}
orderInquiryDao := dao.OrderInquiryDao{}
orderInquiry, total, err := orderInquiryDao.GetOrderInquiryPageSearch(req, req.Page, req.PageSize)
if err != nil {