123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package com.hssx.cloudmodel.controller;
- import com.hssx.cloudmodel.entity.MouldHistoryTime;
- import com.hssx.cloudmodel.entity.vo.MouldHistoryTimeVO;
- import com.hssx.cloudmodel.service.MouldHistoryService;
- import com.hssx.cloudmodel.util.HttpRespMsg;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.ResponseBody;
- import org.springframework.web.bind.annotation.RestController;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author 吴涛涛
- * @since 2019-10-11
- */
- @Controller
- @RequestMapping("/mouldhistory")
- public class MouldHistoryController {
- @Autowired
- private MouldHistoryService mouldHistoryService;
- /**
- *
- * 开合次数的excel导出/开合历史数据的excel导出
- * @param equipmentNo 设备编号
- * @param startTime 时间点 如:2019-02-15
- * @param endTime 时间点 如:2019-02-15
- * @param type 0-开合次数数据,1-开合历史数据
- * @return
- */
- @ApiOperation("开合次数的excel导出/开合历史数据的excel导出")
- @RequestMapping("/exportExcel")
- @ResponseBody
- public HttpRespMsg openingAndClosingTimesChart(HttpServletResponse response, String equipmentNo, String startTime, String endTime, Integer type){
- HttpRespMsg msg = mouldHistoryService.getOpeningAndClosingTimesChart(response,equipmentNo,startTime,endTime,type);
- return msg;
- }
- /**
- * 获取云模盒的每日开合次数周期 (时间/周期)
- * 参数:time 时间点 如:2019-02-15
- * equipmentNo 设备编号
- * @return
- */
- @ApiOperation("获取云模盒的开合次数周期 (时间/周期)")
- @RequestMapping("/openingAndClosingTimesChartCycle")
- @ResponseBody
- public HttpRespMsg openingAndClosingTimesChartCycle(String equipmentNo,String startDate, String endDate){
- HttpRespMsg msg = mouldHistoryService.openingAndClosingTimesChartCycle(equipmentNo, startDate, endDate);
- return msg;
- }
- }
|