zoujiajian 3 years ago
parent
commit
1e1ff05a2c

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -220,7 +220,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 		}
 		int update = groupsRelationMapper.update(null, Wrappers.lambdaUpdate(GroupsRelation.class)
 				.set(GroupsRelation::getAccount, email)
-				.isNull(GroupsRelation::getAccount)
+				.and(qr -> qr.isNull(GroupsRelation::getAccount).or().eq(GroupsRelation::getAccount, StrUtil.EMPTY))
 				.eq(GroupsRelation::getId, relationId));
 		if (update > 0) {
 			Long goodsId = relation.getGoodsId();