zoujiajian 3 년 전
부모
커밋
1e1ff05a2c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

+ 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();