增加了年度审查
This commit is contained in:
@@ -36,6 +36,26 @@ func (r *UserDoctor) GetUserDoctorPage(c *gin.Context) {
|
||||
req.GetUserDoctorPage.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")
|
||||
if adminUserId == 1845704393354121216 {
|
||||
status := 1
|
||||
req.GetUserDoctorPage.MultiPointStatus = &status
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
userDoctorDao := dao.UserDoctorDao{}
|
||||
userDoctor, total, err := userDoctorDao.GetUserDoctorPageSearch(req.GetUserDoctorPage, req.GetUserDoctorPage.Page, req.GetUserDoctorPage.PageSize)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user