java:
/**
* 倒计时
* @param request
* @return
*/
@RequestMapping(value = "/showDate")
@ResponseBody
public Map<String, Object> showDate(HttpServletRequest request, Integer taskId)throws Exception{
Map<String, Object> map = new HashMap<String, Object>();
List<TopologyTask> countDown= topologyTaskService.queryDate(taskId);
map.put("countDown", countDown);
return map;
}
package com.xlkh.boot.portal.service.topology;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xlkh.boot.portal.dao.topology.TopologyTaskDao;
import com.xlkh.boot.portal.pojo.topology.TopologyTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
i