|
|
|
@ -14,6 +14,7 @@ import com.ruoyi.system.service.IImosPrPlanService;
|
|
|
|
|
import com.ruoyi.system.service.IScadaUhullDeviceinfoService;
|
|
|
|
|
import com.ruoyi.system.service.ProductionPlanService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
@ -42,6 +43,9 @@ public class UShellMesController {
|
|
|
|
|
|
|
|
|
|
private SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
|
|
|
|
@Value("${in_id}")
|
|
|
|
|
private int in_id;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IMosPrPlanRepository iMosPrPlanRepository;
|
|
|
|
|
|
|
|
|
@ -222,7 +226,8 @@ public class UShellMesController {
|
|
|
|
|
calendar.set(Calendar.SECOND, 0);
|
|
|
|
|
Date endTime = calendar.getTime();
|
|
|
|
|
|
|
|
|
|
List<ScadaUkHourData> info = iScadaUkHourDataRepository.findByRecordTimeBetween(beginTime,endTime);
|
|
|
|
|
// List<ScadaUkHourData> info = iScadaUkHourDataRepository.findByRecordTimeBetween(beginTime,endTime);
|
|
|
|
|
List<ScadaUkHourData> info = imosPrPlanService.findByRecordTimeBetweenNew();
|
|
|
|
|
List<ScadaUkHourData> infoList = info.stream().sorted(Comparator.comparing(ScadaUkHourData:: getRecordTime)).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
infoList.forEach(x->{
|
|
|
|
|