fix(ic): 借料入库-其它入库批次号校验-优化

This commit is contained in:
mzr 2025-09-05 18:41:12 +08:00
parent a94b6c7170
commit fd4acfa697
1 changed files with 25 additions and 24 deletions

View File

@ -11,6 +11,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import nc.bs.ic.pub.env.ICBSContext;
import nc.impl.pubapp.env.BSContext;
import nc.itf.ic.batch.IBatchCheck;
@ -265,7 +266,7 @@ public class BatchCheckImpl implements IBatchCheck {
} catch (BusinessException e) {
throw new RuntimeException(e);
}
if (!"".equals(typeCode) && typeCode.equals(head.getVtrantypecode())) {
if (typeCode != null && !"".equals(typeCode) && typeCode.equals(head.getVtrantypecode())) {
isBatchEmpty = false;
}
}