| | |
| | | import com.zy.core.thread.RgvThread; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | private WrkMastService wrkMastService; |
| | | @Autowired |
| | | private BasDevpPositionService basDevpPositionService; |
| | | |
| | | @Value("${constant-parameters.perimeter}") |
| | | private Long perimeter; |
| | | |
| | | @Override |
| | | @Transactional |
| | |
| | | List<WcsTaskListParam> wcsTaskListParamList = new ArrayList<>(); |
| | | List<WcsRgvListParam> wcsRgvListParamList = new ArrayList<>(); |
| | | List<WrkMast> wrkMastList = wrkMastService.selectList(new EntityWrapper<>()); |
| | | List<BasDevpPosition> basDevpPositions = basDevpPositionService.selectList(new EntityWrapper<BasDevpPosition>().orderBy("plc_position",false)); |
| | | List<BasDevpPosition> basDevpPositions = basDevpPositionService.selectList(new EntityWrapper<BasDevpPosition>().orderBy("plc_position",true)); |
| | | |
| | | for (WrkMast wrkMast : wrkMastList){ |
| | | WcsTaskListParam wcsTaskListParam = new WcsTaskListParam(wrkMast); |
| | |
| | | WcsRgvListParam wcsRgvListParam = new WcsRgvListParam(); |
| | | wcsRgvListParam.setRgvNo(rgv.getId().toString()); |
| | | wcsRgvListParam.setTaskNo(Cools.isEmpty(rgvProtocol.getTaskNo1()) ? null:rgvProtocol.getTaskNo1().toString()); |
| | | wcsRgvListParam.setStatus(rgvProtocol.statusType.desc); |
| | | wcsRgvListParam.setCurrSta(SortTheExecutionOfTheCarUtil.LatelyAndLessThanWcs(basDevpPositions,rgvProtocol.getRgvPos()).toString()); |
| | | wcsRgvListParam.setStatus(rgvProtocol.statusType.id); |
| | | wcsRgvListParam.setCurrPos(rgvProtocol.RgvPos); |
| | | wcsRgvListParam.setCurrSta(SortTheExecutionOfTheCarUtil.LatelyAndLessThanWcs(basDevpPositions,rgvProtocol.getRgvPos(),perimeter).toString()); |
| | | List<String> arrayList = new ArrayList<>(); |
| | | if (rgvProtocol.getAlarm()!=0){ |
| | | arrayList.add(rgvProtocol.getAlarm$()); |