GiPyoo / inandout

KISA hackathon
0 stars 0 forks source link

Account Service 구현 #27

Open Bellroute opened 5 years ago

Bellroute commented 5 years ago
dadadamarine commented 5 years ago

자산관리창 요청-> api 가져오는 서비스 getAccountAPI -> 바뀐내용이 있으면(LocalDateTime으로 최신 비교해서 체크) -> 계산해서 가상계좌 분류된데서 출금하고 db에 저장

dadadamarine commented 5 years ago

TimeUtils.isNeedUpdate 병재 : isNeedUpdate( LocalDateTime userLatestTime , LocalDateTime accountLatestTime ){

// 업데이트 필요시 true // 필요 없을시 false }

dadadamarine commented 5 years ago

AccountService.입금(VirtualAccount from, VirtualAccount to, Long money){ // from계좌에서 money만큼빼기 // from계좌의 출금 history 생성 // to 계좌로 money만큼 더하기 // to 계좌의 입금 history 생성 }

출금도 상동