|
@@ -328,7 +328,7 @@ func (this *YanxuanSpecialController) Save() {
|
|
br.Msg = "请至少输入一个标签"
|
|
br.Msg = "请至少输入一个标签"
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
+ isApprovalPersonnel := req.IsApprovalPersonnel
|
|
item := models.CygxYanxuanSpecial{
|
|
item := models.CygxYanxuanSpecial{
|
|
Id: req.Id,
|
|
Id: req.Id,
|
|
UserId: sysUser.UserId,
|
|
UserId: sysUser.UserId,
|
|
@@ -348,6 +348,16 @@ func (this *YanxuanSpecialController) Save() {
|
|
} else {
|
|
} else {
|
|
item.Status = 2
|
|
item.Status = 2
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if isApprovalPersonnel {
|
|
|
|
+ item.Status = 3
|
|
|
|
+
|
|
|
|
+ if !services.CheckYxSpecialIsApprovalPersonnel(sysUser.Mobile) {
|
|
|
|
+ br.Msg = "操作失败"
|
|
|
|
+ br.ErrMsg = "操作失败,该账号不属于审核人员:" + sysUser.Mobile
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
specialId := 0
|
|
specialId := 0
|
|
|
|
|
|
@@ -369,10 +379,17 @@ func (this *YanxuanSpecialController) Save() {
|
|
specialId = req.Id
|
|
specialId = req.Id
|
|
}
|
|
}
|
|
|
|
|
|
- if req.DoType == 2 {
|
|
+ if isApprovalPersonnel {
|
|
- go services.SendReviewTemplateMsgAdmin(specialId)
|
|
|
|
go services.UpdateYanxuanSpecialResourceData(specialId)
|
|
go services.UpdateYanxuanSpecialResourceData(specialId)
|
|
go services.EsAddYanxuanSpecial(specialId)
|
|
go services.EsAddYanxuanSpecial(specialId)
|
|
|
|
+ go services.SendWxMsgSpecialFollow(req.Id)
|
|
|
|
+ go services.SendWxMsgSpecialAuthor(req.Id, 2)
|
|
|
|
+ } else {
|
|
|
|
+ if req.DoType == 2 {
|
|
|
|
+ go services.SendReviewTemplateMsgAdmin(specialId)
|
|
|
|
+ go services.UpdateYanxuanSpecialResourceData(specialId)
|
|
|
|
+ go services.EsAddYanxuanSpecial(specialId)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
br.Ret = 200
|
|
br.Ret = 200
|