|
@@ -4,6 +4,7 @@ import net.sf.json.JSONArray;
|
|
|
import net.sf.json.JSONObject;
|
|
|
import org.apache.commons.codec.binary.Base64;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
+import org.jeecg.modules.webaccess.dto.WaLogDTO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpEntity;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
@@ -219,45 +220,45 @@ public class WebAccessService {
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 组成获取参数值的信息
|
|
|
-// * @param tags 参数名
|
|
|
-// * @return
|
|
|
-// */
|
|
|
-// public JSONObject generateGetObject(List<SysWaLog> tags) {
|
|
|
-// JSONArray list = new JSONArray();
|
|
|
-// JSONObject rtn = new JSONObject();
|
|
|
-//
|
|
|
-// for (SysWaLog tag : tags) {
|
|
|
-// JSONObject sub = new JSONObject();
|
|
|
-// sub.put("Name", tag.getTagname());
|
|
|
-// list.add(sub);
|
|
|
-// }
|
|
|
-// rtn.put("Tags", list);
|
|
|
-//
|
|
|
-// return rtn;
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 组成设置参数值的信息
|
|
|
-// * @param tags 参数列表
|
|
|
-// * @return
|
|
|
-// */
|
|
|
-// public JSONObject generateSetObject(List<SysWaLog> tags) {
|
|
|
-// JSONArray list = new JSONArray();
|
|
|
-// JSONObject rtn = new JSONObject();
|
|
|
-//
|
|
|
-// if (tags != null && tags.size() > 0) {
|
|
|
-// for (SysWaLog tag : tags) {
|
|
|
-// JSONObject sub = new JSONObject();
|
|
|
-// sub.put("Name", tag.getTagname());
|
|
|
-// sub.put("Value", tag.getTagvalue());
|
|
|
-// list.add(sub);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// rtn.put("Tags", list);
|
|
|
-//
|
|
|
-// return rtn;
|
|
|
-// }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 组成获取参数值的信息
|
|
|
+ * @param tags 参数名
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public JSONObject generateGetObject(List<WaLogDTO> tags) {
|
|
|
+ JSONArray list = new JSONArray();
|
|
|
+ JSONObject rtn = new JSONObject();
|
|
|
+
|
|
|
+ for (WaLogDTO tag : tags) {
|
|
|
+ JSONObject sub = new JSONObject();
|
|
|
+ sub.put("Name", tag.getTagname());
|
|
|
+ list.add(sub);
|
|
|
+ }
|
|
|
+ rtn.put("Tags", list);
|
|
|
+
|
|
|
+ return rtn;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 组成设置参数值的信息
|
|
|
+ * @param tags 参数列表
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public JSONObject generateSetObject(List<WaLogDTO> tags) {
|
|
|
+ JSONArray list = new JSONArray();
|
|
|
+ JSONObject rtn = new JSONObject();
|
|
|
+
|
|
|
+ if (tags != null && tags.size() > 0) {
|
|
|
+ for (WaLogDTO tag : tags) {
|
|
|
+ JSONObject sub = new JSONObject();
|
|
|
+ sub.put("Name", tag.getTagname());
|
|
|
+ sub.put("Value", tag.getTagvalue());
|
|
|
+ list.add(sub);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ rtn.put("Tags", list);
|
|
|
+
|
|
|
+ return rtn;
|
|
|
+ }
|
|
|
}
|