瀏覽代碼

错误 #94946 ...首页小红点数量不对

zou.yingbin 4 年之前
父節點
當前提交
124a5091aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/ermcpPendingAuditInfo.go

+ 1 - 1
models/ermcpPendingAuditInfo.go

@@ -46,7 +46,7 @@ func (r *ErmcpPendingAudit) buildSql() string {
 		" union all " +
 		"select 7, count(1) BusinessFpQty from ermcp_contractoperateapply t where t.userid = %v and t.applystatus = 1 and t.operateapplytype=4" +
 		" union all " +
-		"select 8, count(1) AreaStockQty from ermcp_contractoperateapply t where t.userid = %v and t.operateapplytype in(5,6,7,8)"
+		"select 8, count(1) AreaStockQty from ermcp_contractoperateapply t where t.userid = %v and t.operateapplytype in(5,6,7,8) and t.applystatus = 1"
 	sqlId = fmt.Sprintf(sqlId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId)
 	return sqlId
 }