增加了年度审查

This commit is contained in:
2025-09-02 14:04:12 +08:00
parent ca05f0d16e
commit f08692c58e
3 changed files with 116 additions and 0 deletions
+20
View File
@@ -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)