| | |
| | |
|
| | | import static com.moral.common.util.ExportExcelUtils.exportData;
|
| | | import static com.moral.common.util.WebUtils.getParametersStartingWith;
|
| | | import static org.springframework.util.ObjectUtils.isEmpty;
|
| | |
|
| | | import java.io.OutputStream;
|
| | | import java.util.HashMap;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | |
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import static org.springframework.util.ObjectUtils.*;
|
| | | import org.springframework.web.bind.annotation.CrossOrigin;
|
| | | import org.springframework.web.bind.annotation.GetMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | |
| | | @CrossOrigin(origins = "*", maxAge = 3600)
|
| | | public class ReportController {
|
| | |
|
| | | @Autowired
|
| | | @Resource
|
| | | private HistoryService historyService;
|
| | |
|
| | | @Autowired
|
| | | @Resource
|
| | | private DeviceService deviceService;
|
| | |
|
| | | @GetMapping("sensors-average")
|