| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @param json |
| | | */ |
| | | @PostMapping("/viewReport") |
| | | public void viewReport(HttpServletResponse response, @RequestBody String json){ |
| | | public void viewReport(HttpServletResponse response, @RequestBody String json) throws IOException { |
| | | JSONObject entries = JSONUtil.parseObj(json); |
| | | String tjNum = entries.getStr("tjNum"); |
| | | tjReportController.preview(response,true,tjNum); |