packagecom.hnzie.modules.kaoqin.service.impl;importcom.baomidou.mybatisplus.service.impl.ServiceImpl;importcom.hnzie.modules.kaoqin.dao.WxUserHolidayDao;importcom.hnzie.modules.kaoqin.entity.WxUserHolidayEntity;importcom.hnzie.modules.kaoqin.service.WxQingjiaMaintainService;importcom.hnzie.modules.kaoqin.service.WxUserHolidayService;importlombok.extern.slf4j.Slf4j;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.stereotype.Service;importjava.text.DateFormat;importjava.text.SimpleDateFormat;import java.util.*;
@Service("wxUserHolidayService")
@Slf4jpublic class WxUserHolidayServiceImpl extends ServiceImpl implementsWxUserHolidayService {/*** 定义常见的时间格式*/
private static String[] dateFormat ={"yyyy-MM-dd HH:mm:ss", //0
"yyyy/MM/dd HH:mm:ss", //1
"yyyy年MM月dd日HH时mm分ss秒", //2
"yyyy-MM-dd", //3
"yyyy/MM/dd", //4
"yy-MM-dd", //5
"yy/MM/dd", //6
"yyyy年MM月dd日", //7
"HH:mm:ss", //8
"yyyyMMddHHmmss", //9
"yyyyMMdd", //10
"yyyy.MM.dd", //11
"yy.MM.dd", //12
"MM月dd日HH时mm分", //13
"yyyy年MM月dd日 HH:mm:ss", //14
"yyyy-MM-dd HH:mm", //15
"yyMMdd" //16
};
@OverridepublicString[] holiday1() {returnbaseMapper.selectLawHolidayDate();
}
@OverridepublicString[] holiday2() {returnbaseMapper.selectLawWorkDate();
}
@OverridepublicString[] workTimes() {
String S = baseMapper.selectTimeTable(Const.timeTableKey);
Map parse = (Map)JSON.parse(S);
String[] times = new String[4];
times[0] = String.valueOf(parse.get("SstartTime"));
times[1] = String.valueOf(parse.get("SendTime"));
times[2] = String.valueOf(parse.get("XstartTime"));
times[3] = String.valueOf