| | |
| | | @Operation(summary = "获取") |
| | | List<Object[]> getItemResultLastPoint(@RequestBody PreItemResultReqVO reqVO); |
| | | |
| | | @PostMapping(PREFIX + "/schedule-suggest/update-status") |
| | | @Operation(summary = "修改调度建议状态") |
| | | Boolean updateSuggestStatus(@RequestBody StAlarmAndSuggestReqVO reqVO); |
| | | @PostMapping(PREFIX + "/schedule-suggest/use-suggest") |
| | | @Operation(summary = "采纳建议") |
| | | Boolean useSuggest(@RequestBody StAlarmAndSuggestReqVO reqVO); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Boolean updateSuggestStatus(StAlarmAndSuggestReqVO reqVO) { |
| | | return stScheduleSuggestService.updateSuggestStatus(reqVO); |
| | | public Boolean useSuggest(StAlarmAndSuggestReqVO reqVO) { |
| | | return stScheduleSuggestService.useSuggest(reqVO); |
| | | } |
| | | |
| | | private Date[] calResultTime(ItemVO predictItem, Date startTimeReq, Date endTimeReq, int lengthLeft, int lengthRight) { |
| | |
| | | |
| | | List<StScheduleSuggestEntity> getList(List<String> scheduleObjList, Date predictTime); |
| | | |
| | | Boolean updateSuggestStatus(StAlarmAndSuggestReqVO reqVO); |
| | | Boolean useSuggest(StAlarmAndSuggestReqVO reqVO); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Boolean updateSuggestStatus(StAlarmAndSuggestReqVO reqVO) { |
| | | public Boolean useSuggest(StAlarmAndSuggestReqVO reqVO) { |
| | | StScheduleSuggestEntity entity = new StScheduleSuggestEntity(); |
| | | entity.setId(reqVO.getId()); |
| | | entity.setStatus(reqVO.getStatus()); |
| | | entity.setStatus(ScheduleSuggestStatusEnum.S1.getCode()); |
| | | entity.setHandleTime(new Date()); |
| | | baseDao.updateById(entity); |
| | | return true; |