충전중 정보조회 수정
This commit is contained in:
@@ -89,7 +89,7 @@ public class RechgingListService extends BaseService<RechgingList, Long, Rechgin
|
||||
rst = addWhere(rst, srch.getMemAuthInputNo(), RechgingListSpecification.memAuthInputNo(srch.getMemAuthInputNo()));
|
||||
rst = addWhere(rst, srch.getCreditPPayTrxNo(), RechgingListSpecification.creditPPayTrxNo(srch.getCreditPPayTrxNo()));
|
||||
rst = addWhere(rst, srch.getCreditPPayTrxDt(), RechgingListSpecification.creditPPayTrxDt(srch.getCreditPPayTrxDt()));
|
||||
rst = addWhere(rst, srch.getRechgSdt(), RechgingListSpecification.rechgSdt(srch.getRechgSdt()));
|
||||
rst = addWhere(rst, srch.getRechgSdt(), RechgingListSpecification.rechgSdtBetween(srch.getRechgSdt()));
|
||||
rst = addWhere(rst, srch.getPayType(), RechgingListSpecification.payType(srch.getPayType()));
|
||||
return rst;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package net.jwsi.jcms.vpp.rechgingList;
|
||||
import net.jwsi.jcms.base.BaseSpecification;
|
||||
import net.jwsi.jcms.utils.StrUtil;
|
||||
import org.springframework.data.jpa.domain.Specification;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
public class RechgingListSpecification extends BaseSpecification {
|
||||
|
||||
@@ -34,10 +35,22 @@ public class RechgingListSpecification extends BaseSpecification {
|
||||
return (root, query, cb) -> cb.like(root.get("creditPPayTrxDt"), StrUtil.sqlLikeParam(creditPPayTrxDt));
|
||||
}
|
||||
|
||||
public static Specification<RechgingList> rechgSdt(String rechgSdt) {
|
||||
return (root, query, cb) -> cb.like(root.get("rechgSdt"), StrUtil.sqlLikeParam(rechgSdt));
|
||||
public static Specification<RechgingList> rechgSdtBetween(String rechgSdt) {
|
||||
return (root, query, cb) -> {
|
||||
// 날짜 파라미터가 없으면 검색 조건에서 제외 (null 반환)
|
||||
if (!StringUtils.hasText(rechgSdt)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// 예: "2026-07-31" -> "2026-07-31 00:00:00" ~ "2026-07-31 23:59:59"
|
||||
String startDateTime = rechgSdt.trim() + " 00:00:00";
|
||||
String endDateTime = rechgSdt.trim() + " 23:59:59";
|
||||
|
||||
return cb.between(root.get("rechgSdt"), startDateTime, endDateTime);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public static Specification<RechgingList> payType(String payType) {
|
||||
return (root, query, cb) -> cb.like(root.get("payType"), StrUtil.sqlLikeParam(payType));
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
<input type="text" id="chgrIdLike" name="chgrIdLike" class="form-control" placeholder="충전기 ID 입력" maxlength="50">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 pb-1">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text" style="width:300px">플러그 타입</span>
|
||||
<input type="text" id="plugTypeLike" name="plugTypeLike" class="form-control" placeholder="플러그 타입 입력" maxlength="50">
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-lg-4 col-sm-6 col-xs-12 pb-1">-->
|
||||
<!-- <div class="input-group">-->
|
||||
<!-- <span class="input-group-text" style="width:300px">플러그 타입</span>-->
|
||||
<!-- <input type="text" id="plugTypeLike" name="plugTypeLike" class="form-control" placeholder="플러그 타입 입력" maxlength="50">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 pb-1">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text" style="width:300px">회원카드번호</span>
|
||||
@@ -48,16 +48,16 @@
|
||||
<input type="text" id="creditPPayTrxNoLike" name="creditPPayTrxNoLike" class="form-control" placeholder="신용카드 승인번호 입력" maxlength="50">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 pb-1">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text" style="width:300px">신용카드 승인일시</span>
|
||||
<input type="text" id="creditPPayTrxDtLike" name="creditPPayTrxDtLike" class="form-control" placeholder="신용카드 승인일시 입력" maxlength="50">
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-lg-4 col-sm-6 col-xs-12 pb-1">-->
|
||||
<!-- <div class="input-group">-->
|
||||
<!-- <span class="input-group-text" style="width:300px">신용카드 승인일시</span>-->
|
||||
<!-- <input type="text" id="creditPPayTrxDtLike" name="creditPPayTrxDtLike" class="form-control" placeholder="신용카드 승인일시 입력" maxlength="50">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 pb-1">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text" style="width:300px">충전 시작일시</span>
|
||||
<input type="text" id="rechgSdtLike" name="rechgSdtLike" class="form-control" placeholder="충전 시작일시 입력" maxlength="50">
|
||||
<input type="date" id="rechgSdtLike" name="rechgSdtLike" class="form-control" placeholder="충전 시작일시 입력" maxlength="50">
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-lg-4 col-sm-6 col-xs-12 pb-1">-->
|
||||
@@ -66,12 +66,17 @@
|
||||
<!-- <input type="text" id="rechgRemainTimeLike" name="rechgRemainTimeLike" class="form-control" placeholder="충전 잔여 시간 입력" maxlength="50">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-lg-4 col-sm-6 col-xs-12 pb-1">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text" style="width:300px">결제타입</span>
|
||||
<input type="text" id="payTypeLike" name="payTypeLike" class="form-control" placeholder="결제타입 입력" maxlength="50">
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-lg-4 col-sm-6 col-xs-12 pb-1">-->
|
||||
<!-- <div class="input-group">-->
|
||||
<!-- <span class="input-group-text" style="width:300px">결제타입</span>-->
|
||||
<!-- <select id="payType" name="payType" class="form-select">-->
|
||||
<!-- <option value="">전체</option>-->
|
||||
<!-- <option value="회원카드">회원카드</option>-->
|
||||
<!-- <option value="신용카드">신용카드</option>-->
|
||||
<!-- <option value="무과금">무과금</option>-->
|
||||
<!-- </select>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
<div id="searchBoxFooter">
|
||||
|
||||
Reference in New Issue
Block a user