fix:用户调岗
This commit is contained in:
1 parent
03621c3d05
commit
c519331054
3 files changed
+12
No files matched your search
+10
@@ -36,10 +36,13 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.context.request.RequestAttributes;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* 人员调动表
|
||||
@@ -56,6 +59,7 @@ public class SysUserTransactionServiceImpl extends ServiceImpl<SysUserTransactio
|
||||
|
||||
private final RemoteFlowEngineService remoteFlowEngineService;
|
||||
private final RemoteWalletThirdZyService remoteWalletThirdZyService;
|
||||
private final RemoteWalletService remoteWalletService;
|
||||
|
||||
private final FlowUtil flowUtil;
|
||||
|
||||
@@ -207,6 +211,12 @@ public class SysUserTransactionServiceImpl extends ServiceImpl<SysUserTransactio
|
||||
// 通知正元
|
||||
remoteWalletThirdZyService.syncUserById(detail.getUserId());
|
||||
}
|
||||
// 通知钱包进行相关修改
|
||||
RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes();
|
||||
CompletableFuture.runAsync(() -> {
|
||||
RequestContextHolder.setRequestAttributes(requestAttributes);
|
||||
remoteWalletService.userChange(detail.getUserId(), Boolean.FALSE);
|
||||
});
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
+1
@@ -48,6 +48,7 @@ public interface RemoteWalletService {
|
||||
@GetMapping("/wallet-manage/del-wallet")
|
||||
R<Boolean> delWallet(@RequestParam("userIds") List<Long> userIds);
|
||||
|
||||
@NoToken
|
||||
@GetMapping("/wallet-manage/user-change")
|
||||
R<Boolean> userChange(@RequestParam Long userId, @RequestParam Boolean isDel);
|
||||
|
||||
|
||||
+1
@@ -121,6 +121,7 @@ public class WalletManageController {
|
||||
return R.ok(walletManageService.delWalletByUserIds(userIds));
|
||||
}
|
||||
|
||||
@Inner
|
||||
@GetMapping("/user-change")
|
||||
public R<Boolean> userChange(@RequestParam Long userId, @RequestParam Boolean isDel) {
|
||||
walletManageService.userChange(userId, isDel);
|
||||
|
||||
Reference in new issue
Block a user