Open Bellroute opened 5 years ago
자산관리창 요청-> api 가져오는 서비스 getAccountAPI -> 바뀐내용이 있으면(LocalDateTime으로 최신 비교해서 체크) -> 계산해서 가상계좌 분류된데서 출금하고 db에 저장
TimeUtils.isNeedUpdate 병재 : isNeedUpdate( LocalDateTime userLatestTime , LocalDateTime accountLatestTime ){
// 업데이트 필요시 true // 필요 없을시 false }
AccountService.입금(VirtualAccount from, VirtualAccount to, Long money){ // from계좌에서 money만큼빼기 // from계좌의 출금 history 생성 // to 계좌로 money만큼 더하기 // to 계좌의 입금 history 생성 }
출금도 상동