|
@@ -6,6 +6,7 @@ import (
|
|
|
"hongze/hongze_cygx/models"
|
|
|
"hongze/hongze_cygx/services"
|
|
|
"hongze/hongze_cygx/utils"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -160,6 +161,8 @@ func (this *YanxuanSpecialController) Detail() {
|
|
|
}
|
|
|
|
|
|
var resp models.CygxYanxuanSpecialResp
|
|
|
+
|
|
|
+ resp.HasPermission = 1
|
|
|
resp.CygxYanxuanSpecialItem = *item
|
|
|
if item.DocUrl != "" {
|
|
|
var docs []models.Doc
|
|
@@ -189,6 +192,20 @@ func (this *YanxuanSpecialController) Detail() {
|
|
|
}
|
|
|
resp.ExamineStatus = item.Status
|
|
|
}
|
|
|
+ resp.ExamineStatus = item.Status
|
|
|
+
|
|
|
+ var configCode string
|
|
|
+ //如果是研选的就推送给汪洋跟王芳,否则就推送给王芳
|
|
|
+ configCode = utils.TPL_MSG_WANG_FANG_WANG_YANG
|
|
|
+ cnf, err := models.GetConfigByCode(configCode)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取失败, Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if item.UserId != sysUser.UserId && item.Status != 3 && !strings.Contains(cnf.ConfigValue, sysUser.Mobile) {
|
|
|
+ resp.HasPermission = 2
|
|
|
+ }
|
|
|
|
|
|
go services.AddSpecialRecord(this.User, specialId)
|
|
|
|