| | |
| | | |
| | | import com.moral.api.pojo.dto.dataDisplay.MonitorPointDataDisplayDTO; |
| | | import com.moral.api.pojo.form.dataDisplay.MonitorPointDataDisplayForm; |
| | | import com.moral.api.service.DataDisplayService; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.constant.ResultMessage; |
| | | import com.moral.util.DateUtils; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @RequestMapping("/dataDisplay") |
| | | public class DataDisplayController { |
| | | |
| | | @Autowired |
| | | DataDisplayService dataDisplayService; |
| | | |
| | | @GetMapping("monitorPointDataDisplay") |
| | | public ResultMessage monitorPointDataDisplay(MonitorPointDataDisplayForm form){ |
| | | //判断是否缺少参数 |
| | |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), |
| | | ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | |
| | | MonitorPointDataDisplayDTO dto = new MonitorPointDataDisplayDTO(); |
| | | List<MonitorPointDataDisplayDTO> list = dataDisplayService.getMonitorPointDisplayData(form); |
| | | /*MonitorPointDataDisplayDTO dto = new MonitorPointDataDisplayDTO(); |
| | | MonitorPointDataDisplayDTO dto1 = new MonitorPointDataDisplayDTO(); |
| | | MonitorPointDataDisplayDTO dto2 = new MonitorPointDataDisplayDTO(); |
| | | |
| | |
| | | List<MonitorPointDataDisplayDTO> list = new ArrayList<>(); |
| | | list.add(dto); |
| | | list.add(dto1); |
| | | list.add(dto2); |
| | | list.add(dto2);*/ |
| | | return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(),list); |
| | | } |
| | | |