|
|
|
@ -254,19 +254,19 @@ public class PtyGroupQueryRepository{
|
|
|
|
|
// builder.and(cstmrDtl.memberName.eq(memberName));
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if(appAuth.equals("USER") || appAuth.equals("ROLE_USER")) { |
|
|
|
|
builder.and(bas.groupId.in( |
|
|
|
|
JPAExpressions |
|
|
|
|
.select(bas.groupId) |
|
|
|
|
.from(bas) |
|
|
|
|
.leftJoin(dtl) |
|
|
|
|
.on(bas.groupId.eq(dtl.groupId)) |
|
|
|
|
.where(bas.useYn.eq("Y")) |
|
|
|
|
.where(dtl.cstmrSno.eq(rq.getCstmrSno())) |
|
|
|
|
.where(dtl.groupAuthCd.eq("MASTER").or(dtl.groupAuthCd.eq("LEADER"))) |
|
|
|
|
|
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
|
// if(appAuth.equals("USER") || appAuth.equals("ROLE_USER")) {
|
|
|
|
|
// builder.and(bas.groupId.in(
|
|
|
|
|
// JPAExpressions
|
|
|
|
|
// .select(bas.groupId)
|
|
|
|
|
// .from(bas)
|
|
|
|
|
// .leftJoin(dtl)
|
|
|
|
|
// .on(bas.groupId.eq(dtl.groupId))
|
|
|
|
|
// .where(bas.useYn.eq("Y"))
|
|
|
|
|
// .where(dtl.cstmrSno.eq(rq.getCstmrSno()))
|
|
|
|
|
// .where(dtl.groupAuthCd.eq("MASTER").or(dtl.groupAuthCd.eq("LEADER")))
|
|
|
|
|
//
|
|
|
|
|
// ));
|
|
|
|
|
// }
|
|
|
|
|
if(!StringUtils.isEmpty(rq.getAprvYn())) { |
|
|
|
|
builder.and(dtl.aprvlYn.eq(rq.getAprvYn())); |
|
|
|
|
} |
|
|
|
|