DownyCrake / project_221107

0 stars 0 forks source link

관리자 제품 관리 #3

Open DownyCrake opened 1 year ago

DownyCrake commented 1 year ago

제품 등록

DownyCrake commented 1 year ago

제품 수정

제품 수정시 file > null일때 Controller 에서 @RequestParam(value="file", required=false) required =false 체크 안했을 시 400에러

DownyCrake commented 1 year ago

ERROR

stock 작성중 500에러

mapper 오타 INSERT INTO `stock``

DownyCrake commented 1 year ago

성공시 document.location.reload(true); 화면 새로고침

DownyCrake commented 1 year ago

stock 수량을 input 박스에 value에 넣어 출력 > 바로 수정 가능 참조 >> https://semicolon-dev.tistory.com/48

 let thisRow = $(this).closest('tr'); 
let quantity = thisRow.find('td:eq(1)').find('input').val();    
    alert( quantity);

td:eq( 몇번째 td인지- 0부터 시작 )

DownyCrake commented 1 year ago

재고 0 처리시 에러 나옴

수정 stockcontroller 오타

DownyCrake commented 1 year ago

product 테이블에 exposure 추가

boolean 기본값 true 제품 검색 노출 허용 체크

DownyCrake commented 1 year ago

제품 노출 허용 체크 박스 클릭시

javascript 구문의 화면 새로고침으로 버튼 변경이 되지 않음 처리 속도 문제???

XXXXX ajax 오타. succ"s"ess

연속 클릭시 반응 안됨

화면 새로고침시 반응 div 만 새고로침 > 화면 전체 새로고침으로 변경으로 해결