|
@@ -401,16 +401,16 @@ public class PchReqService extends CommonService {
|
401
|
401
|
/*
|
402
|
402
|
구매요청 그리드 리스트 조회
|
403
|
403
|
*/
|
404
|
|
- public GridResponse selectPchReqPoTargetGridList(String sBrandId, String fromDt, String toDt, String sSpplyId, String sWhsId, String sItemNm, GridRequest gridRequest) throws Exception {
|
|
404
|
+ public GridResponse selectPchReqPoTargetGridList(String sBrandId, String fromDt, String toDt, String sSpplyId, String sWhsId, String sItemNm , String sDlvDvsn, GridRequest gridRequest) throws Exception {
|
405
|
405
|
int gridPage = gridRequest.getGridPage();
|
406
|
406
|
int gridSize = gridRequest.getGridSize();
|
407
|
407
|
|
408
|
408
|
fromDt = fromDt == null ? null : fromDt.replace(".", "");
|
409
|
409
|
toDt = toDt == null ? null : toDt.replace(".", "");
|
410
|
410
|
|
411
|
|
- int gridRecords = pchReqMapper.selectPchReqPoTargetGridCnt( sBrandId,fromDt, toDt, sSpplyId, sWhsId, sItemNm );
|
|
411
|
+ int gridRecords = pchReqMapper.selectPchReqPoTargetGridCnt( sBrandId,fromDt, toDt, sSpplyId, sWhsId, sItemNm , sDlvDvsn);
|
412
|
412
|
int gridTotal = fnCalculateGridTotal(gridSize, gridRecords);
|
413
|
|
- List<PchReqBaseInfoEntity> entities = pchReqMapper.selectPchReqPoTargetGridList( sBrandId,fromDt, toDt, sSpplyId, sWhsId, sItemNm, gridRequest);
|
|
413
|
+ List<PchReqBaseInfoEntity> entities = pchReqMapper.selectPchReqPoTargetGridList( sBrandId,fromDt, toDt, sSpplyId, sWhsId, sItemNm, sDlvDvsn, gridRequest);
|
414
|
414
|
List<Object> gridRows = entities.stream()
|
415
|
415
|
.map(m -> PchReqPoTargetSearchListResponse.builder()
|
416
|
416
|
.viewCd("R")
|