Browse Source

기체조회 수정

feature/auth
노승철 2 years ago
parent
commit
84f89a8cac
  1. 34
      src/main/java/com/palnet/biz/jpa/repository/pty/PtyDronQueryRepository.java

34
src/main/java/com/palnet/biz/jpa/repository/pty/PtyDronQueryRepository.java

@ -45,16 +45,16 @@ public class PtyDronQueryRepository{
if(!StringUtils.isEmpty(rq.getArcrftModelNm())) { if(!StringUtils.isEmpty(rq.getArcrftModelNm())) {
builder.and(bas.arcrftModelNm.like('%' + rq.getArcrftModelNm() + '%')); builder.and(bas.arcrftModelNm.like('%' + rq.getArcrftModelNm() + '%'));
} }
// if(!StringUtils.isEmpty(rq.getIdntfNum())) { if(!StringUtils.isEmpty(rq.getGroupId())) {
// builder.and(idnt.idntfNum.like('%' + rq.getArcrftModelNm() + '%')); builder.and(bas.groupId.eq(rq.getGroupId()));
// } }
if(!StringUtils.isEmpty(rq.getArcrftTypeCd())) { if(!StringUtils.isEmpty(rq.getArcrftTypeCd())) {
builder.and(bas.arcrftTypeCd.eq(rq.getArcrftTypeCd())); builder.and(bas.arcrftTypeCd.eq(rq.getArcrftTypeCd()));
} }
List<BasDronModel> queryResult = List<BasDronModel> result =
query.select(Projections.bean(BasDronModel.class , query.select(Projections.bean(BasDronModel.class ,
bas.groupId, bas.groupId,
bas.arcrftSno, bas.arcrftSno,
@ -80,15 +80,15 @@ public class PtyDronQueryRepository{
.orderBy(bas.createDt.desc()) .orderBy(bas.createDt.desc())
.fetch(); .fetch();
List<BasDronModel> result = new ArrayList<BasDronModel>(); // List<BasDronModel> result = new ArrayList<BasDronModel>();
//
for(BasDronModel model : queryResult) { // for(BasDronModel model : queryResult) {
// if(!StringUtils.isEmpty(model.getOwnerNm())) { //// if(!StringUtils.isEmpty(model.getOwnerNm())) {
// model.setOwnerNm(EncryptUtils.decrypt(model.getOwnerNm())); //// model.setOwnerNm(EncryptUtils.decrypt(model.getOwnerNm()));
// } //// }
//
result.add(model); // result.add(model);
} // }
return result; return result;
} }
@ -129,7 +129,7 @@ public class PtyDronQueryRepository{
/** /**
* 상세 조회 * 상세 조회
* @param rq * @param arcrftSno
* @return * @return
*/ */
public BasDronModel detail(int arcrftSno){ public BasDronModel detail(int arcrftSno){
@ -180,8 +180,8 @@ public class PtyDronQueryRepository{
/** /**
* 식별번호가 존해 하는지 여부체크 * 식별번호가 존해 하는지 여부체크
* @param cstmrSno * @param idntfNum
* @param groupId * @param
* @return * @return
*/ */
public boolean isNotIdntNum(String idntfNum) { public boolean isNotIdntNum(String idntfNum) {

Loading…
Cancel
Save