环境:开发工具:idea,数据库:MySQL5.7 jdk1.8
架构:struts,前端jsp
主要功能
会员:个人信息、洗衣记录等;
管理员:洗衣类型管理、会员信息管理、收取衣服管理、业务统计等
项目截图:
部分代码:
public String shouAdd()
{
TShou shou=new TShou();
shou.setUserId(userId);
shou.setXileixing(xileixing);
shou.setYiwuleixing(yiwuleixing);
shou.setJiage(jiage);
shou.setPinpai(pinpai);
shou.setYanse(yanse);
shou.setBeizhu(beizhu);
shou.setShoushi(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()));
shou.setLingshi("");
shouDAO.save(shou);
this.setMessage("操作成功");
this.setPath("shouMana.action");
return "succeed";
}
public String shouMana()
{
String sql="from TShou where 1=1 order by shoushi desc";
List shouList=shouDAO.getHibernateTemplate().find(sql);
Map request=(Map)ServletActionContext.getContext().get("request");
request.put("shouList", shouList);
return ActionSupport.SUCCESS;
}
获取方式:联系下方名片获取