问诊记录接口,年度审查处理
This commit is contained in:
@@ -186,6 +186,27 @@ func (r *OrderInquiry) GetOrderInquiryRecordPage(c *gin.Context) {
|
||||
req.GetOrderInquiryRecordPage.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.GetOrderInquiryRecordPage.MultiPointStatus = &status
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
orderInquiryDao := dao.OrderInquiryDao{}
|
||||
orderInquiry, total, err := orderInquiryDao.GetOrderInquiryRecordPageSearch(req.GetOrderInquiryRecordPage, req.GetOrderInquiryRecordPage.Page, req.GetOrderInquiryRecordPage.PageSize)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user