- 浏览: 1282755 次
- 性别:
- 来自: 上海
-
文章分类
- 全部博客 (169)
- linux (22)
- java (11)
- javascript (7)
- ofbiz (3)
- json (1)
- mysql (4)
- mail (1)
- svn (3)
- tools (5)
- ruby on rails (5)
- jquery (2)
- html (1)
- jpa (1)
- linux ubuntu (3)
- ubuntu12.04 (1)
- git (1)
- photoshop (1)
- linux和windows糸统维护 (1)
- svn merge (1)
- eclipse svn (1)
- joda-time (1)
- ipad2 (1)
- ant (1)
- flash cookie例子,flash cookie (1)
- flash cookie例子,flash cookie使用actionscript3类 (1)
- flash cookie例子,flash操作cookie (1)
- swf文件的反编译,flash文件的反编译 (1)
- mac (1)
- datepicker (1)
- java,统计汉字数 (1)
- idea (1)
- idea svn (1)
- idea java jar (1)
- mac idea 快捷键 (1)
- mac idea 常用配置 (1)
- intellij idea junit (1)
最新评论
-
qiuqinjun:
有没有测试代码呢
Java 多叉树的实现,完成树的初始化和遍历 -
yuanliangding:
没加 -b,是随机出多少个密码偿试。?
linux下zip文件密码破解Fcrackzip -
zenmshuo:
还有C1Calendar,也推荐试试
日历控件datepicker的使用 -
sucheng2016:
如何计算当天最大时间 有什么方法
joda-time的使用 -
sucheng2016:
很好很强打
joda-time的使用
对日期的操作主要可以用
java.text.SimpleDateFormat
java.util.Calendar
java.util.Date
进行操作,也可以用apacle commons中的commons-lang包下的
org.apache.commons.lang.time.DateUtils来对日期就行操作
下面写的一些操作日期的的工具类
java.text.SimpleDateFormat
java.util.Calendar
java.util.Date
进行操作,也可以用apacle commons中的commons-lang包下的
org.apache.commons.lang.time.DateUtils来对日期就行操作
下面写的一些操作日期的的工具类
import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.LinkedHashSet; import java.util.List; import java.util.Locale; import java.util.Set; import org.apache.log4j.Logger; public class DateUtils { private static final Logger log = Logger.getLogger(DateUtils.class); /** * 将字符串日期转换为Date * * @param s * @return */ public static Date convertToDate(String s) { DateFormat df; if (s == null) { return null; } if (s.contains(":")) { try { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return df.parse(s); } catch (Exception e) { log.error(e); return null; } } else { try { df = new SimpleDateFormat("yyyy-MM-dd"); return df.parse(s); } catch (Exception e) { log.error(e); return null; } } } /** * 将Date转换为String * * @param d * @return */ public static String formatDate(Date d) { if (d == null) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); try { return sdf.format(d); } catch (Exception e) { log.error(e); return null; } } /** * 将Date转换为String * * @param d * @return */ public static String formatTime(Date d) { if (d == null) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); try { return sdf.format(d); } catch (Exception e) { log.error(e); return null; } } public static String formatTimeHHmm(Date d) { if (d == null) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("HH:mm"); try { return sdf.format(d); } catch (Exception e) { log.error(e); return null; } } /** * 将Date按locale转换为String * * @param d * @return */ public static String formatLocaleDate(Date d, Locale locale) { if (d == null) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd", locale); try { return sdf.format(d); } catch (Exception e) { log.error(e); return null; } } /** * 将Date按locale转换为String * * @param d * @return */ public static String formatLocaleDateTime(Date d, Locale locale) { if (d == null) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", locale); try { return sdf.format(d); } catch (Exception e) { log.error(e); return null; } } /** * 将Date转换为String * * @param d * @return */ public static String formatDateTime(Date d) { if (d == null) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { return sdf.format(d); } catch (Exception e) { log.error(e); return null; } } /** * 得到每月多少天 * * @param year * @param month * @return 返回 -1表示异常 */ public static int getDaysByMonth(int year, int month) { if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) { return 31; } if (month == 4 || month == 6 || month == 9 || month == 11) return 30; if (month == 2) { if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { return 29; } else { return 28; } } return -1; } public static String dayOfWeekByDayNum(int x) { String str = "周日"; if (x == 7) { str = "周六"; } else if (x == 6) { str = "周五"; } else if (x == 5) { str = "周四"; } else if (x == 4) { str = "周三"; } else if (x == 3) { str = "周二"; } else if (x == 2) { str = "周一"; } return str; } /** * 据年、月、日,获得当天为周几 * * @param year * @param month * @param day * @return */ public static int getWeekByDate(int year, int month, int day) { Calendar c = Calendar.getInstance(); c.set(Calendar.YEAR, year); c.set(Calendar.MONTH, month - 1); c.set(Calendar.DAY_OF_MONTH, day); return c.get(Calendar.DAY_OF_WEEK); } /** * 得到现在是这个周的第几天 * * @return */ public static int getWeekByDate() { Calendar c = Calendar.getInstance(); return c.get(Calendar.DAY_OF_WEEK); } public static List<String> monthDiff(Date date1, Date date2) throws Exception { List<String> monthList = new ArrayList<String>(); if (DateUtils.dateDiff(date1, date2) < 0) { return monthList; } Calendar calendar1 = Calendar.getInstance(); Calendar calendar2 = Calendar.getInstance(); calendar1.setTime(date1); calendar2.setTime(date2); while (DateUtils.dateDiff(calendar1.getTime(), calendar2.getTime()) >= 0) { monthList.add(DateUtils.formatDate(calendar1.getTime())); calendar1.set(Calendar.DAY_OF_MONTH, 1); calendar1.set(Calendar.MONTH, calendar1.get(Calendar.MONTH) + 1); } if (monthList.size() > 0) { monthList.remove(monthList.size() - 1); monthList.add(DateUtils.formatDate(date2)); } return monthList; } /** * 计算两个日期之间相差多少天 * * @param date1 * @param date2 * @return */ public static int dateDiff(Date date1, Date date2) { Calendar calendar1 = Calendar.getInstance(); Calendar calendar2 = Calendar.getInstance(); calendar1.setTime(date1); calendar2.setTime(date2); long increaseDate = (calendar2.getTimeInMillis() - calendar1.getTimeInMillis()) / 1000 / 60 / 60 / 24; if (((calendar2.getTimeInMillis() - calendar1.getTimeInMillis()) % (1000 * 60 * 60 * 24)) > 0) { increaseDate = increaseDate + 1; } return (int) increaseDate; } /** * 取得两天之间的天数 * * @param start * @param end * @return */ public static int daysBetween(Date start, Date end) { // return date1.getTime() / (24*60*60*1000) - date2.getTime() / // (24*60*60*1000); String formatDate = formatDate(start); Date convertStartDate = convertToDate(formatDate); formatDate = formatDate(end); Date convertEndDate = convertToDate(formatDate); return (int) (convertEndDate.getTime() / 86400000 - convertStartDate.getTime() / 86400000); // 用立即数,减少乘法计算的开销 } /** * 取得两天之间的日期数组,包含开始日期与结束日期 * * @param startDateStr * 开始日期 * @param endDateStr * 结束日期 * @return Date[] 日期数组 */ public static Date[] getBetweenTwoDayArray(String startDateStr, String endDateStr) { Date startDate = formatDateYyyyMmDd(startDateStr); int dateNum = Integer.parseInt(getDaysBetweenTwoDates(startDateStr, endDateStr)) + 1; Date[] dataArray = new Date[dateNum]; for (int i = 0; i < dateNum; i++) { dataArray[i] = startDate; startDate = org.apache.commons.lang.time.DateUtils.addDays(startDate, 1); } return dataArray; } /** * 把日期字符串格式化为日期类型 * * @param datetext * @return */ public static Date formatDateYyyyMmDd(String datetext) { try { SimpleDateFormat df; if (datetext == null || "".equals(datetext.trim())) { return null; } datetext = datetext.replaceAll("/", "-"); df = new SimpleDateFormat("yyyy-MM-dd"); Date date = df.parse(datetext); return date; } catch (Exception e) { e.printStackTrace(); return null; } } /* * 两个日期之间相隔天数的共通 author:jerry.ji date:08-03-06 * * @param from 開始時間 * * @param to 終了時間 * * @return 天数 */ public static String getDaysBetweenTwoDates(String dateFrom, String dateEnd) { Date dtFrom = null; Date dtEnd = null; dtFrom = string2Date(dateFrom, "yyyy-MM-dd"); dtEnd = string2Date(dateEnd, "yyyy-MM-dd"); long begin = dtFrom.getTime(); long end = dtEnd.getTime(); long inter = end - begin; if (inter < 0) { inter = inter * (-1); } long dateMillSec = 24 * 60 * 60 * 1000; long dateCnt = inter / dateMillSec; long remainder = inter % dateMillSec; if (remainder != 0) { dateCnt++; } return String.valueOf(dateCnt); } /** * 把日期字符串格式化为日期类型 * * @param datetext * 日期字符串 * @param format * 日期格式,如果不传则使用"yyyy-MM-dd HH:mm:ss"格式 * @return */ public static Date string2Date(String datetext, String format) { try { SimpleDateFormat df; if (datetext == null || "".equals(datetext.trim())) { return new Date(); } if (format != null) { df = new SimpleDateFormat(format); } else { datetext = datetext.replaceAll("/", "-"); df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } Date date = df.parse(datetext); return date; } catch (Exception e) { e.printStackTrace(); return new Date(); } } public static String formatDate(Date date, String format) { try { if (format != null && !"".equals(format) && date != null) { SimpleDateFormat formatter = new SimpleDateFormat(format); return formatter.format(date); } } catch (Exception e) { return ""; } return ""; } /** * 算出两个日期中所包含的月份 * * @param fromDate * @param toDate * @return */ public static Set<String> getMonthBetweenTwoDate(Date fromDate, Date toDate) { long begin = fromDate.getTime(); long end = toDate.getTime(); long inter = end - begin; if (inter < 0) { inter = inter * (-1); } long dateMillSec = 86400000; long dateCnt = inter / dateMillSec; long remainder = inter % dateMillSec; if (remainder != 0) { dateCnt++; } Set<String> set = new LinkedHashSet<String>(); Calendar cl = Calendar.getInstance(); cl.setTime(fromDate); cl.set(Calendar.HOUR_OF_DAY, 0); cl.set(Calendar.MINUTE, 0); cl.set(Calendar.SECOND, 0); cl.set(Calendar.MILLISECOND, 0); set.add(getDateyyyyMM(cl.getTime())); for (int i = 1; i <= dateCnt; i++) { cl.add(Calendar.DAY_OF_YEAR, 1); set.add(getDateyyyyMM(cl.getTime())); } return set; } /** * 得到yyyyMM的年月 * * @param date * @return */ public static String getDateyyyyMM(Date date) { SimpleDateFormat df = new SimpleDateFormat("yyyyMM"); return df.format(date); } /** * 得到yyyyMM的年月 * * @param date * @return */ public static String getDateyyyyMMdd(Date date) { SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd"); return df.format(date); } /** * 得到一月的最大天数 * * @param date * @return */ public static int getMonthsMaxDay(Date date) { Calendar cal1 = Calendar.getInstance(); cal1.setTime(date); return cal1.getActualMaximum(cal1.DAY_OF_MONTH); } public static Date parseDateyyyyMM(String month) { SimpleDateFormat df = new SimpleDateFormat("yyyyMM"); try { return df.parse(month); } catch (ParseException e) { } return null; } public static Date parseDateyyyyMMdd(String date) { SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd"); try { return df.parse(date); } catch (ParseException e) { } return null; } /** * 根据两个日期,算出某个月份的第一天,或者最后一天 * * @param dateFrom * @param dateTo * @param month * @param flag * @return */ public static int getDayBetweenDateStartOrEnd(Date dateFrom, Date dateTo, Date month, String flag) { if (dateFrom.getTime() > dateTo.getTime()) { Date temp = dateFrom; dateFrom = dateTo; dateTo = temp; } if (getDateyyyyMM(month).compareTo(getDateyyyyMM(dateFrom)) > 0 && getDateyyyyMM(month).compareTo(getDateyyyyMM(dateTo)) < 0) { if ("start".equals(flag)) return 1; return getMonthsMaxDay(month); } else if (getDateyyyyMM(month).compareTo(getDateyyyyMM(dateFrom)) == 0 && getDateyyyyMM(month).compareTo(getDateyyyyMM(dateTo)) < 0) { if ("start".equals(flag)) return getDayOfMonth(dateFrom); return getMonthsMaxDay(month); } else if (getDateyyyyMM(month).compareTo(getDateyyyyMM(dateFrom)) > 0 && getDateyyyyMM(month).compareTo(getDateyyyyMM(dateTo)) == 0) { if ("start".equals(flag)) return 1; return getDayOfMonth(dateTo); } else { if ("start".equals(flag)) return getDayOfMonth(dateFrom); return getDayOfMonth(dateTo); } } /** * 根据一个日期,算出是这个月中的第几天 * * @param date * @return */ public static int getDayOfMonth(Date date) { Calendar cal1 = Calendar.getInstance(); cal1.setTime(date); return cal1.get(Calendar.DAY_OF_MONTH); } /** * 取出一个月中某天的日期 * * @param month * @param num * @return */ public static Date getDateOfMonthByNum(String month, int num) { Calendar cl = Calendar.getInstance(); cl.setTime(parseDateyyyyMM(month)); cl.set(Calendar.HOUR_OF_DAY, 0); cl.set(Calendar.MINUTE, 0); cl.set(Calendar.SECOND, 0); cl.set(Calendar.MILLISECOND, 0); cl.add(Calendar.DAY_OF_YEAR, num - 1); return cl.getTime(); } /** * 得到本周第一天日期 * * @author vincent.shan * @return */ public static Date getCurrentWeekMonday() { Calendar cal = Calendar.getInstance(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); int index = cal.get(Calendar.DAY_OF_WEEK); // 转成中国的习惯,如果是第一天,则转化为第七天(星期天外国为一周的第一天,而中国为每周的最后一天) if (index == 1) index = 8; cal.add(Calendar.DATE, -(index - 2)); return cal.getTime(); } /** * 得到本周最后一天的日期 * * @author vincent.shan * @return */ public static Date getCurrentWeekSaturday() { Calendar cal = Calendar.getInstance(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); int index = cal.get(Calendar.DAY_OF_WEEK); if (index == 1) index = 8; cal.add(Calendar.DATE, -(index - 2)); cal.add(Calendar.DATE, 6); return cal.getTime(); } /** * 从指定日期移动一定的天数 * * @param date * @param day * @return */ public static Date moveDay(Date date, int day) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); cal.add(Calendar.DAY_OF_MONTH, day); return cal.getTime(); } /** * 从当天日期移动一定的月数 * * @param month * @return */ public static Date getMoveMonthDate(int month) { Date nowDate = new Date(); Calendar cl = Calendar.getInstance(); cl.setTime(nowDate); cl.add(Calendar.MONDAY, month - 1); Date date1 = cl.getTime(); return date1; } /** * 得到昨天 * * @param date * @param day * @return */ public static Date getYesterday() { Calendar cal = Calendar.getInstance(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); cal.add(Calendar.DAY_OF_MONTH, -1); return cal.getTime(); } /** * 根据某个日期,返回本月第一天 * * @param date * 任何一天 * @return Date 当月第一天 * */ public static Date getMonthsFirstDay(Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(Calendar.DATE, 1); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal.getTime(); } /** * 根据某个日期,返回本月最后一天 * * @param date * 任何一天 * @return Date 当月第一天 * */ public static Date getMonthsLastDay(Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(Calendar.DATE, 1); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); cal.add(Calendar.MONTH, 1); cal.add(Calendar.DATE, -1); return cal.getTime(); } public static Set<String> getDayList(Date startDate, Date endDate) { long begin = startDate.getTime(); long end = endDate.getTime(); long inter = end - begin; if (inter < 0) { inter = inter * (-1); } long dateMillSec = 86400000; long dateCnt = inter / dateMillSec; Set<String> set = new LinkedHashSet<String>(); Calendar cl = Calendar.getInstance(); cl.setTime(startDate); cl.set(Calendar.HOUR_OF_DAY, 0); cl.set(Calendar.MINUTE, 0); cl.set(Calendar.SECOND, 0); cl.set(Calendar.MILLISECOND, 0); set.add(getDateyyyyMMdd(cl.getTime())); for (int i = 1; i <= dateCnt; i++) { cl.add(Calendar.DAY_OF_YEAR, 1); set.add(getDateyyyyMMdd(cl.getTime())); } set.add(getDateyyyyMMdd(endDate)); return set; } /** * 功能:取得两个日期中最小的日期,如果两个日期参数都为null则返回null * * @author irvshan * * @param date1 * @param date2 * @return Date or null */ public static Date getMinimizeDate(Date date1, Date date2) { if (date1 == null) { return date2; } if (date2 == null) { return date1; } if (date1.compareTo(date2) > 0) { return date2; } return date1; } /** * 功能:取得两个日期中最大的日期,如果两个日期参数都为null则返回null * * @author irvshan * * @param date1 * @param date2 * @return Date or null */ public static Date getMaxmizeDate(Date date1, Date date2) { if (date1 == null) { return date2; } if (date2 == null) { return date1; } if (date1.compareTo(date2) < 0) { return date2; } return date1; } public static int getDayofWeek(Date date, int day) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); calendar.set(Calendar.DAY_OF_MONTH, calendar.get(Calendar.DAY_OF_MONTH) + day - 1); return calendar.get(Calendar.DAY_OF_WEEK); } /** * 把date1的小时,分钟,秒换成date2的小时,分钟,秒,返回换值后的date1 * * @param date1 * @param date2 * @return */ public static Date changeTheHourMinuteSecond(Date date1, Date date2) { Calendar cl1 = Calendar.getInstance(); cl1.setTime(date1); cl1.set(Calendar.HOUR_OF_DAY, 0); cl1.set(Calendar.MINUTE, 0); cl1.set(Calendar.SECOND, 0); Calendar cl2 = Calendar.getInstance(); cl2.setTime(date2); cl1.set(Calendar.HOUR_OF_DAY, cl2.get(Calendar.HOUR_OF_DAY)); cl1.set(Calendar.MINUTE, cl2.get(Calendar.MINUTE)); cl1.set(Calendar.SECOND, cl2.get(Calendar.SECOND)); return cl1.getTime(); } public static void main(String[] args) { } }
相关推荐
《永磁无刷直流电机控制系统与软件综合研究——集成电机计算软件、电机控制器及电磁设计软件的创新设计与实践》,永磁无刷直流电机计算与控制软件:高效电机控制器与电磁设计工具,永磁无刷直流电机计算软件,电机控制器,无刷电机设计软件,电机电磁设计软件 ,永磁无刷直流电机计算软件; 电机控制器; 无刷电机设计软件; 电机电磁设计软件,无刷电机设计专家:永磁无刷直流电机计算与控制器设计软件
新能源汽车VCU开发模型及策略详解:从控制策略到软件设计全面解析,新能源汽车VCU开发模型及策略详解:从控制策略到软件设计全面解析,新能源汽车VCU开发模型及控制策略,MBD电控开发 新能源汽车大势所向,紧缺VCU电控开发工程师,特别是涉及新能源三电系统,工资仅仅低于无人驾驶、智能驾驶岗位。 ——含控制策略模型 整车控制策略详细文档 通讯协议文档 接口定义 软件设计说明文档 等(超详细,看懂VCU电控策略开发就通了) 内容如下: 新能源汽车整车控制器VCU学习模型,适用于初学者。 1、模型包含高压上下电,行驶模式管理,能量回馈,充电模式管理,附件管理,远程控制,诊断辅助功能。 2、软件说明书(控制策略说明书) 3、模型有部分中文注释 对想着手或刚开始学习整车控制器自动代码生成或刚接触整车控制器有很大帮助。 ,新能源汽车VCU开发模型; 控制策略; MBD电控开发; 模型学习; 代码生成; 整车控制器; 能量回馈; 诊断辅助功能,新能源汽车电控开发详解:VCU控制策略模型及学习手册
内容概要:本文详细介绍了两种利用 Python 读取 Excel 文件的不同方法,分别是基于 pandas 和 openpyxl。对于想要利用Python 处理 Excel 数据的读者来说,文中不仅提供了简洁明了的具体代码片段以及执行效果展示,还针对每个库的应用特性进行了深度解析。此外,文档提到了一些进阶应用技巧如只读特定的工作薄、过滤某些列等,同时强调了需要注意的地方(像是路径设置、engine 参数调整之类),让读者可以在面对实际项目需求时做出更加明智的选择和技术选型。 适合人群:对 Python 有基本掌握并希望提升数据读取能力的开发人员。 使用场景及目标:适用于任何涉及到批量数据导入或是与 Excel 进行交互的业务流程。无论是做初步的数据探索还是深入挖掘隐藏于电子表格背后的故事,亦或是仅为了简化日常办公自动化任务都可以从中受益。最终目标帮助使用者熟悉两大主流 Excel 解决方案的技术特性和最佳实践。 阅读建议:本文既是一份详尽的学习指南也是一份方便随时查阅的手册。因此初学者应当认真研究所提供的示例,而有一定经验者也可以快速定位到感兴趣的部分查看关键要点。
# 医护人员排班系统 ## 1. 项目介绍 本系统是一个基于SpringBoot框架开发的医护人员排班管理系统,用于医院管理医护人员的排班、调班等工作。系统提供了完整的排班管理功能,包括科室管理、人员管理、排班规则配置、自动排班等功能。 ## 2. 系统功能模块 ### 2.1 基础信息管理 - 科室信息管理:维护医院各科室基本信息 - 医护人员管理:管理医生、护士等医护人员信息 - 排班类型管理:配置不同的排班类型(如:早班、中班、晚班等) ### 2.2 排班管理 - 排班规则配置:设置各科室排班规则 - 自动排班:根据规则自动生成排班计划 - 排班调整:手动调整排班计划 - 排班查询:查看各科室排班情况 ### 2.3 系统管理 - 用户管理:管理系统用户 - 角色权限:配置不同角色的操作权限 - 系统设置:管理系统基础配置 ## 3. 技术架构 ### 3.1 开发环境 - JDK 1.8 - Maven 3.6 - MySQL 5.7 - SpringBoot 2.2.2 ### 3.2 技术栈 - 后端框架:SpringBoot - 持久层:MyBatis-Plus - 数据库:MySQL - 前端框架:Vue.js - 权限管理:Spring Security ## 4. 数据库设计 主要数据表: - 科室信息表(keshixinxi) - 医护人员表(yihurengyuan) - 排班类型表(paibanleixing) - 排班信息表(paibanxinxi) - 用户表(user) ## 5. 部署说明 ### 5.1 环境要求 - JDK 1.8+ - MySQL 5.7+ - Maven 3.6+ ### 5.2 部署步骤 1. 创建数据库并导入SQL脚本 2. 修改application.yml中的数据库配置 3. 执行maven打包命令:mvn clean package 4. 运行jar包:java -jar xxx.jar ## 6. 使用说明 ### 6.1 系统登录 - 管理员账号:admin - 初始密码:admin ### 6.2 基本操作流程 1. 维护基础信息(科室、人员等) 2. 配置排班规则 3. 生成排班计划 4. 查看和调整排班 ## 7. 注意事项 1. 首次使用请及时修改管理员密码 2. 定期备份数据库 3. 建议定期检查和优化排班规则
MATLAB仿真的夫琅禾费衍射强度图:圆孔、圆环、矩形孔定制研究,MATLAB仿真:夫琅禾费衍射强度图的可定制性——以圆孔、圆环及矩形孔为例的研究分析,MATLAB夫琅禾费衍射强度图仿真 圆孔,圆环,矩形孔可定制。 ,MATLAB; 夫琅禾费衍射; 强度图仿真; 圆孔; 圆环; 矩形孔; 可定制。,MATLAB仿真夫琅禾费衍射强度图:定制孔型(圆孔/圆环/矩形)
详细介绍及样例数据:https://blog.csdn.net/samLi0620/article/details/145652300
基于Dugoff轮胎模型与B08_01基础建模的七自由度车辆动力学模型验证:利用MATLAB 2018及以上版本与CarSim 2020.0软件的仿真对比研究,基于Dugoff轮胎模型与B08_01框架的七自由度车辆动力学模型验证——使用MATLAB 2018及以上版本与CarSim 2020.0软件进行仿真对比研究,七自由度车辆动力学模型验证(Dugoff轮胎模型,B08_01基础上建模) 1.软件: MATLAB 2018以上;CarSim 2020.0 2.介绍: 基于Dugoff轮胎模型和车身动力学公式,搭建7DOF车辆动力学Simulink模型,对相关变量(质心侧偏角,横摆角速度,纵、横向速度及加速度)进行CarSim对比验证。 ,核心关键词:七自由度车辆动力学模型验证; Dugoff轮胎模型; B08_01建模基础; MATLAB 2018以上; CarSim 2020.0; Simulink模型; 变量对比验证。,基于Dugoff轮胎模型的七自由度车辆动力学模型验证与CarSim对比
【毕业设计】基于Java+servlet+jsp+css+js+mysql实现“转赚”二手交易平台_pgj
微猫恋爱聊妹术小程序源码介绍: 微猫恋爱聊妹术小程序源码是一款全新升级的聊天工具,它采用全新主题和UI,完美支持分享朋友圈功能。同时,它的独立后台也进行了大规模更新,让操作更加简单。其中,课堂页面、搜索页面和子话术列表页面等,均增加了流量主展示,具有超多的功能。 安装教程: 您可以先加入微猫恋爱聊妹术小程序源码的赞助群,然后在群内找到魔方安装说明。根据源码编号找到相应的安装说明,非常详细,让您轻松完成安装。
电气安装工程安全技术规程_蒋凯,杨华甫,马仲范,王清禄译;孙照森校;鞍钢工程技术编委会编
基于Copula函数的风光空间相关性联合场景生成与K-means聚类削减MATLAB研究,基于Copula函数的风光空间相关性联合场景生成与K-means聚类削减算法研究,基于copula的风光联合场景生成?K-means聚类并削减 MATLAB 由于目前大多数研究的是不计风光出力之间的相关性影响,但是地理位置相近的风电机组和光伏机组具有极大的相关性。 因此,采用 Copula 函数作为风电、光伏联合概率分布,生成风、光考虑空间相关性联合出力场景,在此基础上,基于Kmeans算法,分别对风光场景进行聚类,从而实现大规模场景的削减,削减到5个场景,最后得出每个场景的概率与每个对应场景相乘求和得到不确定性出力 ,基于Copula的风光联合场景生成; K-means聚类削减; 空间相关性; 概率分布; 场景削减,基于Copula与K-means的风光联合场景生成与削减研究
模块化多电平变流器MMC的VSG控制技术研究:基于MATLAB-Simulink的仿真分析与定制实现——支持三相与任意电平数,构网型模块化多电平变流器MMC的VSG控制策略与仿真模型:三相负荷变动下的虚拟同步发电机控制研究,构网型 模块化多电平变流器 MMC 的VSG控制 同步发电机控制 MATLAB–Simulink仿真模型,可按需求定制 10电平.14电平,任意电平可做。 三相MMC,采用VSG控制。 设置负荷变动,调整有功无功,保持电网电压和频率 ,构网型模块化多电平变流器; MMC的VSG控制; 虚拟同步发电机控制; MATLAB–Simulink仿真模型; 任意电平可做; 三相MMC; 负荷变动; 有功无功调整; 电网电压和频率保持。,基于VSG控制的模块化多电平变流器(MMC)的构网型仿真模型
暗通道算法DCP-Python实现
南师大实验室安全准入知识供学习
纯openMV寻迹小车.zip
【毕业设计】基于Java mvc架构开发的完整购物网站
以下是针对初学者的 **51单片机入门教程**,内容涵盖基础概念、开发环境搭建、编程实践及常见应用示例,帮助你快速上手。
springboot医院信管系统--
springboot私人健身与教练预约管理系统--
yolov8-0的资源