From a9406b6b18ee5a8e29cad3248f46320a36ac9749 Mon Sep 17 00:00:00 2001
From: yyt <306727702@qq.com>
Date: 星期三, 21 二月 2024 00:19:44 +0800
Subject: [PATCH] 批量数据采集方法更新

---
 jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/service/impl/OmProductionOrdeInfoServiceImpl.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/service/impl/OmProductionOrdeInfoServiceImpl.java b/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/service/impl/OmProductionOrdeInfoServiceImpl.java
index d7e1aeb..8a0139e 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/service/impl/OmProductionOrdeInfoServiceImpl.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/service/impl/OmProductionOrdeInfoServiceImpl.java
@@ -47,6 +47,11 @@
     @Override
     public List<OmProductionOrdeInfo> selectOmProductionOrdeInfoList(OmProductionOrdeInfo omProductionOrdeInfo)
     {
+        if(omProductionOrdeInfo.getDateConditions()!=null){
+            String[] conditions = omProductionOrdeInfo.getDateConditions();
+            omProductionOrdeInfo.setStartTime(conditions[0]);
+            omProductionOrdeInfo.setEndTime(conditions[1]);
+        }
         return omProductionOrdeInfoMapper.selectOmProductionOrdeInfoList(omProductionOrdeInfo);
     }
 
@@ -60,8 +65,6 @@
     public int insertOmProductionOrdeInfo(OmProductionOrdeInfo omProductionOrdeInfo)
     {
         omProductionOrdeInfo.setCreateTime(DateUtils.getNowDate());
-        Integer streamNumber = omProductionOrdeInfoMapper.getMaxStreamNumber();
-        omProductionOrdeInfo.setStreamNumber(String.valueOf(streamNumber+1));
         return omProductionOrdeInfoMapper.insertOmProductionOrdeInfo(omProductionOrdeInfo);
     }
 

--
Gitblit v1.9.3