| | |
| | | import com.mes.hollow.service.HollowGlassOutRelationInfoService; |
| | | import com.mes.hollowqueue.entity.HollowGlassQueueInfo; |
| | | import com.mes.hollowqueue.service.HollowGlassQueueInfoService; |
| | | import com.mes.utils.RedisUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | @Resource |
| | | HollowGlassQueueInfoService hollowGlassQueueInfoService; |
| | | |
| | | @Resource |
| | | RedisUtil redisUtil; |
| | | |
| | | @Override |
| | | public HollowGlassOutRelationInfo receiveTask(String flowCardId, int cell, int totalPairQuantity) { |
| | | return childrenTask(flowCardId,cell,totalPairQuantity,0); |
| | |
| | | @Override |
| | | public HollowGlassOutRelationInfo forceOutGlass(String flowCardId, int cell, int totalPairQuantity) { |
| | | return childrenTask(flowCardId,cell,totalPairQuantity,1); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean dispatchHollowSwitch(Boolean flag) { |
| | | redisUtil.setCacheObject("dispatchHollowSwitch", flag); |
| | | return redisUtil.getCacheObject("dispatchHollowSwitch"); |
| | | } |
| | | |
| | | |
| | |
| | | info.setTotalLayer(glassInfo.getTotalLayer()); |
| | | info.setState(Const.HOLLOW_FLOW_CARD_START); |
| | | info.setTotalPairQuantity(totalPairQuantity); |
| | | this.save(info); |
| | | List<HollowBigStorageCageDetails> hollowBigStorageCageDetailsList = hollowBigStorageCageDetailsService.queryOutGlassList(flowCardId, cell); |
| | | int isPairCount = glassInfo.getTotalLayer() * totalPairQuantity; |
| | | List<HollowGlassQueueInfo> hollowQueues = new ArrayList<>(); |
| | |
| | | } |
| | | } |
| | | hollowGlassQueueInfoService.saveBatch(hollowQueues); |
| | | this.save(info); |
| | | return info; |
| | | } |
| | | } |