上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 58 下一页
摘要: /** * 公司培训课时汇总 * @return */ @Override public List<CompanyTrainingClassGather> getCompanyTrainingClassGather() { List<CompanyTrainingClassGather> list= 阅读全文
posted @ 2020-12-02 16:35 红尘沙漏 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 获取当前月第一天: /** * 获取当前月第一天 * @param month * @return */ public static String getFirstDayOfMonth(int month) { Calendar calendar = Calendar.getInstance(); 阅读全文
posted @ 2020-11-25 11:38 红尘沙漏 阅读(7461) 评论(0) 推荐(0) 编辑
摘要: mybatis-plus 自定义SQL,XML形式,传参的几种方式 前提说明 所涉及文件 传参类型说明 1.Java代码中使用QueryWrapper动态拼装SQL 2.简单类型参数(如String,Long,Integer等),适用于固定且确定的参数 3.参数传入类型为Class类,或mybati 阅读全文
posted @ 2020-11-25 09:25 红尘沙漏 阅读(8364) 评论(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 红尘沙漏 阅读(971) 评论(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 红尘沙漏 阅读(825) 评论(0) 推荐(0) 编辑
摘要: public class TimerUtil { /** * 计算工龄 日期格式为yyyy-MM * @param t1 入职日期 * @param t2 当前日期 * @return XX年XX月 */ public static String gl(String t1,String t2) { 阅读全文
posted @ 2020-11-23 09:58 红尘沙漏 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 代码实现PropertyAnno.java import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; imp 阅读全文
posted @ 2020-11-21 14:38 红尘沙漏 阅读(2694) 评论(1) 推荐(0) 编辑
摘要: 最近公司需求解析excel,一开始使用poi做的挺好的,后来直接上了几十万条数据的excel文件,内存直接溢出了,网上查到apache poi还提供了专门处理海量数据的方法,使用sax解析,果然用了内存使用率下降,但是不能解析xls文件,只能解析xlsx文件,所以把工具简单封装了一下,如果是xls的 阅读全文
posted @ 2020-11-20 15:06 红尘沙漏 阅读(2135) 评论(0) 推荐(0) 编辑
摘要: <!-- 0 0 10,14,16 * * ? 每天上午10点,下午2点,4点 0 0/30 9-17 * * ? 朝九晚五工作时间内每半小时 0 0 12 ? * WED 表示每个星期三中午12点 "0 0 12 * * ?" 每天中午12点触发 "0 15 10 ? * *" 每天上午10:15 阅读全文
posted @ 2020-11-19 10:14 红尘沙漏 阅读(3863) 评论(0) 推荐(0) 编辑
摘要: package yuanCheng; import java.text.MessageFormat; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjso 阅读全文
posted @ 2020-11-19 09:54 红尘沙漏 阅读(2375) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 58 下一页