|
@ -2,6 +2,7 @@ package org.nl.wms.ext.mes.autotask; |
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
import cn.hutool.core.date.DateUtil; |
|
|
import cn.hutool.core.util.IdUtil; |
|
|
import cn.hutool.core.util.IdUtil; |
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
import lombok.SneakyThrows; |
|
|
import lombok.SneakyThrows; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.nl.system.service.notice.ISysNoticeService; |
|
|
import org.nl.system.service.notice.ISysNoticeService; |
|
@ -46,6 +47,9 @@ public class AutoSaveGdyInfo { |
|
|
mesGdyInfoDto.setDEVICE("1"); |
|
|
mesGdyInfoDto.setDEVICE("1"); |
|
|
mesGdyInfoDto.setCREATE_TM(DateUtil.now()); |
|
|
mesGdyInfoDto.setCREATE_TM(DateUtil.now()); |
|
|
mesGdyInfoDto.setOP_FLAG(GeneralDefinition.NO); |
|
|
mesGdyInfoDto.setOP_FLAG(GeneralDefinition.NO); |
|
|
|
|
|
if (ObjectUtil.isEmpty(mesGdyInfoDto.getBATCHNO())) { |
|
|
|
|
|
mesGdyInfoDto.setBATCHNO("-"); |
|
|
|
|
|
} |
|
|
try { |
|
|
try { |
|
|
mesRequestMapper.insertGdyMaterial(mesGdyInfoDto); |
|
|
mesRequestMapper.insertGdyMaterial(mesGdyInfoDto); |
|
|
successNum.incrementAndGet(); |
|
|
successNum.incrementAndGet(); |
|
|