条码下线 判断修改时间 跟之前是否一样 一样时间加1s

tags/yfai-pcn-ext-v1.0
王杰 1 year ago
parent 4b41864be8
commit 2b0884f6a6

@ -58,7 +58,7 @@ public class ConvertBeanExt {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(MesPcnExtConstWords.DATETIME_FORMAT);
Date date = new Date();
String dateTime = simpleDateFormat.format(date);
if (dateTime.equals(bean.getModifyDatetime())) dateTime = getModifyDatetimeAdd1s(simpleDateFormat, date);
if (dateTime.compareTo(bean.getModifyDatetime()) <= 0) dateTime = getModifyDatetimeAdd1s(simpleDateFormat, date);
bean.setModifyUser(userName);
bean.setModifyDatetime(dateTime);
return bean;

Loading…
Cancel
Save