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