This commit is contained in:
sungsu
2024-01-25 15:23:15 +09:00
parent 6ef270e05f
commit a5e71b9f02
5 changed files with 34 additions and 4 deletions

View File

@@ -235,6 +235,17 @@ public class StockController {
};
@GetMapping("/downloadExcelList2")
public void downlodeExcelList2(HttpServletResponse response) {
List<Map<String, Object>> dto = service.selectAll2();
System.out.println("엑셀 출력 확인 : : " + dto);
String excelFileName = "부족한 재고 파일";
String sheetName = "부족한 재고";
String[] columnName = {"제품명","카테고리","창고","재고수"};
excelDownlodeUtils.downloadStockExcelFile(excelFileName, response, sheetName, columnName, dto);
};
//서식 다운로드
@GetMapping("/downloadStockForm")
public void downlodeStockForm (HttpServletResponse response) throws IOException {

View File

@@ -10,6 +10,8 @@ import java.util.Map;
@Mapper
public interface StockMapper {
List<Map<String, Object>> selectAll();
List<Map<String, Object>> selectAll2();
int count(Map<String, Object> m);//검색 글 갯수

View File

@@ -146,6 +146,10 @@ public class StockService {
return mapper.selectAll();
}
public List<Map<String, Object>> selectAll2() {
return mapper.selectAll2();
}
//createProcess
public int checkandUpdateOrCreateProcess(StockDto dto){