JavaWeb小区物业管理系统

JavaMVC实践项目--JavaWeb小区物业管理系统

对于小区物业管理来说,其工作流程的繁杂性、多样化、管理复杂、收缴费用与设备维护繁琐。计算机已完全能够胜任物业管理工作,而且更加准确、方便、快捷、高效、清晰、透明,它完全可以克服以上所述的不足之处。这将给项目查询和管理带来很大的方便,从而给物业管理工作带来更高的效率,这也是物业管理正规化、现代化的重要标志。
因此,开发一套高效率、无差错的小区物业管理系统软件十分必要。本系统的主要目的是告别帐本,安全、快捷的保存数据信息。由于小区物业管理涉及到费用问题,为了增强系统的保密性,使业主利益不受损害,使业主能够对自家的物业费用和投诉等情况提供透明化、直观的了解。

#简介代码已经上传github,下载地址:https://github.com/21503882

 

 

 

负责数据库的设计和界面的设计和实现;
界面使用 BootStrap 框架,页面自适应效果,修改页面后实现各个功能模块的布局;
负责实现用户登录注册,查看小区活动公告、水电费查询、车费查询信息;
采用的技术:采用 MVC 架构,数据库用 MySql;

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<section class="ajy-product-1 header-listener">
        <div class="w-1200">
        <div class="p-center">
            <div class="title">
                <h3>登录即可体验  </h3>
                <p>丰富的功能  全面满足业务需求</p>
            </div>


        <div class="all-func">
            <ul class="clearfix" style="list-style:none;">
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                             <i class="fa fa-comments fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>小区公告</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                             <i class="fa fa-bullhorn fa-3x fa-up">  </i>
                        </div>
                        <div class="pull-left">
                            <h4>小区活动</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                            <i class="fa fa-street-view fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>业主信息</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                            <i class="fa fa-search fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>报修平台</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left" style="padding-top:2px;">
                             <i class="fa fa-lightbulb-o fa-3x fa-up"> </i>
                        </div>
                        <div class="pull-left">
                            <h4>电费缴费</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                             <i class="fa fa-home fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>水费缴费</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                             <i class="fa fa-automobile fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>车辆管理</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                            <i class="fa fa-phone fa-3x fa-up">  </i>
                        </div>
                        <div class="pull-left">
                            <h4>投诉平台</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                            <i class="fa fa-feed fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>周边设施</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                            <i class="fa fa-smile-o fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>小区便利店</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                            <i class="fa fa-support fa-3x fa-up"></i>
                        </div>
                        <div class="pull-left">
                            <h4>设备管理</h4>
                        </div>
                    </div>
                </li>
                <li class="function-item">
                    <div class="clearfix">
                        <div class="icon pull-left">
                            <i class="fa fa-building fa-3x fa-up">  </i>
                        </div>
                        <div class="pull-left">
                            <h4>楼盘管理</h4>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        </div>
        </div>
    </section>
        


      <section class="ajy-product-2">
            <div class="w-1200">
                <div class="p-left clearfix">
                    <div class="text pull-left">
                        <h3>完美对接微信公众号</h3>
                        <p>小区作专注于物业行业微信的开发和运营,30秒即可接入微信公众号,让传统物业升级成为微物业平台,为住户提供完善的微信服务体验。
                        </p>
                    </div>
                    <div class="image">
                        <img src="<c:url value='/images/p-p1.png'/>" alt="">
                    </div>
                </div>
            </div>
        </section>
    

package cn.community.user.dao;

import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.commons.dbutils.handlers.ScalarHandler;

import cn.community.jdbc.TxQueryRunner;
import cn.community.user.domain.User;


public class UserDao {
    private QueryRunner qr = new TxQueryRunner();

    /**
     * 按uid和password查询
     * @param code
     * @return
     * @throws SQLException
     */
    public boolean findByUidAndPassword(String uid, String password) throws SQLException{
        String sql = "select count(1) from c_user where uid=? and loginpass=?";
        Number number = (Number)qr.query(sql, new ScalarHandler(),uid,password);
        return number.intValue()>0;
    }
    
    /*
     * 修改密码
     */
    public void updatePassword(String uid, String password) throws SQLException{
        String sql = "update c_user set loginpass = ? where uid = ? ";
        qr.update(sql,password,uid);
    }
    
    /*
     * 通过激活码查询用户
     */
    public User findByCode(String code) throws SQLException{
        String sql = "select * from c_user where activationCode=?";
        return qr.query(sql, new BeanHandler<User>(User.class), code); 
    }
      
    /**
     * 按用户名和密码查询
     * @param uid
     * @param status
     * @throws SQLException
     */
    public User findByLoginnameAndLoginpass(String loginname,String loginpass) throws SQLException {
        String sql = "select * from c_user where loginname=? and loginpass=?";
        return qr.query(sql, new BeanHandler<User>(User.class), loginname, loginpass);
    }
    
    /*
     * 修改用户状态
     */
     public void updateStatus(String uid, boolean status) throws SQLException{
         String sql = "update c_user set status=? where uid=?";
         qr.update(sql, status,uid);
     }
     
    /*
     * 以ajax开头命名表示支持ajax的校验方法
     * 检验用户名是否注册
     */
    public boolean ajaxValidateLoginname(String loginname) throws SQLException{
        String sql = "select count(1) from c_user where loginname=?";
        Number number = (Number) qr.query(sql, new ScalarHandler(),loginname);
        return number.intValue() == 0;
    }
    /*
     * 校验email是否注册
     */
    public boolean ajaxValidateEmail(String email) throws SQLException{
        String sql = "select count(1) from c_user where email=?";
        Number number = (Number) qr.query(sql, new ScalarHandler(),email);
        return number.intValue() == 0;
    }
      
    /**
     * 添加用户
     * @param user
     * @throws SQLException
     */
    public void add(User user) throws SQLException{
        String sql ="insert into c_user values(?,?,?,?,?,?)";
        Object[] params = {user.getUid(), user.getLoginname(),user.getLoginpass(),
                user.getEmail(), user.isStatus(), user.getActivationCode()};
        qr.update(sql, params);
    }

}
 

   

代码已经上传github,下载地址:​​​​​​​​​​​​​​https://github.com/21503882

致 谢
同学们自己发挥想象。。。。

  • 4
    点赞
  • 4
    评论
  • 66
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值