|
|
|
@ -202,6 +202,7 @@ public class AppController extends BaseController
|
|
|
|
|
@PostMapping("/patient/add")
|
|
|
|
|
public AjaxResult addPatient(@RequestBody @Validated AppPatientReq appPatientReq)
|
|
|
|
|
{
|
|
|
|
|
logger.info("add patient param is {} ", appPatientReq);
|
|
|
|
|
TPatient tPatient = new TPatient();
|
|
|
|
|
BeanUtils.copyProperties(appPatientReq, tPatient);
|
|
|
|
|
if (UserConstants.NOT_UNIQUE.equals(tPatientService.checkPhoneUnique(tPatient.getPhone())))
|
|
|
|
@ -250,6 +251,7 @@ public class AppController extends BaseController
|
|
|
|
|
@PostMapping("/patient/modify")
|
|
|
|
|
public AjaxResult patientsWithModified(@RequestBody @Validated AppPatientReq appPatientReq)
|
|
|
|
|
{
|
|
|
|
|
logger.info("modify patient param is {} ", appPatientReq);
|
|
|
|
|
TPatient tPatient = new TPatient();
|
|
|
|
|
BeanUtils.copyProperties(appPatientReq, tPatient);
|
|
|
|
|
return AjaxResult.success(tPatientService.updateTPatient(tPatient));
|
|
|
|
|