|
|
@@ -121,14 +121,13 @@ public class GroupsRelationChangeServiceImpl implements GroupsRelationChangeServ
|
|
|
|
|
|
public void syncGroupsRelation(Long oriRelationId, GroupsRelation newRelation) {
|
|
|
GroupsRelation oriRelation = relationMapper.selectById(oriRelationId);
|
|
|
- relationClearService.clearTicket(oriRelation, UserTicketClearedRecord.Source.change_ticket);
|
|
|
-
|
|
|
Long newRelationId = newRelation.getId();
|
|
|
BeanUtil.copyProperties(oriRelation, newRelation);
|
|
|
newRelation.setId(newRelationId);
|
|
|
newRelation.setCreatedTime(null);
|
|
|
newRelation.setUpdateTime(null);
|
|
|
relationMapper.updateById(newRelation);
|
|
|
+ relationClearService.clearTicket(oriRelation, UserTicketClearedRecord.Source.change_ticket);
|
|
|
OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.eq(OrderDon::getRelationId, oriRelationId)
|
|
|
.eq(OrderDon::getUserId, newRelation.getUserId())
|