时间:2023-09-15 22:30:02 | 来源:网站运营
时间:2023-09-15 22:30:02 来源:网站运营
基于SSM的毕业设计选题推荐 SSM婚纱摄影网站 婚纱摄影管理系统 婚纱摄影小程序:作者:疯狂行者(Java精彩实战项目案例)
(Python精彩实战项目案例)
(安卓Android精彩项目实战)
@RequestMapping("/upload") public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception { if (file.isEmpty()) { throw new EIException("上传文件不能为空"); } String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1); String fileName = new Date().getTime()+"."+fileExt; File dest = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName); file.transferTo(dest); if(StringUtils.isNotBlank(type) && type.equals("1")) { ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile")); if(configEntity==null) { configEntity = new ConfigEntity(); configEntity.setName("faceFile"); configEntity.setValue(fileName); } else { configEntity.setValue(fileName); } configService.insertOrUpdate(configEntity); } return R.ok().put("file", fileName); }
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,SheyingdinggouEntity sheyingdinggou, HttpServletRequest request){ EntityWrapper<SheyingdinggouEntity> ew = new EntityWrapper<SheyingdinggouEntity>(); PageUtils page = sheyingdinggouService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, sheyingdinggou), params), params)); return R.ok().put("data", page); }
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,SheyingyuyueEntity sheyingyuyue, HttpServletRequest request){ EntityWrapper<SheyingyuyueEntity> ew = new EntityWrapper<SheyingyuyueEntity>(); PageUtils page = sheyingyuyueService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, sheyingyuyue), params), params)); return R.ok().put("data", page); }
如果大家有任何疑虑,可以在评论区或主页详细交流。
精彩专栏推荐订阅
打卡 文章 更新 7/ 365天
(Java精彩实战项目案例)
(Python精彩实战项目案例)
(安卓Android精彩项目实战)
关键词:摄影,系统,程序,管理,推荐,毕业,设计