관리자 문자전송 리스트 기본 검색 기간 변경 - 기본 검색 시작일자 한달전에서 하루전으로 변경
- 기본 검색 시작일자 한달전에서 하루전으로 변경
@09b05120390cd49e4f731e0b98cfcf60341d4c4c
--- src/main/java/itn/com/cmm/util/MJUtil.java
+++ src/main/java/itn/com/cmm/util/MJUtil.java
... | ... | @@ -279,6 +279,14 @@ |
| 279 | 279 |
return beforeMonthDay; |
| 280 | 280 |
} |
| 281 | 281 |
|
| 282 |
+ public static String getBefore1DayDate() throws Exception {
|
|
| 283 |
+ Calendar mon = Calendar.getInstance(); |
|
| 284 |
+ mon.add(Calendar.DAY_OF_MONTH , -1); |
|
| 285 |
+ String beforeMonthDay = new java.text.SimpleDateFormat("yyyy-MM-dd").format(mon.getTime());
|
|
| 286 |
+ |
|
| 287 |
+ return beforeMonthDay; |
|
| 288 |
+ } |
|
| 289 |
+ |
|
| 282 | 290 |
public static void main(String args[]) throws Exception {
|
| 283 | 291 |
System.out.println(new Date(System.currentTimeMillis())); |
| 284 | 292 |
System.out.println(checkHpNum("070-85326650"));
|
--- src/main/java/itn/let/mjo/msg/web/MjonMsgController.java
+++ src/main/java/itn/let/mjo/msg/web/MjonMsgController.java
... | ... | @@ -241,7 +241,7 @@ |
| 241 | 241 |
|
| 242 | 242 |
// 기간검색 설정 |
| 243 | 243 |
String toDay = MJUtil.getTodayDate(); //오늘 |
| 244 |
- String beforeMonthDay = MJUtil.getBefore1MonthDate(); //한달 전 |
|
| 244 |
+ String beforeMonthDay = MJUtil.getBefore1DayDate(); //하루 전 |
|
| 245 | 245 |
if (null == searchVO.getNtceBgnde() || searchVO.getNtceBgnde().equals("")) {
|
| 246 | 246 |
searchVO.setNtceBgnde(beforeMonthDay); |
| 247 | 247 |
//searchVO.setNtceEndde(toDay); |
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?