時間:2023-09-15 22:30:02 | 來源:網(wǎng)站運(yùn)營
時間:2023-09-15 22:30:02 來源:網(wǎng)站運(yùn)營
基于SSM的畢業(yè)設(shè)計(jì)選題推薦 SSM婚紗攝影網(wǎng)站 婚紗攝影管理系統(tǒng) 婚紗攝影小程序:作者:瘋狂行者(Java精彩實(shí)戰(zhàn)項(xiàng)目案例)
(Python精彩實(shí)戰(zhàn)項(xiàng)目案例)
(安卓Android精彩項(xiàng)目實(shí)戰(zhàn))
@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); }
如果大家有任何疑慮,可以在評論區(qū)或主頁詳細(xì)交流。
精彩專欄推薦訂閱
打卡 文章 更新 7/ 365天
(Java精彩實(shí)戰(zhàn)項(xiàng)目案例)
(Python精彩實(shí)戰(zhàn)項(xiàng)目案例)
(安卓Android精彩項(xiàng)目實(shí)戰(zhàn))
關(guān)鍵詞:攝影,系統(tǒng),程序,管理,推薦,畢業(yè),設(shè)計(jì)
客戶&案例
營銷資訊
關(guān)于我們
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。