Update PasienService
Perbaikan hibernate query untuk list saat cek exists no bpjs calon pasien baru dari mobile jkn
This commit is contained in:
parent
3ebf039335
commit
cd2510e34a
@ -691,6 +691,6 @@ public class BridgingDaftarOnlineController {
|
|||||||
PasienVO result = pasienService.findByNoBpjs(noBpjs);
|
PasienVO result = pasienService.findByNoBpjs(noBpjs);
|
||||||
if (result != null)
|
if (result != null)
|
||||||
return new ResponseEntity<>(true, HttpStatus.OK);
|
return new ResponseEntity<>(true, HttpStatus.OK);
|
||||||
return new ResponseEntity<>(null, HttpStatus.OK);
|
return new ResponseEntity<>(false, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -233,13 +233,14 @@ public class PasienServiceImpl extends BaseVoServiceImpl implements PasienServic
|
|||||||
@Override
|
@Override
|
||||||
public PasienVO findByNoBpjs(String noBpjs) {
|
public PasienVO findByNoBpjs(String noBpjs) {
|
||||||
List<Pasien> data = pasienDao.findPasienByNoBpjs(noBpjs);
|
List<Pasien> data = pasienDao.findPasienByNoBpjs(noBpjs);
|
||||||
Pasien pasien = null;
|
if (data.size() > 0) {
|
||||||
if (data.size() != 0)
|
Pasien pasien = data.get(0);
|
||||||
pasien = data.get(0);
|
|
||||||
PasienVO pasienVO = new PasienVO();
|
PasienVO pasienVO = new PasienVO();
|
||||||
pasienVO = converterPasien.transferModelToVO(pasien, pasienVO);
|
pasienVO = converterPasien.transferModelToVO(pasien, pasienVO);
|
||||||
return pasienVO;
|
return pasienVO;
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
|
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user