|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.ruoyi.web.controller.api;
|
|
|
|
package com.ruoyi.web.controller.api;
|
|
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
|
|
|
import com.ruoyi.common.constant.UserConstants;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
@ -173,6 +174,9 @@ public class AppController extends BaseController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
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()))){
|
|
|
|
|
|
|
|
return AjaxResult.error("手机号已注册");
|
|
|
|
|
|
|
|
}
|
|
|
|
tPatientService.insertTPatient(tPatient);
|
|
|
|
tPatientService.insertTPatient(tPatient);
|
|
|
|
Long identifier = 10000000L + tPatient.getId();
|
|
|
|
Long identifier = 10000000L + tPatient.getId();
|
|
|
|
tPatient.setIdentifier(String.valueOf(identifier));
|
|
|
|
tPatient.setIdentifier(String.valueOf(identifier));
|
|
|
|