planin url 관련 버그 수정

This commit is contained in:
Suh
2024-01-19 22:14:52 +09:00
parent 6641e4ac9b
commit 04392168ba
4 changed files with 9 additions and 9 deletions

View File

@@ -112,9 +112,9 @@ public class PlanInController {
// 엑셀 다운로드
@GetMapping("/qr/{id}")
@ResponseBody
public String qr(@PathVariable("id")String id, HttpServletResponse response)
public String qr(@PathVariable("id")String qrHash, HttpServletResponse response)
{
List<PlanInDto> list = planinservice.selectByUrl(id);
List<PlanInDto> list = planinservice.selectByQRHash(qrHash);
Utils.makePlanInExcel(list, response);

View File

@@ -16,7 +16,7 @@ public interface PlanInMapper {
List<PlanInDto> selectById(PlanInDto dto);
List<PlanInDto> selectByUrl(String id);
List<PlanInDto> selectByQRHash(String qrHash);
int deleteById(PlanInDto dto);

View File

@@ -45,9 +45,9 @@ public class PlanInService {
return mapper.delete(dto);
}
List<PlanInDto> selectByUrl(String id) {
List<PlanInDto> selectByQRHash(String qrHash) {
return mapper.selectByUrl(id);
return mapper.selectByQRHash(qrHash);
}