Browse Source

repository 조건 수정

feature/auth
박재우 2 years ago
parent
commit
2b63efdcc8
  1. 1
      src/main/java/com/palnet/biz/api/anls/hstry/service/AnlsHstryService.java
  2. 3
      src/main/java/com/palnet/biz/jpa/repository/ctr/CtrCntrlQueryRepository.java

1
src/main/java/com/palnet/biz/api/anls/hstry/service/AnlsHstryService.java

@ -49,7 +49,6 @@ public class AnlsHstryService {
for(JwtGroupModel list : group) { for(JwtGroupModel list : group) {
if(rq.getGroupId().equals(list.getGroupId())) { if(rq.getGroupId().equals(list.getGroupId())) {
userAccount = list.getGroupAuthCd(); userAccount = list.getGroupAuthCd();
System.out.println(">>>>>>>" + userAccount);
} }
} }
List<AnlsHstryRsModel> returnList = query.listCntrlBasRs(rq, cstmrSno, userAccount); List<AnlsHstryRsModel> returnList = query.listCntrlBasRs(rq, cstmrSno, userAccount);

3
src/main/java/com/palnet/biz/jpa/repository/ctr/CtrCntrlQueryRepository.java

@ -164,10 +164,9 @@ public List<AnlsHstryRsModel> listCntrlBasRs(AnlsHstryGroupModel rq, int cstmrSn
if(userAccount.equals("USER")) { if(userAccount.equals("USER")) {
builder.and(qFltPlanBasEntity.cstmrSno.eq(cstmrSno)); builder.and(qFltPlanBasEntity.cstmrSno.eq(cstmrSno));
log.debug(" ===> USER "); builder.and(qComArcrftBasEntity.groupId.eq(rq.getGroupId()));
} else { } else {
builder.and(qComArcrftBasEntity.groupId.eq(rq.getGroupId())); builder.and(qComArcrftBasEntity.groupId.eq(rq.getGroupId()));
log.debug(" ===> ADMIN or CREATER ");
} }
if(rq.getStDate() != null) { if(rq.getStDate() != null) {
builder.and(qCntrlBasEntity.cntrlStDt.after(DateUtils.stringToDate(rq.getStDate()))); builder.and(qCntrlBasEntity.cntrlStDt.after(DateUtils.stringToDate(rq.getStDate())));

Loading…
Cancel
Save