上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 63 下一页
摘要: /** * 公司培训课时汇总 * @return */ @Override public List<CompanyTrainingClassGather> getCompanyTrainingClassGather() { List<CompanyTrainingClassGather> list= 阅读全文
posted @ 2020-12-14 16:44 红尘沙漏 阅读(154) 评论(0) 推荐(0)
摘要: 码如下: mport java.text.DecimalFormat; DecimalFormat df = new DecimalFormat("######0.00"); double d1 = 3.23456 double d2 = 0.0;double d3 = 2.0;df.format( 阅读全文
posted @ 2020-12-14 16:38 红尘沙漏 阅读(606) 评论(0) 推荐(0)
摘要: public static void main(String[] args) throws ParseException { String dateStr = "2016-05-18"; //1、获取string对应date日期: Date date = new SimpleDateFormat(" 阅读全文
posted @ 2020-12-14 13:13 红尘沙漏 阅读(893) 评论(0) 推荐(0)
摘要: /** * 获取某年某月的第一天 * @Title:getFisrtDayOfMonth * @Description: * @param:@param year * @param:@param month * @param:@return * @return:String * @throws */ 阅读全文
posted @ 2020-12-14 11:23 红尘沙漏 阅读(885) 评论(0) 推荐(0)
摘要: IntelliJ IDEA如何用maven命令打jar包?下面给大家详细介绍一下具体步骤及说明。 工具/原料 IntelliJ IDEA maven 方法/步骤 第一步在CMD命令窗口输入mvn -v。验证本地maven环境是否安装成功。 第二步在IntelliJ IDEA选择底部的Terminal 阅读全文
posted @ 2020-12-08 11:48 红尘沙漏 阅读(1034) 评论(0) 推荐(0)
摘要: /** * 公司培训课时汇总 * @return */ @Override public List<CompanyTrainingClassGather> getCompanyTrainingClassGather() { List<CompanyTrainingClassGather> list= 阅读全文
posted @ 2020-12-02 16:35 红尘沙漏 阅读(82) 评论(0) 推荐(0)
摘要: 获取当前月第一天: /** * 获取当前月第一天 * @param month * @return */ public static String getFirstDayOfMonth(int month) { Calendar calendar = Calendar.getInstance(); 阅读全文
posted @ 2020-11-25 11:38 红尘沙漏 阅读(7485) 评论(0) 推荐(0)
摘要: mybatis-plus 自定义SQL,XML形式,传参的几种方式 前提说明 所涉及文件 传参类型说明 1.Java代码中使用QueryWrapper动态拼装SQL 2.简单类型参数(如String,Long,Integer等),适用于固定且确定的参数 3.参数传入类型为Class类,或mybati 阅读全文
posted @ 2020-11-25 09:25 红尘沙漏 阅读(8823) 评论(1) 推荐(0)
摘要: Date ruZhi = new Date("入职年月bai"); Date now = new Date(); //算出du来时间夸格zhi多长 long shiChang = now.getTime()-now.getTIme(); //转换成天 int day = shiChang/(1000 阅读全文
posted @ 2020-11-23 10:06 红尘沙漏 阅读(1007) 评论(1) 推荐(0)
摘要: import java.util.Date; import java.util.Calendar; public int workAge(Date nowTime, Date workTime){ int year = 0; //当前时间的年月日 Calendar cal = Calendar.ge 阅读全文
posted @ 2020-11-23 10:04 红尘沙漏 阅读(848) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 63 下一页