From 5d70327428efc1d341617d0b26c059bc5217b951 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期四, 27 十月 2022 17:33:06 +0800
Subject: [PATCH] 极光消息推送

---
 VueWebApi/DLL/DAL/LoginDAL.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/VueWebApi/DLL/DAL/LoginDAL.cs b/VueWebApi/DLL/DAL/LoginDAL.cs
index efc106d..83f72b2 100644
--- a/VueWebApi/DLL/DAL/LoginDAL.cs
+++ b/VueWebApi/DLL/DAL/LoginDAL.cs
@@ -305,11 +305,10 @@
         #endregion
 
         #region[App鐧诲綍鏌ヨ瀹夌伅鍛煎彨淇℃伅]
-        public static ToMessage LoginAppAnDonMessage(int userid, string usercode, string username, string usertype)
+        public static ToMessage LoginAppAnDonMessage(string rid, string usercode, string username, string usertype)
         {
             var sql = "";
             var dynamicParams = new DynamicParameters();
-            RedisHelper redis = new RedisHelper();
             try
             {
                 sql = @"select B.eqp_code,E.name as eqp_name,B.wkshp_code,T.org_name as wkshp_name,
@@ -319,8 +318,10 @@
                         left  join TEqpInfo E on B.eqp_code=E.code
                         left  join TOrganization T on B.wkshp_code=T.org_code 
                         left  join TAnDonType D on A.type=d.code
-                        where A.resp_user=@usercode and B.status='START' and T.description='W'";
+                        left  join TUser U on A.resp_user=U.usercode
+                        where A.resp_user=@usercode and B.status='START' and U.rid=@rid  and T.description='W'";
                 dynamicParams.Add("@usercode", usercode);
+                dynamicParams.Add("@rid", rid);
                 var data = DapperHelper.selectdata(sql, dynamicParams);
 
                 mes.code = "200";
@@ -339,5 +340,6 @@
             return mes;
         }
         #endregion
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3