Commit c14f8ff7 zshaohui

没解析出来的过期时间,设置为null

1 个父辈 d2d78faf
...@@ -189,6 +189,8 @@ public class CodeResolve { ...@@ -189,6 +189,8 @@ public class CodeResolve {
if (barcodeFromRule.getProduceDate() != null) { if (barcodeFromRule.getProduceDate() != null) {
barcode.setExpireDate(cn.hutool.core.date.DateUtil.offsetMonth(barcodeFromRule.getProduceDate(),12)); barcode.setExpireDate(cn.hutool.core.date.DateUtil.offsetMonth(barcodeFromRule.getProduceDate(),12));
needUpdate = true; needUpdate = true;
} else {
barcode.setExpireDate(null);
} }
//设置label数量 //设置label数量
if (barcodeFromRule.getLabelAmount() != barcode.getLabelAmount()) { if (barcodeFromRule.getLabelAmount() != barcode.getLabelAmount()) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!