|
|
@@ -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();
|
|
|
}
|