|
|
|
|
@ -124,6 +124,23 @@ public class WxNursingLogServiceImpl implements IWxNursingLogService {
|
|
|
|
|
return wxNursingLogList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public WxNursingLog selectWxNursingLogById(Long id) {
|
|
|
|
|
WxNursingLog nursingLog = wxNursingLogMapper.selectWxNursingLogById(id);
|
|
|
|
|
if (nursingLog != null) {
|
|
|
|
|
WxMode wxMode = wxModeMapper.selectWxModeById(nursingLog.getModeId());
|
|
|
|
|
if (wxMode != null) {
|
|
|
|
|
nursingLog.setModeImage(wxMode.getModeBanner());
|
|
|
|
|
}
|
|
|
|
|
WxInstrument wxInstrument = wxInstrumentMapper.selectWxInstrumentById(nursingLog.getInstrumentId());
|
|
|
|
|
if (wxInstrument != null) {
|
|
|
|
|
nursingLog.setInstrumentType(wxInstrument.getType());
|
|
|
|
|
nursingLog.setInstrumentName(wxInstrument.getName());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return nursingLog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增用户护理日志
|
|
|
|
|
*/
|
|
|
|
|
|