Update BridgingDaftarOnlineController.java
Perbaikan data type untuk response body get no cm daftar pasien baru bpjs
This commit is contained in:
parent
a6194db854
commit
153f059a02
@ -679,10 +679,10 @@ public class BridgingDaftarOnlineController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/bpjs/patient/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
@RequestMapping(value = "/bpjs/patient/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
public ResponseEntity<Object> getPatientMedicalRecordId(@PathVariable Integer id) {
|
public ResponseEntity<String> getPatientMedicalRecordId(@PathVariable Integer id) {
|
||||||
PasienVO result = pasienService.findById(id);
|
PasienVO result = pasienService.findById(id);
|
||||||
if (result != null)
|
if (result != null)
|
||||||
return new ResponseEntity<>(result.getNoCm(), HttpStatus.OK);
|
return new ResponseEntity<>(result.getNoCm(), HttpStatus.OK);
|
||||||
return new ResponseEntity<>(result, HttpStatus.OK);
|
return new ResponseEntity<>(null, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user