基于javaweb+springboot的在线婚纱摄影预定系统(java+javaweb+SSM+springboot+mysql)

基于javaweb+springboot的在线婚纱摄影预定系统(java+javaweb+SSM+springboot+mysql)

一、项目简述
功能: 前后用户的登录注册,婚纱照片分类,查看,摄影师预 订,后台订单管理,图片管理等等。

二、项目运行
环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)

项目技术: Jdbc+ Servlert + html+ css + JavaScript + JQuery + Ajax + Fileupload

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

				attachment.setPath(entry.getValue().replace(request.getServletContext().getRealPath("/"), "/"));
				attachment.setStatus("0");
				attachment.setCreatetime(new Date());
				attachmentService.insert(attachment);
			}
			returnResult.setStatus(ReturnCodeType.SUCCESS);
		} catch (Exception e) {
   
			logger.error("新增works失败" + e);
			e.printStackTrace();
		}
		return returnResult;
	}
	/**
	/**
	 * 根据id获取Works 
	 * @param Works
	 * @return
	 */
	@RequestMapping(value = "getWorksById")
	@ResponseBody
	public ReturnResult getWorksById(Integer id) {
   
		returnResult.setStatus(ReturnCodeType.FAILURE);
		try {
   
			returnResult.setStatus(ReturnCodeType.SUCCESS).setData(worksService.selectByPrimaryKey(id));
		} catch (Exception e) {
   
			logger.error("根据id获取Works失败" + e);
		}
		return returnResult;
	}
	/**
				attachment.setWorksid(worksId);
				attachment.setPath(entry.getValue().replace(request.getServletContext().getRealPath("/"), "/"));
				attachment.setStatus("0");
				attachment.setCreatetime(new Date());
				attachmentService.insert(attachment);
			}
			returnResult.setStatus(ReturnCodeType.SUCCESS);
		} catch (Exception e) {
   
			logger.error("新增works失败" + e);
			e.printStackTrace();
		}
		return returnResult;
	}
	/**
	 * 修改works状态
	 * @param works
	 * @return
	 */
	@RequestMapping(value = "updateWorksStatus", method = RequestMethod.GET)
	@ResponseBody
		returnResult.setStatus(ReturnCodeType.FAILURE);
		try {
   
			worksService.updateBySQL("UPDATE t_works SET title='" + works.getTitle() + "',content='"+works.getContent()+"' WHERE id=" + works.getId());
			returnResult.setStatus(ReturnCodeType.SUCCESS);
		} catch (Exception e) {
   
			logger.error("修改works失败" + e);
		}
		return returnResult;
	}
	/**
	 * 根据id获取Works 的照片
	 * @param Works
	 * @return
	 */
	@RequestMapping(value = "getWorksImgById", method = RequestMethod.POST)
	/**
	 * 根据摄影师id获取schedule
	 * @param schedule
	 * @return
	 */
	@RequestMapping(value = "getScheduleByPhotographerId", method = RequestMethod.GET)
	@ResponseBody
	public ScheduleVO getScheduleByPhotographerId(Integer photoer_id,String year,String month) {
   
		
		return scheduleService.getScheduleByPhotographerId( photoer_id, year, month);
	}
	
	/**
	 * 分页获取schedule
		try {
   
			worksService.updateBySQL("UPDATE t_works SET status=" + works.getStatus() + " WHERE id=" + works.getId());
			
			returnResult.setStatus(ReturnCodeType.SUCCESS);
		} catch (Exception e) {
   
			logger.error("更新works状态失败" + e);
		}
		return returnResult;
	}
	
	/**
	 * @param works
	 * @return
	 */
	@RequestMapping(value = "updateWorksStatus", method = RequestMethod.GET)
	@ResponseBody
	public ReturnResult updateWorksStatus(TWorks works) {
   
		returnResult.setStatus(ReturnCodeType.FAILURE);
		try {
   
			worksService.updateBySQL("UPDATE t_works SET status=" + works.getStatus() + " WHERE id=" + works.getId());
			
			returnResult.setStatus(ReturnCodeType.SUCCESS);
		} catch (Exception e) {
   
			logger.error("更新works状态失败" + e);
		}
		return returnResult;
	}
	
			returnResult.setStatus(ReturnCodeType.SUCCESS);
		} catch (Exception e
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值