批次号为空时插入库存出现空字符串

dev
anthonywj 2 years ago
parent 0dec5c2ed0
commit 9afe11946b

@ -1,5 +1,7 @@
package com.glxp.api.entity.basic;
import cn.hutool.core.util.StrUtil;
/**
* @author
* @date 2020/9/22.

@ -117,9 +117,13 @@ public class FilterUdiUtils {
batchNo = spilts[4];
if (spilts.length > 6) {
serialNo = spilts[5];
if (serialNo != null && serialNo.equals("")) {
serialNo = null;
}
if (StrUtil.isEmpty(batchNo)) {
batchNo = null;
}
if (StrUtil.isEmpty(serialNo)) {
serialNo = null;
}
}

Loading…
Cancel
Save