Commit 7ef3cf63 by wancheng

报屏优化

parent bb4fb13f
......@@ -524,15 +524,16 @@ public class ServiceHPBI002 extends ServiceBase {
List tempContentList = Arrays.asList(json.split(","));
tempArr.add(tempContentList);
JSONObject item = new JSONObject();
list1.forEach(obj -> {
String DIVLIST = "";
// 处理obj
String DIVLIST = "<div style=\"width: 400px; height: 50px;color:#FACC14;font-weight: bold;text-align: left;font-size: 20px;\">"
+obj.get("GROUP_NAME")+"</div><div style=\"width: 400px; height: 50px;color:#FFFFFF;text-align: left;font-size: 20px;\">"
+obj.get("PART_NAME")+"</div>";
for (Map obj : list1) {
DIVLIST = DIVLIST + "<div style=\"width: 500px; height: 50px;color:#FACC14;font-weight: bold;text-align: left;font-size: 20px;\">"
+ obj.get("GROUP_NAME") + "</div><div style=\"white-space: pre-wrap;width: 500px; height: 60px;color:#FFFFFF;text-align: left;font-size: 18px;\">"
+ obj.get("PART_NAME") + "</div>";
}
List datalist =new ArrayList();
datalist.add(DIVLIST);
tempArr.add(datalist);
});
JSONArray ids = new JSONArray();
ids.add(idsStr);
item.put("ids", ids);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment