|
|
|
@ -66,17 +66,17 @@ public class AnlsHstryService {
|
|
|
|
|
private JwtTokenUtil jwtTokenUtil; |
|
|
|
|
|
|
|
|
|
//비행이력현황 list
|
|
|
|
|
public ComnPagingRs<AnlsHstryModel> list(AnlsHstryGroupModel rq){ |
|
|
|
|
public ComnPagingRs<AnlsHstryRsModel> list(AnlsHstryGroupModel rq){ |
|
|
|
|
Integer cstmrSno = jwtTokenUtil.getCstmrSnoByToken(); |
|
|
|
|
List<JwtGroupModel> groupAuth = jwtTokenUtil.getGroupAuthByToken(); |
|
|
|
|
String appAuth = jwtTokenUtil.getUserAuthByToken(); |
|
|
|
|
ComnPagingRs<AnlsHstryModel> response = new ComnPagingRs<>(); |
|
|
|
|
ComnPagingRs<AnlsHstryRsModel> response = new ComnPagingRs<>(); |
|
|
|
|
Pageable pageable = PageRequest.of(rq.getPage()-1, rq.getRecord()); |
|
|
|
|
|
|
|
|
|
if("USER".equals(appAuth) || "ROLE_USER".equals(appAuth)) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
PageImpl<AnlsHstryModel> result = query.listCntrlBasRs(rq, pageable); |
|
|
|
|
PageImpl<AnlsHstryRsModel> result = query.listCntrlBasRs(rq, pageable); |
|
|
|
|
|
|
|
|
|
long total = query.countCntrlBasRs(rq, cstmrSno); |
|
|
|
|
long totalPage = total % rq.getRecord() > 0 ? (total/rq.getRecord()) + 1 : total/rq.getRecord(); |
|
|
|
|