From f119894e61a56d584c140b40baa6a4420dc8e8d6 Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期一, 15 一月 2024 20:21:21 +0800 Subject: [PATCH] 上传配方 --- jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java b/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java index 7e9648d..f74c05a 100644 --- a/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java +++ b/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java @@ -1,5 +1,6 @@ package com.jcdm.main.om.productionOrde.controller; +import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletResponse; @@ -25,6 +26,8 @@ import com.jcdm.common.enums.BusinessType; import com.jcdm.common.utils.poi.ExcelUtil; import com.jcdm.common.core.page.TableDataInfo; + +import static org.apache.commons.lang3.SystemUtils.getUserName; /** * 鐢熶骇宸ュ崟Controller @@ -103,7 +106,9 @@ bsOrderScheduling.setOrderNo(omProductionOrdeInfo.getWorkOrderNo()); bsOrderScheduling.setModel(omProductionOrdeInfo.getTypeZ()); bsOrderScheduling.setEngineNo(omProductionOrdeInfo.getTypeZ() + " "+dateTimeRule+ StringUtils.leftPad(String.valueOf(startCode),3, "0")); - bsOrderScheduling.setStatus("1"); + bsOrderScheduling.setProductionStatus("1"); + bsOrderScheduling.setOperator(getUserName()); +// bsOrderScheduling.setOperateTime(String.valueOf(new Date())); bsOrderSchedulingService.insertBsOrderScheduling(bsOrderScheduling); startCode ++; } -- Gitblit v1.9.3