@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