-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rest_java_combine' into bugfix_combine
- Loading branch information
Showing
3 changed files
with
170 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
jmt_webapp/src/main/java/dao/test/ExpendtrExcutTestDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package dao.test; | ||
|
||
import java.sql.Date; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import dao.ExpendtrExcutI; | ||
import entity.ExpendtrExcut; | ||
import entity.Organization; | ||
import entity.Place; | ||
|
||
public class ExpendtrExcutTestDAO implements ExpendtrExcutI { | ||
|
||
|
||
private ExpendtrExcutTestDAO() { } | ||
|
||
public static ExpendtrExcutTestDAO getInstance() { | ||
return InstHolder.INSTANCE; | ||
} | ||
|
||
private static class InstHolder { | ||
public static final ExpendtrExcutTestDAO INSTANCE = new ExpendtrExcutTestDAO(); | ||
} | ||
|
||
@Override | ||
public List<ExpendtrExcut> getPlaceTopTen(Organization deptDiv, Organization govofcDiv, Organization hgdeptDiv, | ||
Organization dept, Date startDate, Date endDate) { | ||
// TODO Auto-generated method stub | ||
|
||
return null; | ||
} | ||
|
||
@Override | ||
public List<ExpendtrExcut> getPlaceTopTen(Organization deptDiv, Organization govofcDiv, Organization hgdeptDiv, | ||
Organization dept) { | ||
|
||
// Place place = new Place("0000", "앗싸곱창", 623); | ||
// ExpendtrExcut exp = new ExpendtrExcut(deptDiv, govofcDiv, hgdeptDiv , dept, "2015",222232, place); | ||
// Place place1 = new Place("0001", "교촌치킨", 232); | ||
// ExpendtrExcut exp1 = new ExpendtrExcut(deptDiv, govofcDiv, hgdeptDiv , dept, "2019",12222, place1); | ||
// Place place2 = new Place("0002", "수원왕갈비", 9233); | ||
// ExpendtrExcut exp2 = new ExpendtrExcut(deptDiv, govofcDiv, hgdeptDiv , dept, "2020",123222, place2); | ||
// Place place3 = new Place("0003", "찌개지존", 213); | ||
// ExpendtrExcut exp3 = new ExpendtrExcut(deptDiv, govofcDiv, hgdeptDiv , dept, "2017",11222, place3); | ||
// Place place4 = new Place("0004", "아주캠프", 234); | ||
// ExpendtrExcut exp4 = new ExpendtrExcut(deptDiv, govofcDiv, hgdeptDiv , dept, "2018",434122, place4); | ||
// List<ExpendtrExcut> list = new ArrayList<>(); | ||
// list.add(exp); | ||
// list.add(exp1); | ||
// list.add(exp2); | ||
// list.add(exp3); | ||
// list.add(exp4); | ||
|
||
|
||
// return list; | ||
return null; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters