| | |
| | | */ |
| | | @Slf4j |
| | | @Controller |
| | | @RequestMapping("basic/file") |
| | | @RequestMapping("file") |
| | | public class FileController { |
| | | |
| | | @Resource |
| | |
| | | * @return |
| | | */ |
| | | @RequestMapping("/dept-img") |
| | | public String deptImg(@RequestParam(value = "id", required = true) String id, |
| | | public String deptImg(@RequestParam(value = "imgPath", required = true) String imgPath, |
| | | ModelMap view) { |
| | | |
| | | if(StringUtils.isNotEmpty(id)){ |
| | | String imgPath = fileManager.getDeptFile(id);; |
| | | view.put("imgPath", imgPath); |
| | | } |
| | | view.put("imgPath", imgPath); |
| | | |
| | | return "web/common/preview-img"; |
| | | return "common/preview-img"; |
| | | } |
| | | |
| | | |