|
@@ -0,0 +1,460 @@
|
|
|
+/*
|
|
|
+ *
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+package com.hboxs.control.api.index;
|
|
|
+
|
|
|
+import com.hboxs.common.Filter;
|
|
|
+import com.hboxs.control.api.BaseController;
|
|
|
+import com.hboxs.dto.AlarmStatisticsDTO;
|
|
|
+import com.hboxs.dto.CleanStatisticsDTO;
|
|
|
+import com.hboxs.entity.Admin;
|
|
|
+import com.hboxs.entity.AlarmRecord;
|
|
|
+import com.hboxs.entity.CleanHistory;
|
|
|
+import com.hboxs.entity.Equipment;
|
|
|
+import com.hboxs.service.*;
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.ui.ModelMap;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.text.ParseException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.*;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Controller
|
|
|
+ */
|
|
|
+@Controller("appindexIndexController")
|
|
|
+@RequestMapping("/api/app_index/index")
|
|
|
+public class IndexController extends BaseController {
|
|
|
+
|
|
|
+ @Resource(name = "adminServiceImpl")
|
|
|
+ private AdminService adminService;
|
|
|
+ @Resource(name = "roleServiceImpl")
|
|
|
+ private RoleService roleService;
|
|
|
+ @Resource(name = "globalConfigServiceImpl")
|
|
|
+ private GlobalConfigService globalConfigService;
|
|
|
+ @Resource(name = "equipmentServiceImpl")
|
|
|
+ private EquipmentService equipmentService;
|
|
|
+ @Resource(name = "cleanHistoryServiceImpl")
|
|
|
+ private CleanHistoryService cleanHistoryService;
|
|
|
+ @Resource(name = "alarmRecordServiceImpl")
|
|
|
+ private AlarmRecordService alarmRecordService;
|
|
|
+ /**
|
|
|
+ * 检查用户名是否存在
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/check_username", method = RequestMethod.GET)
|
|
|
+ public
|
|
|
+ @ResponseBody
|
|
|
+ boolean checkUsername(String username) {
|
|
|
+
|
|
|
+ if(adminService.getCurrent().getType() == Admin.Type.merchant || adminService.getCurrent().getType() == Admin.Type.personage ){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (StringUtils.isEmpty(username)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ List<Filter> fs = new ArrayList<>();
|
|
|
+
|
|
|
+ Admin.Type type = adminService.getCurrent().getType();
|
|
|
+ switch (type) {
|
|
|
+ case agency:
|
|
|
+ fs.add(Filter.eq("type", Admin.Type.agency));
|
|
|
+ fs.add(Filter.eq("agencyId", adminService.getCurrent().getAgencyId()));
|
|
|
+ break;
|
|
|
+ case merchant:
|
|
|
+ fs.add(Filter.eq("type", Admin.Type.merchant));
|
|
|
+ fs.add(Filter.eq("agencyId", adminService.getCurrent().getAgencyId()));
|
|
|
+ fs.add(Filter.isNotNull("merchantId"));
|
|
|
+ fs.add(Filter.eq("merchantId", adminService.getCurrent().getMerchantId()));
|
|
|
+ break;
|
|
|
+ case personage:
|
|
|
+ fs.add(Filter.eq("type", Admin.Type.personage));
|
|
|
+ fs.add(Filter.eq("personageId", adminService.getCurrent().getPersonageId()));
|
|
|
+ break;
|
|
|
+ case admin:
|
|
|
+ fs.add(Filter.eq("type", Admin.Type.admin));
|
|
|
+ }
|
|
|
+ fs.add(Filter.eq("username" , username));
|
|
|
+
|
|
|
+
|
|
|
+ List<Admin> as = adminService.findList(1, fs , null);
|
|
|
+ if(as!=null&&as.size()>0){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *今日人流量
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/peopleCounting", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Integer peopleCounting(ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ int number = 0;
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ List<Equipment> equipmentList = equipmentService.findByAdminId(admin.getId());
|
|
|
+ for(Equipment equipment:equipmentList){
|
|
|
+ //今日人流量
|
|
|
+ if(equipment.getPeopleCounting()!=null){
|
|
|
+ number+=equipment.getPeopleCounting();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ model.addAttribute("peopleCounting", number);
|
|
|
+ return Integer.valueOf(number);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *机器启动数量/机器总数量
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/equipmentNumber", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Map<String,Integer> equipmentNumber(ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ Map<String,Integer> map = new HashMap<>();
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ List<Equipment> equipmentList = equipmentService.findByAdminId(admin.getId());
|
|
|
+ int on = 0;
|
|
|
+ for(Equipment equipment:equipmentList){
|
|
|
+ //开启的机器数量
|
|
|
+ if(equipment.getEqeStatus()==1){
|
|
|
+ on++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("totalNum",equipmentList.size());
|
|
|
+ map.put("openNum",on);
|
|
|
+ model.addAttribute("equipmentNumber", map);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *今日定时清洗次数/随机清洗次数
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/cleanNumber", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Map<String,Integer> cleanNumber(ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ Map<String,Integer> map = new HashMap<>();
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ List<Filter> fs = new ArrayList<>();
|
|
|
+ List<Filter> fs1 = new ArrayList<>();
|
|
|
+ String beginEndDate = null;
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
|
|
|
+ Date date = new Date();
|
|
|
+ String startToday = simpleDateFormat.format(date);
|
|
|
+ SimpleDateFormat _format = new SimpleDateFormat("yyyy-MM-dd 23:59:59");
|
|
|
+ String endToday = _format.format(date);
|
|
|
+ beginEndDate = startToday + " - " + endToday;
|
|
|
+ Date begin = null;
|
|
|
+ Date end = null;
|
|
|
+ if (!StringUtils.isEmpty(beginEndDate)) {
|
|
|
+ SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+
|
|
|
+ try {
|
|
|
+ begin = simpleDateFormat1.parse(beginEndDate.split(" - ")[0].trim());
|
|
|
+ end = simpleDateFormat1.parse(beginEndDate.split(" - ")[1].trim());
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fs.add(Filter.eq("type", 0));
|
|
|
+ fs.add(Filter.eq("adminId", admin.getId()));
|
|
|
+ fs.add(Filter.geDate("createDate", begin));
|
|
|
+ fs.add(Filter.leDate("createDate", end));
|
|
|
+ List<CleanHistory> list1 = cleanHistoryService.findList(10000, fs, null);
|
|
|
+ fs1.add(Filter.eq("type", 1));
|
|
|
+ fs1.add(Filter.eq("adminId", admin.getId()));
|
|
|
+ fs1.add(Filter.geDate("createDate", begin));
|
|
|
+ fs1.add(Filter.leDate("createDate", end));
|
|
|
+ List<CleanHistory> list2 = cleanHistoryService.findList(10000, fs1, null);
|
|
|
+ int random = 0;
|
|
|
+ if(list2!=null){
|
|
|
+ random+=list2.size();
|
|
|
+ }
|
|
|
+ int regular = 0;
|
|
|
+ if(list1!=null){
|
|
|
+ regular+=list1.size();
|
|
|
+ }
|
|
|
+ map.put("random",random);
|
|
|
+ map.put("regular",regular);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *机器的状态,温度,湿度,清洗剂的剩余用量
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/equipmentStatus", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public List<Equipment> equipmentStatus(ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ List<Equipment> equipmentList = new ArrayList<>();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ equipmentList = equipmentService.findByAdminId(admin.getId());
|
|
|
+ model.addAttribute("equipmentList", equipmentList);
|
|
|
+ return equipmentList;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *机器今日的报警记录
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/alarmRecordList", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public List<AlarmRecord> alarmRecordList(ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ List<AlarmRecord> alarmRecordList = new ArrayList<>();
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ List<Filter> fs = new ArrayList<>();
|
|
|
+ String beginEndDate = null;
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
|
|
|
+ Date date = new Date();
|
|
|
+ String startToday = simpleDateFormat.format(date);
|
|
|
+ SimpleDateFormat _format = new SimpleDateFormat("yyyy-MM-dd 23:59:59");
|
|
|
+ String endToday = _format.format(date);
|
|
|
+ beginEndDate = startToday + " - " + endToday;
|
|
|
+ Date begin = null;
|
|
|
+ Date end = null;
|
|
|
+ if (!StringUtils.isEmpty(beginEndDate)) {
|
|
|
+ SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+
|
|
|
+ try {
|
|
|
+ begin = simpleDateFormat1.parse(beginEndDate.split(" - ")[0].trim());
|
|
|
+ end = simpleDateFormat1.parse(beginEndDate.split(" - ")[1].trim());
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fs.add(Filter.eq("adminId", admin.getId()));
|
|
|
+ fs.add(Filter.geDate("createDate", begin));
|
|
|
+ fs.add(Filter.leDate("createDate", end));
|
|
|
+ alarmRecordList = alarmRecordService.findList(999, fs, null);
|
|
|
+ return alarmRecordList;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *机器全年的使用统计
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/allCleanNumber", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public List<CleanStatisticsDTO> allCleanNumber(ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ List<CleanStatisticsDTO> list = new ArrayList<>();
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ list = cleanHistoryService.findByTime(admin.getId());
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *机器消耗的资源
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/consumedResources", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Map<String,Integer> consumedResources(String time,ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ Map<String,Integer> map = new HashMap<>();
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ List<Filter> fs = new ArrayList<>();
|
|
|
+ fs.add(Filter.eq("adminId", admin.getId()));
|
|
|
+ int electricity = 0;
|
|
|
+ int water = 0;
|
|
|
+ if(time.equals("All")){
|
|
|
+ List<CleanHistory> cleanHistoryList = cleanHistoryService.findList(99999,fs,null);
|
|
|
+ for(CleanHistory cleanHistory:cleanHistoryList){
|
|
|
+ if(cleanHistory.getElectricity()!=null){
|
|
|
+ electricity+=cleanHistory.getElectricity();
|
|
|
+ }
|
|
|
+ if(cleanHistory.getWater()!=null){
|
|
|
+ water+=cleanHistory.getWater();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else if(time.length()==4){
|
|
|
+ Date begin = null;
|
|
|
+ Date end = null;
|
|
|
+ begin = beginY(time);
|
|
|
+ end = endY(time);
|
|
|
+ fs.add(Filter.geDate("createDate", begin));
|
|
|
+ fs.add(Filter.leDate("createDate", end));
|
|
|
+ List<CleanHistory> list = cleanHistoryService.findList(99999, fs, null);
|
|
|
+ for(CleanHistory cleanHistory:list){
|
|
|
+ if(cleanHistory.getElectricity()!=null){
|
|
|
+ electricity+=cleanHistory.getElectricity();
|
|
|
+ }
|
|
|
+ if(cleanHistory.getWater()!=null){
|
|
|
+ water+=cleanHistory.getWater();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ Date begin = null;
|
|
|
+ Date end = null;
|
|
|
+ begin = beginM(time);
|
|
|
+ end = endM(time);
|
|
|
+ fs.add(Filter.geDate("createDate", begin));
|
|
|
+ fs.add(Filter.leDate("createDate", end));
|
|
|
+ List<CleanHistory> list = cleanHistoryService.findList(99999, fs, null);
|
|
|
+ for(CleanHistory cleanHistory:list){
|
|
|
+ if(cleanHistory.getElectricity()!=null){
|
|
|
+ electricity+=cleanHistory.getElectricity();
|
|
|
+ }
|
|
|
+ if(cleanHistory.getWater()!=null){
|
|
|
+ water+=cleanHistory.getWater();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("electricity",electricity);
|
|
|
+ map.put("water",water);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *报警的类型统计
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/alarmRecordType", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public List<AlarmStatisticsDTO> alarmRecordType(String time, ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ List<AlarmStatisticsDTO> list = new ArrayList<>();
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ List<Filter> fs = new ArrayList<>();
|
|
|
+ fs.add(Filter.eq("adminId", admin.getId()));
|
|
|
+ Date begin = null;
|
|
|
+ Date end = null;
|
|
|
+ if(time.equals("All")){
|
|
|
+
|
|
|
+ }else if(time.length()==4){
|
|
|
+ begin = beginY(time);
|
|
|
+ end = endY(time);
|
|
|
+ } else {
|
|
|
+ begin = beginM(time);
|
|
|
+ end = endM(time);
|
|
|
+ }
|
|
|
+ list = alarmRecordService.findByType(admin.getId(),begin,end);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *机器故障排行
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/alarmRecordLine", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public List<AlarmStatisticsDTO> alarmRecordLine(String time, ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ List<AlarmStatisticsDTO> list = new ArrayList<>();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+ List<Filter> fs = new ArrayList<>();
|
|
|
+ Date begin = null;
|
|
|
+ Date end = null;
|
|
|
+ if(time.equals("All")){
|
|
|
+
|
|
|
+ }else if(time.length()==4){
|
|
|
+ begin = beginY(time);
|
|
|
+ end = endY(time);
|
|
|
+ } else {
|
|
|
+ begin = beginM(time);
|
|
|
+ end = endM(time);
|
|
|
+ }
|
|
|
+ list = alarmRecordService.findLine(admin.getId(),begin,end);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *机器清洗排行
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/cleanLine", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public List<AlarmStatisticsDTO> cleanLine(String time, ModelMap model , RedirectAttributes redirectAttributes) {
|
|
|
+ List<AlarmStatisticsDTO> list = new ArrayList<>();
|
|
|
+ Admin admin = adminService.find(2l);
|
|
|
+// Admin admin = adminService.getCurrent();
|
|
|
+ List<Filter> fs = new ArrayList<>();
|
|
|
+ Date begin = null;
|
|
|
+ Date end = null;
|
|
|
+ if(time.equals("All")){
|
|
|
+
|
|
|
+ }else if(time.length()==4){
|
|
|
+ begin = beginY(time);
|
|
|
+ end = endY(time);
|
|
|
+ } else {
|
|
|
+ begin = beginM(time);
|
|
|
+ end = endM(time);
|
|
|
+ }
|
|
|
+ list = cleanHistoryService.findLine(admin.getId(),begin,end);
|
|
|
+ model.addAttribute("alarmRecordLine", list);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+ private Date beginY(String time) {
|
|
|
+ Date dater = null;
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy");
|
|
|
+ Date date = null;
|
|
|
+ try {
|
|
|
+ date = simpleDateFormat.parse(time);
|
|
|
+ SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ String startToday = simpleDateFormat1.format(date);
|
|
|
+ dater = simpleDateFormat1.parse(startToday);
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return dater;
|
|
|
+ }
|
|
|
+ private Date endY(String time) {
|
|
|
+ Date dater = null;
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy");
|
|
|
+ Date date = null;
|
|
|
+ try {
|
|
|
+ date = simpleDateFormat.parse(time);
|
|
|
+ SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-12-31 23:59:59");
|
|
|
+ String startToday = simpleDateFormat1.format(date);
|
|
|
+ SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ dater = simpleDateFormat2.parse(startToday);
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return dater;
|
|
|
+ }
|
|
|
+
|
|
|
+ private Date beginM(String time) {
|
|
|
+ Date dater = null;
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");
|
|
|
+ Date date = null;
|
|
|
+ try {
|
|
|
+ date = simpleDateFormat.parse(time);
|
|
|
+ SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ String startToday = simpleDateFormat1.format(date);
|
|
|
+ dater = simpleDateFormat1.parse(startToday);
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return dater;
|
|
|
+ }
|
|
|
+ private Date endM(String time) {
|
|
|
+ String[] split = time.split("-");
|
|
|
+ int year = Integer.parseInt(split[0]);
|
|
|
+ int month = Integer.parseInt(split[1]);
|
|
|
+ Calendar cal = Calendar.getInstance();
|
|
|
+ //设置年份
|
|
|
+ cal.set(Calendar.YEAR,year);
|
|
|
+ //设置月份
|
|
|
+ cal.set(Calendar.MONTH, month-1);
|
|
|
+ //获取某月最大天数
|
|
|
+ int lastDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
|
|
|
+ //设置日历中月份的最大天数
|
|
|
+ cal.set(Calendar.DAY_OF_MONTH, lastDay);
|
|
|
+ //格式化日期
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ String lastDayOfMonth = sdf.format(cal.getTime());
|
|
|
+ Date dater = null;
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ Date date = null;
|
|
|
+ try {
|
|
|
+ date = simpleDateFormat.parse(lastDayOfMonth);
|
|
|
+ SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd 23:59:59");
|
|
|
+ String startToday = simpleDateFormat1.format(date);
|
|
|
+ SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ dater = simpleDateFormat2.parse(startToday);
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return dater;
|
|
|
+ }
|
|
|
+}
|