Skip to content

Commit

Permalink
진짜 insert끝
Browse files Browse the repository at this point in the history
  • Loading branch information
shoqying committed Dec 11, 2024
1 parent 61eff78 commit a36b15a
Showing 1 changed file with 27 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public void mainGET(Model model) throws Exception {
model.addAttribute("TDBYReceivingList", TDBYReceivingList);
}

// http://localhost:8088/receiving/history
@RequestMapping(value = "/history", method = RequestMethod.GET)
public void historyGET(@RequestParam(value = "startDate", required = false) String startDate,
@RequestParam(value = "endDate", required = false) String endDate,
Expand All @@ -69,6 +70,7 @@ public void historyGET(@RequestParam(value = "startDate", required = false) Stri
model.addAttribute("ReceivingList", ReceivingList);
}

// http://localhost:8088/receiving/search
@RequestMapping(value = "/search", method = RequestMethod.GET)
public void searchGET(@RequestParam(value = "startDate", required = false) String startDate,
@RequestParam(value = "endDate", required = false) String endDate,
Expand Down Expand Up @@ -109,31 +111,6 @@ public void searchGET(@RequestParam(value = "startDate", required = false) Strin
model.addAttribute("ReceivingList", ReceivingList);
}

// http://localhost:8088/receiving/scanner
@RequestMapping(value = "/scanner", method = RequestMethod.GET)
public String scannerGET(@RequestParam(value = "qrData", required = false) String qrData, Model model) throws Exception {
logger.info("scannerGET() 호출");
// QR 코드 데이터 처리 로직 (예: 데이터 저장, 검증 등)
logger.info("받은 QR 코드 데이터: " + qrData);

// 처리 결과를 JSP로 전달
model.addAttribute("qrData", qrData);

return "/receiving/scanner";
}

@RequestMapping(value = "/scanner", method = RequestMethod.POST)
public String scannePOST(@RequestParam(value = "qrData", required = false) String qrData, Model model) throws Exception {
logger.info("scannerGET() 호출");
// QR 코드 데이터 처리 로직 (예: 데이터 저장, 검증 등)
logger.info("받은 QR 코드 데이터: " + qrData);

// 처리 결과를 JSP로 전달
model.addAttribute("qrData", qrData);

return "/receiving/scanner";
}

// 새로고침
@RequestMapping(value = "/insert1", method = RequestMethod.POST)
public String insert1POST() throws Exception {
Expand Down Expand Up @@ -163,6 +140,31 @@ public String insert3POST() throws Exception {

return "redirect:/receiving/search";
}

// http://localhost:8088/receiving/scanner
@RequestMapping(value = "/scanner", method = RequestMethod.GET)
public String scannerGET(@RequestParam(value = "qrData", required = false) String qrData, Model model) throws Exception {
logger.info("scannerGET() 호출");
// QR 코드 데이터 처리 로직 (예: 데이터 저장, 검증 등)
logger.info("받은 QR 코드 데이터: " + qrData);

// 처리 결과를 JSP로 전달
model.addAttribute("qrData", qrData);

return "/receiving/scanner";
}

@RequestMapping(value = "/scanner", method = RequestMethod.POST)
public String scannePOST(@RequestParam(value = "qrData", required = false) String qrData, Model model) throws Exception {
logger.info("scannerGET() 호출");
// QR 코드 데이터 처리 로직 (예: 데이터 저장, 검증 등)
logger.info("받은 QR 코드 데이터: " + qrData);

// 처리 결과를 JSP로 전달
model.addAttribute("qrData", qrData);

return "/receiving/scanner";
}



Expand Down

0 comments on commit a36b15a

Please sign in to comment.