From 220f7b818bb9399391830fbbb9fb2028a21b938f Mon Sep 17 00:00:00 2001 From: yyt <306727702@qq.com> Date: 星期三, 21 二月 2024 00:23:34 +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 db68977..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