feat:消费机更新

feat:人员调用钱包部门不调动的bug
This commit is contained in:
dzc committed 2026-09-09 11:56:03 +08:00
1 parent 1c86c227ee
commit 2ca14aa1e0
38 files changed
+1903 -35

No files matched your search

@@ -481,8 +481,11 @@ public class WalletManageServiceImpl extends ServiceImpl<WalletManageMapper, Wal
}
}
/**
* 此方法不能加事务:方法内的正元同步等远程调用失败时会把已执行的钱包部门修改整体回滚,
* 造成"用户部门已改、钱包部门未改";两条 update 各自单语句提交即可保证原子性。
*/
@Override
@Transactional(rollbackFor = Exception.class)
public void userChange(Long userId, Boolean isDel) {
if (ObjectUtil.isEmpty(userId)) return;
if (ObjectUtil.isEmpty(isDel)) return;