관리자 문자전송 리스트 기본 검색 기간 변경
- 기본 검색 시작일자 한달전에서 하루전으로 변경
This commit is contained in:
parent
1eb6068506
commit
09b0512039
@ -279,6 +279,14 @@ public final class MJUtil {
|
|||||||
return beforeMonthDay;
|
return beforeMonthDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String getBefore1DayDate() throws Exception {
|
||||||
|
Calendar mon = Calendar.getInstance();
|
||||||
|
mon.add(Calendar.DAY_OF_MONTH , -1);
|
||||||
|
String beforeMonthDay = new java.text.SimpleDateFormat("yyyy-MM-dd").format(mon.getTime());
|
||||||
|
|
||||||
|
return beforeMonthDay;
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String args[]) throws Exception {
|
public static void main(String args[]) throws Exception {
|
||||||
System.out.println(new Date(System.currentTimeMillis()));
|
System.out.println(new Date(System.currentTimeMillis()));
|
||||||
System.out.println(checkHpNum("070-85326650"));
|
System.out.println(checkHpNum("070-85326650"));
|
||||||
|
|||||||
@ -241,7 +241,7 @@ public class MjonMsgController {
|
|||||||
|
|
||||||
// 기간검색 설정
|
// 기간검색 설정
|
||||||
String toDay = MJUtil.getTodayDate(); //오늘
|
String toDay = MJUtil.getTodayDate(); //오늘
|
||||||
String beforeMonthDay = MJUtil.getBefore1MonthDate(); //한달 전
|
String beforeMonthDay = MJUtil.getBefore1DayDate(); //하루 전
|
||||||
if (null == searchVO.getNtceBgnde() || searchVO.getNtceBgnde().equals("")) {
|
if (null == searchVO.getNtceBgnde() || searchVO.getNtceBgnde().equals("")) {
|
||||||
searchVO.setNtceBgnde(beforeMonthDay);
|
searchVO.setNtceBgnde(beforeMonthDay);
|
||||||
//searchVO.setNtceEndde(toDay);
|
//searchVO.setNtceEndde(toDay);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user