获取患者记录详情

master
chenfei 2 years ago
parent f633ee875d
commit b8d66f7c73

@ -110,6 +110,6 @@ public class TRecordController extends BaseController
if(id == null){ if(id == null){
return AjaxResult.error("未获取到id"); return AjaxResult.error("未获取到id");
} }
return AjaxResult.success(tRecordService.selectTById(id)); return AjaxResult.success(tRecordService.selectById(id));
} }
} }

@ -65,5 +65,5 @@ public interface TRecordMapper
List<TRecordResp> selectTRecordListWithoutResult(TRecordResultReq tRecord); List<TRecordResp> selectTRecordListWithoutResult(TRecordResultReq tRecord);
TRecordResp selectTById(Long id); TRecordResp selectById(Long id);
} }

@ -63,5 +63,5 @@ public interface ITRecordService
List<TRecordResp> selectTRecordListWithoutResult(TRecordResultReq tRecord); List<TRecordResp> selectTRecordListWithoutResult(TRecordResultReq tRecord);
TRecordResp selectTById(Long id); TRecordResp selectById(Long id);
} }

@ -103,8 +103,8 @@ public class TRecordServiceImpl implements ITRecordService
} }
@Override @Override
public TRecordResp selectTById(Long id) public TRecordResp selectById(Long id)
{ {
return tRecordMapper.selectTById(id); return tRecordMapper.selectById(id);
} }
} }

@ -190,7 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach> </foreach>
</delete> </delete>
<select id="selectTById" parameterType="Long" resultType="TRecordResp"> <select id="selectById" parameterType="Long" resultType="TRecordResp">
<include refid="selectTRecordWithResult"/> <include refid="selectTRecordWithResult"/>
where id = #{id} where id = #{id}
</select> </select>

Loading…
Cancel
Save