From 1da63278292bb7c615d032594b4234bab426ce12 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Wed, 13 May 2020 18:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F=E5=8F=98?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zzjee/wm/controller/WmInQmIController.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zzjee/wm/controller/WmInQmIController.java b/src/main/java/com/zzjee/wm/controller/WmInQmIController.java index 3447b367..601b018b 100644 --- a/src/main/java/com/zzjee/wm/controller/WmInQmIController.java +++ b/src/main/java/com/zzjee/wm/controller/WmInQmIController.java @@ -1015,15 +1015,21 @@ for (WmInQmIEntity wmInQmIEntity : wmInQmIso) { systemService.updateEntitie(mdGoodsEntity); } } - - } }catch (Exception e){ - + } + if(StringUtil.isNotEmpty(wmInQmI.getProData())){//8位日期转yyyy-mm-dd + try{ + if(StringUtil.getStringLen(wmInQmI.getProData())==8){ + String prodate = wmInQmI.getProData().substring(0,4)+"-"+ + wmInQmI.getProData().substring(4,6)+"-"+ + wmInQmI.getProData().substring(6,8); + wmInQmI.setProData(prodate); + } + }catch (Exception e){ + } } String id = wmInQmIService.save(wmInQmI).toString(); - - if("on".equals(ResourceUtil.getConfigByName("onestepup"))&&StringUtil.isNotEmpty(wmInQmI.getBinId())){ toup(id); }