| | |
| | | import com.mes.bigstorage.entity.BigStorageCage; |
| | | import com.mes.bigstorage.entity.BigStorageCageDetails; |
| | | import com.mes.bigstorage.entity.BigStorageDTO; |
| | | import com.mes.bigstorage.entity.dto.FlowCardDTO; |
| | | import com.mes.bigstorage.entity.dto.SlotSequenceDTO; |
| | | import com.mes.bigstorage.entity.dto.TemperingLayoutDTO; |
| | | import com.mes.bigstorage.mapper.BigStorageCageDetailsMapper; |
| | |
| | | .in(BigStorageCageOutTask::getEndSlot, Const.OUT_TARGET_POSITION_ALL) |
| | | .eq(BigStorageCageOutTask::getTaskState, Const.BIG_STORAGE_OUT_NEW) |
| | | ); |
| | | List<String> outGlassId = bigStorageCageOutTasks.stream().map(BigStorageCageOutTask::getGlassId).collect(Collectors.toList()); |
| | | temperingGlassInfoService.remove( |
| | | new LambdaUpdateWrapper<TemperingGlassInfo>() |
| | | .in(TemperingGlassInfo::getGlassId, outGlassId) |
| | | ); |
| | | bigStorageCageDetailsService.update( |
| | | new LambdaUpdateWrapper<BigStorageCageDetails>() |
| | | .set(BigStorageCageDetails::getState, Const.GLASS_STATE_IN) |
| | | .eq(BigStorageCageDetails::getState, Const.GLASS_STATE_OUT_ING) |
| | | .in(BigStorageCageDetails::getGlassId, outGlassId) |
| | | ); |
| | | bigStorageCageOutTaskService.deleteTask(bigStorageCageOutTasks); |
| | | if(bigStorageCageOutTasks.size()>0){ |
| | | List<String> outGlassId = bigStorageCageOutTasks.stream().map(BigStorageCageOutTask::getGlassId).collect(Collectors.toList()); |
| | | temperingGlassInfoService.remove( |
| | | new LambdaUpdateWrapper<TemperingGlassInfo>() |
| | | .in(TemperingGlassInfo::getGlassId, outGlassId) |
| | | ); |
| | | bigStorageCageDetailsService.update( |
| | | new LambdaUpdateWrapper<BigStorageCageDetails>() |
| | | .set(BigStorageCageDetails::getState, Const.GLASS_STATE_IN) |
| | | .eq(BigStorageCageDetails::getState, Const.GLASS_STATE_OUT_ING) |
| | | .in(BigStorageCageDetails::getGlassId, outGlassId) |
| | | ); |
| | | bigStorageCageOutTaskService.deleteTask(bigStorageCageOutTasks); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<FlowCardDTO> selectFlowCardCount(){ |
| | | return baseMapper.selectFlowCardCount(); |
| | | } |
| | | } |