日期格式变换

master
erzhongxmu 2020-05-13 18:00:37 +08:00
parent 5224cd5f0c
commit 1da6327829
1 changed files with 11 additions and 5 deletions

View File

@ -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);
}