基于javaweb+jsp的工作日志管理系统(JavaWeb MySQL JSP Bootstrap Servlet SSM SpringBoot)

这是一个基于JavaWeb、JSP、MVC模式、MySQL数据库、Tomcat服务器、JavaScript和Bootstrap的项目。支持使用SSM框架或SpringBoot进行开发。适用于课程设计、大作业、毕业设计等场景。运行环境要求Java 6+,Tomcat 7.0+,MySQL 5.5+。具备用户登录、注册、退出以及用户、公告、员工和日志的全面管理功能。
摘要由CSDN通过智能技术生成

基于javaweb+jsp的工作日志管理系统(JavaWeb MySQL JSP Bootstrap Servlet SSM SpringBoot)

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap.

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可

开发工具:eclipse/idea/myeclipse/sts等均可配置运行

适用

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

    private int start;
    private int end;

    private String servlet;//查询时要请求的接口
    private String searchColumn;//待模糊查询的列
    private String keyword;//待模糊查询的关键字

    //通过pageNum,pageSize,totalRecord计算得来tatalPage和startIndex,构造方法中将pageNum,pageSize,totalRecord获得
    public PageBean(int pageNum, int totalRecord) {
   
        this.pageNum = (pageNum = Math.max(pageNum, 1));
        this.pageSize = 10;//默认为10
        this.totalRecord = totalRecord;
        //totalPage 总页数
        if (totalRecord % pageSize == 0) {
   
            //说明整除,正好每页显示pageSize条数据,没有多余一页要显示少于pageSize条数据的
            this.totalPage = totalRecord / pageSize;
        } else {
   
            //不整除,就要在加一页,来显示多余的数据。
            this.totalPage = totalRecord / pageSize + 1;
        }
        UPDATE `t_emp`
        <set>
                <if test ='id != null'>`id` = #{id},</if>
                <if test ='empName != null'>`emp_name` = #{empName},</if>
                <if test ='empSex != null'>`emp_sex` = #{empSex},</if>
                <if test ='empPhone != null'>`emp_phone` = #{empPhone},</if>
                <if test ='empDept != null'>`emp_dept` = #{empDept},</if>
                <if test ='empJob != null'>`emp_job` = #{empJob},</if>
                <if test ='empNo != null'>`emp_no` = #{empNo},</if>
                <if test ='empAge != null'>`emp_age` = #{empAge},</if>
                <if test ='empText != null'>`emp_text` = #{empText}</if>
        </set>
        WHERE `id` = #{id}
    </update>

    <!--获取-->
    <select id="findById" resultMap="BaseResultMap">
        SELECT <include refid="Base_Column_List" /> FROM `t_emp` WHERE `id` = #{id}
    </select>

    <!--列表-->
    <select id="findAllSplit" parameterType="java.util.Map" resultMap="BaseResultMap">
        SELECT <include refid="Base_Column_List" /> FROM `t_emp`
        
  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值