@Autowired
private TransactionTemplate transactionTemplate;ide
this.transactionTemplate.execute(new TransactionCallback<Object>() {
@Override
public Object doInTransaction(TransactionStatus status) {
// 要置为默认地址,要先把其余地址置为非默认
buyGroupDeliveryAddressDao.updateIsDefautToFalseByDeleteStatusAndUserId(false, getUserId(openid));
return status;
}
});this