hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java
@@ -1,5 +1,6 @@ package com.mes.uppattenusage.service.impl; import cn.hutool.core.collection.CollectionUtil; import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -99,7 +100,14 @@ @Override public void saveUpPattenUsage(List<UpPattenUsage> upPattenUsage) { this.saveBatch(upPattenUsage); if (CollectionUtil.isEmpty(upPattenUsage)){ return; } String engineerId = upPattenUsage.get(0).getEngineeringId(); int count = this.count(new LambdaQueryWrapper<UpPattenUsage>().eq(UpPattenUsage::getEngineeringId, engineerId)); if (count <=0){ this.saveBatch(upPattenUsage); } //保存原片使用详情表 } hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/service/HollowGlassOutRelationInfoService.java
@@ -14,5 +14,7 @@ HollowGlassOutRelationInfo receiveTask(String flowCardId, int cell, int totalPairQuantity); HollowGlassOutRelationInfo forceOutGlass(String flowCardId, int cell, int totalPairQuantity); Boolean dispatchHollowSwitch(Boolean flag); } hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassOutRelationInfoServiceImpl.java
@@ -12,6 +12,7 @@ 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; @@ -38,6 +39,9 @@ @Resource HollowGlassQueueInfoService hollowGlassQueueInfoService; @Resource RedisUtil redisUtil; @Override public HollowGlassOutRelationInfo receiveTask(String flowCardId, int cell, int totalPairQuantity) { return childrenTask(flowCardId,cell,totalPairQuantity,0); @@ -48,6 +52,12 @@ return childrenTask(flowCardId,cell,totalPairQuantity,1); } @Override public Boolean dispatchHollowSwitch(Boolean flag) { redisUtil.setCacheObject("dispatchHollowSwitch", flag); return redisUtil.getCacheObject("dispatchHollowSwitch"); } private HollowGlassOutRelationInfo childrenTask(String flowCardId, int cell, int totalPairQuantity,int isForce) { GlassInfo glassInfo = glassInfoService.getOne(new LambdaQueryWrapper<GlassInfo>().eq(GlassInfo::getFlowCardId, flowCardId).last("limit 1"));