캐시, 포인트현황 기간검색 초기값 설정 추가
@b5e9b3ab0f307de9d3c894449b7f4cc2c682c627
--- src/main/java/itn/let/mjo/pay/web/MjonPayController.java
+++ src/main/java/itn/let/mjo/pay/web/MjonPayController.java
... | ... | @@ -61,6 +61,7 @@ |
| 61 | 61 |
import itn.com.cmm.LoginVO; |
| 62 | 62 |
import itn.com.cmm.service.EgovCmmUseService; |
| 63 | 63 |
import itn.com.cmm.service.FileVO; |
| 64 |
+import itn.com.cmm.util.MJUtil; |
|
| 64 | 65 |
import itn.com.cmm.util.RedirectUrlMaker; |
| 65 | 66 |
import itn.com.cmm.util.StringUtil; |
| 66 | 67 |
import itn.com.utl.fcc.service.EgovStringUtil; |
... | ... | @@ -254,6 +255,12 @@ |
| 254 | 255 |
mjonPayVO.setSearchCondition2("N");
|
| 255 | 256 |
} |
| 256 | 257 |
|
| 258 |
+ // 기간검색 설정 |
|
| 259 |
+ String beforeMonthDay = MJUtil.getBefore1MonthDate(); //한달 전 |
|
| 260 |
+ if (null == mjonPayVO.getSearchStartDate() || mjonPayVO.getSearchStartDate().equals("")) {
|
|
| 261 |
+ mjonPayVO.setSearchStartDate(beforeMonthDay); |
|
| 262 |
+ } |
|
| 263 |
+ |
|
| 257 | 264 |
List<MjonPayVO> resultList = mjonPayService.selectCashList(mjonPayVO); |
| 258 | 265 |
|
| 259 | 266 |
List<BigDecimal> cashList = new ArrayList<>(); |
... | ... | @@ -1387,6 +1394,12 @@ |
| 1387 | 1394 |
mjonPayVO.setSearchCondition2("N");
|
| 1388 | 1395 |
} |
| 1389 | 1396 |
|
| 1397 |
+ // 기간검색 설정 |
|
| 1398 |
+ String beforeMonthDay = MJUtil.getBefore1MonthDate(); //한달 전 |
|
| 1399 |
+ if (null == mjonPayVO.getSearchStartDate() || mjonPayVO.getSearchStartDate().equals("")) {
|
|
| 1400 |
+ mjonPayVO.setSearchStartDate(beforeMonthDay); |
|
| 1401 |
+ } |
|
| 1402 |
+ |
|
| 1390 | 1403 |
List<MjonPayVO> resultList = mjonPayService.selectPointList(mjonPayVO); |
| 1391 | 1404 |
model.addAttribute("resultList", resultList);
|
| 1392 | 1405 |
paginationInfo.setTotalRecordCount(resultList.size() > 0 ? ((MjonPayVO)resultList.get(0)).getTotCnt() : 0); |
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?