代码格式化修改
This commit is contained in:
parent
b3e543fe5d
commit
8738919289
@ -3,7 +3,6 @@ package com.xinelu.mobile.controller.appletpersoncenter;
|
|||||||
import com.xinelu.common.core.controller.BaseController;
|
import com.xinelu.common.core.controller.BaseController;
|
||||||
import com.xinelu.common.core.domain.AjaxResult;
|
import com.xinelu.common.core.domain.AjaxResult;
|
||||||
import com.xinelu.common.core.page.TableDataInfo;
|
import com.xinelu.common.core.page.TableDataInfo;
|
||||||
import com.xinelu.manage.service.patientinfo.IPatientInfoService;
|
|
||||||
import com.xinelu.mobile.dto.appletpersoncenter.HealthRecordDTO;
|
import com.xinelu.mobile.dto.appletpersoncenter.HealthRecordDTO;
|
||||||
import com.xinelu.mobile.service.appletpersoncenter.AppletPersonCenterService;
|
import com.xinelu.mobile.service.appletpersoncenter.AppletPersonCenterService;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
@ -27,8 +26,6 @@ public class AppletPersonCenterController extends BaseController {
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private AppletPersonCenterService appletPersonCenterService;
|
private AppletPersonCenterService appletPersonCenterService;
|
||||||
@Resource
|
|
||||||
private IPatientInfoService patientInfoService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 院后微信小程序一键登录接口
|
* 院后微信小程序一键登录接口
|
||||||
@ -62,8 +59,8 @@ public class AppletPersonCenterController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 根据居民表id查询患者健康档案信息
|
* 根据居民表id查询患者健康档案信息
|
||||||
*
|
*
|
||||||
* @param residentId
|
* @param residentId 居民患者id
|
||||||
* @return
|
* @return 分页列表数据
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getHealthRecordListByResidentId")
|
@GetMapping("/getHealthRecordListByResidentId")
|
||||||
public TableDataInfo getHealthRecordListById(Long residentId) {
|
public TableDataInfo getHealthRecordListById(Long residentId) {
|
||||||
@ -75,7 +72,7 @@ public class AppletPersonCenterController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 根据id获取患者患者健康档案信息
|
* 根据id获取患者患者健康档案信息
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id 居民患者id
|
||||||
* @return PatientInfo
|
* @return PatientInfo
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getHealthRecordInfoById")
|
@GetMapping("/getHealthRecordInfoById")
|
||||||
|
|||||||
@ -16,14 +16,15 @@ public interface AppletPersonCenterMapper {
|
|||||||
/**
|
/**
|
||||||
* 根据居民表id查询患者健康档案信息
|
* 根据居民表id查询患者健康档案信息
|
||||||
*
|
*
|
||||||
* @param residentID
|
* @param residentId 居民患者id
|
||||||
* @return
|
* @return 列表信息
|
||||||
*/
|
*/
|
||||||
List<HealthRecordDTO> getHealthRecordListByResidentID(Long residentID);
|
List<HealthRecordDTO> getHealthRecordListByResidentId(Long residentId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根绝id获取患者蒋康档案详细信息
|
* 根绝id获取患者蒋康档案详细信息
|
||||||
* @param id
|
*
|
||||||
|
* @param id 居民患者id
|
||||||
* @return 健康档案详细信息
|
* @return 健康档案详细信息
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -32,18 +32,18 @@ public interface AppletPersonCenterService {
|
|||||||
AjaxResult getResidentInfoById(Long residentId);
|
AjaxResult getResidentInfoById(Long residentId);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据居民表id查询患者健康档案信息
|
* 根据居民表id查询患者健康档案信息
|
||||||
*
|
*
|
||||||
* @param residentId
|
* @param residentId 居民患者id
|
||||||
* @return 列表信息
|
* @return 列表信息
|
||||||
*/
|
*/
|
||||||
List<HealthRecordDTO> getHealthRecordListByResidentId(Long residentId);
|
List<HealthRecordDTO> getHealthRecordListByResidentId(Long residentId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根绝id获取患者健康档案详细信息
|
* 根绝id获取患者健康档案详细信息
|
||||||
* @param id
|
*
|
||||||
|
* @param id 居民患者id
|
||||||
* @return 监控档案详细信息
|
* @return 监控档案详细信息
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -130,19 +130,19 @@ public class AppletPersonCenterServiceImpl implements AppletPersonCenterService
|
|||||||
/**
|
/**
|
||||||
* 根据居民表id查询患者健康档案信息
|
* 根据居民表id查询患者健康档案信息
|
||||||
*
|
*
|
||||||
* @param residentId
|
* @param residentId 居民患者id
|
||||||
* @return 健康档案列表
|
* @return 健康档案列表
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<HealthRecordDTO> getHealthRecordListByResidentId(Long residentId) {
|
public List<HealthRecordDTO> getHealthRecordListByResidentId(Long residentId) {
|
||||||
return appletPersonCenterMapper.getHealthRecordListByResidentID(residentId);
|
return appletPersonCenterMapper.getHealthRecordListByResidentId(residentId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据id获取患者患者健康档案信息
|
* 根据id获取患者患者健康档案信息
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id 居民患者id
|
||||||
* @return PatientInfo
|
* @return PatientInfo
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -154,7 +154,6 @@ public class AppletPersonCenterServiceImpl implements AppletPersonCenterService
|
|||||||
} else if (StringUtils.equals(healthRecordInfoDTO.getSignStatus(), "IN_SIGN")) {
|
} else if (StringUtils.equals(healthRecordInfoDTO.getSignStatus(), "IN_SIGN")) {
|
||||||
healthRecordInfoDTO.setSignStatus("是");
|
healthRecordInfoDTO.setSignStatus("是");
|
||||||
}
|
}
|
||||||
|
|
||||||
return healthRecordInfoDTO;
|
return healthRecordInfoDTO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,10 +27,10 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<select id="getHealthRecordListByResidentID" parameterType="long" resultMap="HealthRecordResult">
|
<select id="getHealthRecordListByResidentId" parameterType="long" resultMap="HealthRecordResult">
|
||||||
select id, hospital_agency_name, department_name, visit_date
|
select id, hospital_agency_name, department_name, visit_date
|
||||||
from patient_info
|
from patient_info
|
||||||
where resident_id = #{residentID}
|
where resident_id = #{residentId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getHealthRecordInfoById" parameterType="long" resultMap="HealthRecordInfo">
|
<select id="getHealthRecordInfoById" parameterType="long" resultMap="HealthRecordInfo">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user