Giter Site home page Giter Site logo

cafemate's Introduction

cafemate's People

Contributors

minjae-an avatar minsang-alt avatar

Watchers

 avatar

Forkers

minjae-an

cafemate's Issues

주문 리스트 출력을 위한 OrderService 함수 필요

OrderApi컨트롤러에서는

(주문ID,고객 아이디 혹은 별명,메뉴이름,수량,주문시간)을 서비스를 통해 받아야 합니다.

따라서 다음과 같은 쿼리문을 작성하여 OrderRepository와 OrderService를 작성하여 Dto로 넘겨주도록 만들어주세요

SELECT O.id AS 주문ID, C.customer_id AS 고객ID, C.alias AS 별명, M.name AS 메뉴이름, OM.amount AS 수량, O.orders_date AS 주문시간 FROM orders O JOIN customer C ON O.customer_id = C.id JOIN orders_menu OM ON O.id = OM.orders_id JOIN menu M ON OM.menu_id = M.id WHERE O.is_complete = FALSE ORDER BY O.orders_date ASC;

eMail과 password 필드 DB 타입 수정

목적

통상적으로 쓰이는 형식에 따라 기존 DB eMail, password 필드 타입 수정

작업 상세 내용

  • DB 스키마 재정의(각 필드 타입 변경)

Menu 엔티티의 registrationDate 필드 타입 Timestamp 로 변경

목적

코드 사이드와 DB의 CRUD 수행시 필드 값의 불일치 이슈로 인한 타입 변경

작업내용

Menu 엔티티와 관련 DTO 클래스의 registrationDate 필드를 기존의 LocalDateTime에서
Timestamp 형태로 변경하였다. DB에 값을 저장하였다가 코드 사이드에서 조회할 시
나노 초 단위가 올림된 형태로 나와, 불일치가 발생하는 오류가 존재하고 비즈니스 로직적으로
나노 초 단위 데이터는 그리 중요하지 않다고 판단하여 일괄적으로 수정하였다.

참고

https://velog.io/@jejualrock/TIMESTAMP-DATETIME

다음 글은 직접적 연관 없지만 추후에 성능 향상시 참고할 수 있을 듯 하여 첨부하였다.
https://cholol.tistory.com/541

주문 리스트 불러오기 이슈

is_complete가 1일때 order_List에는 주문완료가 된것이므로 findAllOrder에서 주문완료된것은 빼고 리스트에 포함해서 컨트롤러에 보내도록 수정 해주세요

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.