diff --git a/OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/InvController.java b/OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/InvController.java index 769a786..4c67b24 100644 --- a/OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/InvController.java +++ b/OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/InvController.java @@ -4,6 +4,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import qdu.suvvm.onlinesurvey.mapper.InvMapper; import qdu.suvvm.onlinesurvey.pojo.Investigate; @@ -58,4 +59,14 @@ public String insertInvestigate(HttpServletRequest request) { } return "error"; } + + @GetMapping("/getInvisibleInv") + public String getInvisibleInv(){ + Investigate investigate = new Investigate(); + investigate.setVisible(false); + List invList = invMapper.getInvestigate(investigate); + String res = JSONArray.toJSONString(invList); + return res; + } + }