Explorar o código

5:按全体交易商 推送的公告,审核完后终端查询状态为“已读” 问题

deng.yinping hai 5 meses
pai
achega
a7d0288509
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/common/notice.go

+ 1 - 1
controllers/common/notice.go

@@ -69,7 +69,7 @@ func QueryNotice(c *gin.Context) {
 
 	// 获取登录账号已读公告ID, 这里要使用的是个人的UserID来查询
 	var msgReceivers []int
-	engine.Table("MSGRECEIVER").Select("AUTOID").Where("READSTATUS = 1 and RECEIVERTYPE = 2 and MANAGERID = ?", userAccount.Userid).Find(&msgReceivers)
+	engine.Table("MSGRECEIVER").Select("AUTOID").Where("READSTATUS = 2 and RECEIVERTYPE = 2 and MANAGERID = ?", userAccount.Userid).Find(&msgReceivers)
 
 	// 查询SENDTYPE = 1的数据
 	datas1 := make([]QueryNoticeRsp, 0)