修复bug
This commit is contained in:
@@ -13,6 +13,7 @@ import com.industry.common.plc.PLCSystemData;
|
||||
import com.industry.common.utils.DateUtils;
|
||||
|
||||
import com.industry.common.utils.Threads;
|
||||
import com.industry.work.domain.IndustryBatch;
|
||||
import com.industry.work.domain.IndustryMaterial;
|
||||
import com.industry.work.domain.IndustryStep;
|
||||
import com.industry.work.domain.IndustryTechnology;
|
||||
@@ -444,8 +445,17 @@ public class IndustryStepServiceImpl implements IIndustryStepService {
|
||||
|
||||
// 将状态改为了轧制中
|
||||
List<IndustryMaterialVo> successList = industryMaterialService.resourceToWorkAndCreateStep(industryMaterial);
|
||||
|
||||
|
||||
if (Objects.nonNull(successList) && !successList.isEmpty()) {
|
||||
|
||||
// 强行对齐batch数据,避免batch出现比实际多的情况导致开始轧制失败
|
||||
IndustryBatch industryBatch = new IndustryBatch();
|
||||
industryBatch.setId(industryMaterial.getBatchId());
|
||||
industryBatch.setBatchSize((long) successList.size());
|
||||
industryBatchService.updateIndustryBatch(industryBatch);
|
||||
|
||||
|
||||
for (IndustryMaterialVo success : successList) {
|
||||
// 进入这里说明工艺没问题接下里根据工艺表创建道次
|
||||
// 判断当前是粗轧还是精轧
|
||||
|
||||
Reference in New Issue
Block a user