Преглед на файлове

[진료관리 상세] 증상, 메모 엑셀 다운로드시, 날짜 asc 적용.

sjpark преди 4 години
родител
ревизия
5c06d8a90d
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/main/java/com/lemon/lifecenter/controller/ClinicController.java

+ 4 - 2
src/main/java/com/lemon/lifecenter/controller/ClinicController.java

@@ -572,7 +572,8 @@ public class ClinicController extends LifeCenterController {
         cell17.setCellValue("기타증상");
         cell18.setCellValue("기록자");
         
-        for (PatientSymptomSimDTO dto : data) {
+        for (int index = data.size() - 1; index >= 0; index--) {
+        	PatientSymptomSimDTO dto = data.get(index);
             row = sheet1.createRow(i);
             cell1 = row.createCell(0);
             cell2 = row.createCell(1);
@@ -702,7 +703,8 @@ public class ClinicController extends LifeCenterController {
         cell2.setCellValue("내용");
         cell3.setCellValue("기록자");
         
-        for (PatientMemoDTO dto : data) {
+        for (int index = data.size() - 1; index >= 0; index--) {
+        	PatientMemoDTO dto = data.get(index);
             row = sheet1.createRow(i);
             cell1 = row.createCell(0);
             cell2 = row.createCell(1);