Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
2025-11-27 18:13:56 +08:00

View File

@@ -99,6 +99,7 @@
ConsInfo consInfo;
if (StrUtil.isBlank(entity.getConId())) {
consInfo = consInfoMapper.selectOneByQuery(new QueryWrapper().like(ConsInfo::getConName, entity.getConName())
.eq(ConsInfo::getConUnit, entity.getUnitName())
.eq(ConsInfo::getShopId, shopId).limit(1));
entity.setConId(consInfo == null ? null : consInfo.getId().toString());
consStockFlow.setConId(consInfo == null ? null : consInfo.getId());