Browse Source

修改后台逻辑

tags/v1.0.1-309.1147
wangyi15124 2 years ago
parent
commit
0f51bc1065
2 changed files with 0 additions and 29 deletions
  1. +0
    -4
      src/main/java/com/stonedt/intelligence/controller/AnalysisController.java
  2. +0
    -25
      src/main/java/com/stonedt/intelligence/controller/DisplayBoardContoller.java

+ 0
- 4
src/main/java/com/stonedt/intelligence/controller/AnalysisController.java View File

@@ -75,9 +75,6 @@ public class AnalysisController {
}
// 历史代码
/**
* 获取监测分析数据
*/
@@ -207,7 +204,6 @@ public class AnalysisController {
+ negative.getJSONObject(0).getString("keyword") + "】到达"
+ negative.getJSONObject(0).getString("rate") + "。";
}
// json.put("china", chinaString);
objectdata.put("china", chinaString);
objectdata.put("data", a);


+ 0
- 25
src/main/java/com/stonedt/intelligence/controller/DisplayBoardContoller.java View File

@@ -53,7 +53,6 @@ public class DisplayBoardContoller {
Map<String, Object> map = list.get(0);
Set<String> keySet = map.keySet();
for (String string : keySet) {
// if(string)
String string2 = TextUtil.processQuotationMarks(map.get(string).toString());
mv.addObject(string,JSONObject.parse(string2));
}
@@ -83,18 +82,6 @@ public class DisplayBoardContoller {
public String getprojectType(@RequestParam(value="user_id") Long user_id,HttpServletRequest request) {
JSONObject response = new JSONObject();
List<DatafavoriteEntity> result = displayBoardService.getCollectionByuser(user_id);
// List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
// try {
// list = projectUtil.getprojectType();
// response.put("code", 200);
// response.put("msg", "方案组数据返回成功");
// response.put("data", list);
// } catch (Exception e) {
// e.printStackTrace();
// response.put("code", 500);
// response.put("msg", "方案组数据返回失败");
// response.put("data", list);
// }
response.put("user_id", user_id);
response.put("data", result);
return JSON.toJSONString(response);
@@ -114,18 +101,6 @@ public class DisplayBoardContoller {
public String getprojectType2(@RequestParam(value="user_id") Long user_id,HttpServletRequest request) {
JSONObject response = new JSONObject();
List<DatafavoriteEntity> result = displayBoardService.getCollectionByuser(user_id);
// List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
// try {
// list = projectUtil.getprojectType();
// response.put("code", 200);
// response.put("msg", "方案组数据返回成功");
// response.put("data", list);
// } catch (Exception e) {
// e.printStackTrace();
// response.put("code", 500);
// response.put("msg", "方案组数据返回失败");
// response.put("data", list);
// }
response.put("user_id", user_id);
response.put("data", result);
return JSON.toJSONString(response);


Loading…
Cancel
Save