관리자 문자전송 리스트 기본 검색 기간 변경

- 기본 검색 시작일자 한달전에서 하루전으로 변경
This commit is contained in:
rosewiper 2024-01-26 10:50:48 +09:00
parent 1eb6068506
commit 09b0512039
2 changed files with 9 additions and 1 deletions

View File

@ -279,6 +279,14 @@ public final class MJUtil {
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 {
System.out.println(new Date(System.currentTimeMillis()));
System.out.println(checkHpNum("070-85326650"));

View File

@ -241,7 +241,7 @@ public class MjonMsgController {
// 기간검색 설정
String toDay = MJUtil.getTodayDate(); //오늘
String beforeMonthDay = MJUtil.getBefore1MonthDate(); //한달
String beforeMonthDay = MJUtil.getBefore1DayDate(); //하루
if (null == searchVO.getNtceBgnde() || searchVO.getNtceBgnde().equals("")) {
searchVO.setNtceBgnde(beforeMonthDay);
//searchVO.setNtceEndde(toDay);