
+++ src/main/java/com/ajin/ajinerp/common/vo/CommonVO.java
... | ... | @@ -0,0 +1,136 @@ |
1 | +package com.ajin.ajinerp.common.vo; | |
2 | +import java.sql.Timestamp; | |
3 | +import java.util.ArrayList; | |
4 | +import java.util.List; | |
5 | + | |
6 | +import lombok.Getter; | |
7 | +import lombok.Setter; | |
8 | + | |
9 | + | |
10 | + | |
11 | +/** | |
12 | + * @author 김성원 | |
13 | + * @since 2024.01.09 | |
14 | + * | |
15 | + * 공통 검색 VO 입니다.(상속받으세요) | |
16 | + */ | |
17 | +@Getter | |
18 | +@Setter | |
19 | +public class CommonVO { | |
20 | + | |
21 | + /**************************** 공통 ****************************/ | |
22 | + /** | |
23 | + * 검색조건 | |
24 | + */ | |
25 | + private String searchCondition = ""; | |
26 | + | |
27 | + /** | |
28 | + * 검색Keyword | |
29 | + */ | |
30 | + private String searchKeyword = ""; | |
31 | + | |
32 | + /** | |
33 | + * 검색Keyword | |
34 | + */ | |
35 | + private List<String> searchKeywordList = new ArrayList<String>(); | |
36 | + | |
37 | + /** | |
38 | + * 검색사용여부 | |
39 | + */ | |
40 | + private String searchUseYn = ""; | |
41 | + | |
42 | + /** | |
43 | + * 검색 시작일 | |
44 | + */ | |
45 | + private String startDate = ""; | |
46 | + | |
47 | + /** | |
48 | + * 검색 종료일 | |
49 | + */ | |
50 | + private String endDate = ""; | |
51 | + | |
52 | + /** | |
53 | + * 정렬 기준 (컬럼명) | |
54 | + */ | |
55 | + private String order = ""; | |
56 | + | |
57 | + /** | |
58 | + * 정렬 타입 | |
59 | + * true - ASC | |
60 | + * false - DESC | |
61 | + */ | |
62 | + private boolean isOrderASC = true; | |
63 | + | |
64 | + /** | |
65 | + * 현재페이지 | |
66 | + */ | |
67 | + private int currentPage = 1; | |
68 | + | |
69 | + /** | |
70 | + * 페이지갯수 | |
71 | + */ | |
72 | + private int perPage = 10; | |
73 | + | |
74 | + /** | |
75 | + * 총 개시물 수 | |
76 | + */ | |
77 | + private int totalRows; | |
78 | + | |
79 | + /** | |
80 | + * 페이징 사용 유무 | |
81 | + */ | |
82 | + private boolean isUsePaging = true; | |
83 | + | |
84 | + /** firstIndex */ | |
85 | + private int firstIndex = 1; | |
86 | + | |
87 | + /** lastIndex */ | |
88 | + private int lastIndex = 1; | |
89 | + | |
90 | + /** 페이지사이즈 */ | |
91 | + private int pageSize = 10; | |
92 | + | |
93 | + /** recordCountPerPage */ | |
94 | + private int recordCountPerPage = 10; | |
95 | + | |
96 | + | |
97 | + public boolean getIsUsePaging() { | |
98 | + return isUsePaging; | |
99 | + } | |
100 | + | |
101 | + public void setIsUsePaging(boolean isUsePaging) { | |
102 | + this.isUsePaging = isUsePaging; | |
103 | + } | |
104 | + /**************************** 공통 ****************************/ | |
105 | + | |
106 | + /**************************** 검색어 분할 ****************************/ | |
107 | + | |
108 | + | |
109 | + public void setSearchKeywordList(List<String> searchKeywordList) { | |
110 | + this.searchKeywordList = searchKeywordList; | |
111 | + } | |
112 | + /**************************** 검색어 분할 ****************************/ | |
113 | + | |
114 | + /**************************** 데이터베이스 별 페이징 ****************************/ | |
115 | + | |
116 | + | |
117 | + private int startIndex; | |
118 | + | |
119 | + /** | |
120 | + * 마지막 게시물의 인덱스 번호 (변환과정없음, 0부터 시작) | |
121 | + */ | |
122 | + private long limit = 0; | |
123 | + | |
124 | + | |
125 | + public void searchClear() { | |
126 | + searchCondition = ""; | |
127 | + searchKeyword = ""; | |
128 | + searchUseYn = ""; | |
129 | + startDate = ""; | |
130 | + endDate = ""; | |
131 | + order = ""; | |
132 | + } | |
133 | + | |
134 | + /**************************** 데이터베이스 별 페이징 ****************************/ | |
135 | + | |
136 | +} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?