护理记录增加仪器类型

master
382696293@qq.com 2 years ago
parent fbb42d5fbf
commit 36efd718c5

@ -33,6 +33,11 @@ public class WxNursingLog extends BaseEntity {
*/
private String instrumentName;
/**
* 1 2iot
*/
private Integer instrumentType;
/**
* 线1线2线
*/
@ -161,4 +166,12 @@ public class WxNursingLog extends BaseEntity {
public void setModeImage(String modeImage) {
this.modeImage = modeImage;
}
public Integer getInstrumentType() {
return instrumentType;
}
public void setInstrumentType(Integer instrumentType) {
this.instrumentType = instrumentType;
}
}

@ -92,6 +92,11 @@ public class WxNursingLogServiceImpl implements IWxNursingLogService {
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 wxNursingLogList;

Loading…
Cancel
Save