|
@@ -359,13 +359,6 @@ public class ClinicController extends LifeCenterController {
|
|
|
public @ResponseBody String insertPhrDataAPI(@ModelAttribute("dto") final PatientPHRHistoryDTO dto) {
|
|
|
|
|
|
try {
|
|
|
- SimpleDateFormat format = new SimpleDateFormat ( "yyyy-MM-dd HH:mm");
|
|
|
- Date time = new Date();
|
|
|
- String recordedDate = format.format(time);
|
|
|
-
|
|
|
- if (dto.getRecordedDate() == null) {
|
|
|
- dto.setRecordedDate(recordedDate);
|
|
|
- }
|
|
|
phrService.insertPHR(dto);
|
|
|
|
|
|
if (dto.getPhrValueExtra() != null) {
|
|
@@ -380,9 +373,6 @@ public class ClinicController extends LifeCenterController {
|
|
|
if (dto.getRecordedDate() != null) {
|
|
|
pulseRateDto.setRecordedDate(dto.getRecordedDate());
|
|
|
}
|
|
|
- else {
|
|
|
- pulseRateDto.setRecordedDate(recordedDate);
|
|
|
- }
|
|
|
phrService.insertPHR(pulseRateDto);
|
|
|
}
|
|
|
|