@ -272,7 +272,7 @@ public class IoCodeTempController extends BaseController {
checkSuccess = false;
lostMsg = lostMsg + ",失效日期";
}
if (!checkUdi.getAllowNoSerial() && StrUtil.isEmpty(udiEntity.getSerialNo())
if (checkUdi.getAllowNoSerial()!=null && !checkUdi.getAllowNoSerial() && StrUtil.isEmpty(udiEntity.getSerialNo())
) {
lostMsg = lostMsg + ",序列号";