上菜时间完善

This commit is contained in:
张松
2025-11-27 14:16:18 +08:00
parent 3718d5e5b5
commit b5239368f5

View File

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