Parcourir la source

跳转登录返回增加fisservice

hu il y a 4 ans
Parent
commit
a65452bfb9
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/rest/openapi/base/restful/WebClientRest.java

+ 2 - 1
src/rest/openapi/base/restful/WebClientRest.java

@@ -548,7 +548,7 @@ public class WebClientRest {
 
         DBConnect connect = new DBConnect();
         Rows rows = connect.runSqlQuery(
-                "select t1.fusertype,t2.fagentnum,t1.defsite as siteid from pp_users t1 left join tagents_users t2 on t1.hrid=t2.hrid where t1.hrid='"
+                "select t1.fusertype,t2.fagentnum,t1.defsite as siteid,t0.fisservice from pp_users t1 left join TAGENTs t0 on t1.hrid=t0.fagentnum  left join tagents_users t2 on t1.hrid=t2.hrid where t1.hrid='"
                         + username + "' and t1.status='ACTIVE'");
         if (rows.isEmpty()) {
             JSONObject object = new JSONObject();
@@ -599,6 +599,7 @@ public class WebClientRest {
         dataobject.put("siteid", siteid);
         dataobject.put("hrid", username.toUpperCase());
         dataobject.put("appids", mobject);
+        dataobject.put("fisservice", rows.get(0).getBoolean("fisservice"));
         object.put("data", dataobject);
         return object.toString();
     }