修改问诊订单接口,年度审查处理
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user