From d4338a37a236e14e426864d7a7506395a5f782f0 Mon Sep 17 00:00:00 2001 From: lsh <1> Date: 星期五, 12 一月 2024 21:49:13 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java index e673700..aecb3c1 100644 --- a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java @@ -20,6 +20,8 @@ import com.zy.common.model.enums.WorkNoType; import com.zy.common.service.CommonService; import com.zy.common.utils.NodeUtils; +import com.zy.system.entity.Config; +import com.zy.system.service.ConfigService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; @@ -64,6 +66,8 @@ private CommonService commonService; @Autowired private WrkMastService wrkMastService; + @Autowired + private ConfigService configService; @Value("${mes.inPath}") private String inpath; @@ -605,6 +609,15 @@ matNew.setMaktx(param.getPackName()); matNew.setManuDate(param.getRequestTime()); matNew.setDeadWarn(1440);//6灏忔椂 360鍒嗛挓 24灏忔椂 1440鍒嗛挓 + Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "JingZhiTime")); + if (!Cools.isEmpty(config)){ + try{ + int time = Integer.parseInt(config.getValue()); + matNew.setDeadWarn(time);//6灏忔椂 360鍒嗛挓 24灏忔椂 1440鍒嗛挓 + }catch (Exception e){ + + } + } matNew.setCreateBy(9999L);//9999琛ㄧずerp涓嬪彂 matNew.setCreateTime(now); matNew.setUpdateBy(9999L);//9999琛ㄧずerp涓嬪彂 -- Gitblit v1.9.1