Browse Source

승인관리 조건 수정

Test
qkr7828(박재우) 2 years ago
parent
commit
484faf5c98
  1. 26
      src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java

26
src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java

@ -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()));
}

Loading…
Cancel
Save