|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.ruoyi.web.controller.api;
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.constant.UserConstants;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
@ -173,6 +174,9 @@ public class AppController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
TPatient tPatient = new TPatient();
|
|
|
|
|
BeanUtils.copyProperties(appPatientReq, tPatient);
|
|
|
|
|
if(UserConstants.NOT_UNIQUE.equals(tPatientService.checkPhoneUnique(tPatient.getPhone()))){
|
|
|
|
|
return AjaxResult.error("手机号已注册");
|
|
|
|
|
}
|
|
|
|
|
tPatientService.insertTPatient(tPatient);
|
|
|
|
|
Long identifier = 10000000L + tPatient.getId();
|
|
|
|
|
tPatient.setIdentifier(String.valueOf(identifier));
|
|
|
|
@ -265,4 +269,12 @@ public class AppController extends BaseController
|
|
|
|
|
return AjaxResult.success(tPatientService.selectTPatientById(getUserId()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/patient/record/historyData")
|
|
|
|
|
@ApiOperation("查询患者历史数据图表")
|
|
|
|
|
public AjaxResult getHistoryRecordList(AppRecordReq appRecordReq){
|
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
|
BeanUtils.copyProperties(appRecordReq, tRecord);
|
|
|
|
|
return tRecordService.getHistoryList(tRecord);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|