Skip to content

Commit

Permalink
InvController 添加处理获取全部可见问卷与获取全部问卷请求的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Dec 1, 2019
1 parent 3fdd172 commit 69ba32e
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,20 @@ public String mdfInvestigate(HttpServletRequest request) {
}
return "error";
}

@GetMapping("/getAllInv")
public String getAllInv() {
Investigate investigate = new Investigate();
List<Investigate> invList = invMapper.getInvestigate(investigate);
return JSONArray.toJSONString(invList);
}

@GetMapping("/getVisibleInv")
public String getVisibleInv() {
Investigate investigate = new Investigate();
investigate.setVisible(true);
List<Investigate> invList = invMapper.getInvestigate(investigate);
return JSONArray.toJSONString(invList);
// System.out.println("res!!!" + res);
}
}

0 comments on commit 69ba32e

Please sign in to comment.