Skip to content

Commit

Permalink
InvController 添加处理获取未审核问卷的请求
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 27, 2019
1 parent 6812a69 commit 8673fc3
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -58,4 +59,14 @@ public String insertInvestigate(HttpServletRequest request) {
}
return "error";
}

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

}

0 comments on commit 8673fc3

Please sign in to comment.