|
|
|
|
@ -11,7 +11,7 @@ import com.flossom.common.core.domain.entity.WxInstrumentFileRelate;
|
|
|
|
|
import com.flossom.common.core.domain.entity.WxInstrumentMode;
|
|
|
|
|
import com.flossom.common.core.domain.req.WxInstrumentReq;
|
|
|
|
|
import com.flossom.common.core.domain.req.WxInstrumentSaveReq;
|
|
|
|
|
import com.flossom.common.core.enums.InstrumentFileClassify;
|
|
|
|
|
import com.flossom.common.core.enums.InstrumentFileClassifyEnum;
|
|
|
|
|
import com.flossom.common.core.enums.Status;
|
|
|
|
|
import com.flossom.common.core.mapper.SysTagMapper;
|
|
|
|
|
import com.flossom.common.core.mapper.WxInstrumentFileRelateMapper;
|
|
|
|
|
@ -75,11 +75,11 @@ public class WxInstrumentServiceImpl implements IWxInstrumentService {
|
|
|
|
|
}
|
|
|
|
|
// 获取护理弹窗关联
|
|
|
|
|
List<WxInstrumentFileRelate> firstNurseRelate = wxInstrumentFileRelateMapper.
|
|
|
|
|
selectByInstrumentIdAndClassify(wxInstrument.getId(), InstrumentFileClassify.FIRST_NURSE.getCode());
|
|
|
|
|
selectByInstrumentIdAndClassify(wxInstrument.getId(), InstrumentFileClassifyEnum.FIRST_NURSE.getCode());
|
|
|
|
|
wxInstrumentSaveReq.setNurseList(firstNurseRelate);
|
|
|
|
|
// 获取护理弹窗关联
|
|
|
|
|
List<WxInstrumentFileRelate> instructionRelate = wxInstrumentFileRelateMapper.
|
|
|
|
|
selectByInstrumentIdAndClassify(wxInstrument.getId(), InstrumentFileClassify.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
selectByInstrumentIdAndClassify(wxInstrument.getId(), InstrumentFileClassifyEnum.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
wxInstrumentSaveReq.setIntroduceList(instructionRelate);
|
|
|
|
|
// 获取模式关联
|
|
|
|
|
WxInstrumentMode wxInstrumentMode = new WxInstrumentMode();
|
|
|
|
|
@ -160,7 +160,7 @@ public class WxInstrumentServiceImpl implements IWxInstrumentService {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
next.setInstrumentId(wxInstrument.getId());
|
|
|
|
|
next.setClassify(InstrumentFileClassify.FIRST_NURSE.getCode());
|
|
|
|
|
next.setClassify(InstrumentFileClassifyEnum.FIRST_NURSE.getCode());
|
|
|
|
|
wxInstrumentFileRelateMapper.insertWxInstrumentFileRelate(next);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -176,7 +176,7 @@ public class WxInstrumentServiceImpl implements IWxInstrumentService {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
next.setInstrumentId(wxInstrument.getId());
|
|
|
|
|
next.setClassify(InstrumentFileClassify.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
next.setClassify(InstrumentFileClassifyEnum.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
wxInstrumentFileRelateMapper.insertWxInstrumentFileRelate(next);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -257,7 +257,7 @@ public class WxInstrumentServiceImpl implements IWxInstrumentService {
|
|
|
|
|
// 保存初次护理规则
|
|
|
|
|
List<WxInstrumentFileRelate> nurseList = wxInstrumentSaveReq.getNurseList();
|
|
|
|
|
wxInstrumentFileRelateMapper.deleteByInstrumentIdAndClassify(wxInstrumentSaveReq.getId(),
|
|
|
|
|
InstrumentFileClassify.FIRST_NURSE.getCode());
|
|
|
|
|
InstrumentFileClassifyEnum.FIRST_NURSE.getCode());
|
|
|
|
|
if (nurseList != null && nurseList.size() > 0) {
|
|
|
|
|
Iterator<WxInstrumentFileRelate> nurseIterator = nurseList.iterator();
|
|
|
|
|
while (nurseIterator.hasNext()) {
|
|
|
|
|
@ -267,14 +267,14 @@ public class WxInstrumentServiceImpl implements IWxInstrumentService {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
next.setInstrumentId(wxInstrument.getId());
|
|
|
|
|
next.setClassify(InstrumentFileClassify.FIRST_NURSE.getCode());
|
|
|
|
|
next.setClassify(InstrumentFileClassifyEnum.FIRST_NURSE.getCode());
|
|
|
|
|
wxInstrumentFileRelateMapper.insertWxInstrumentFileRelate(next);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 保存仪器介绍规则
|
|
|
|
|
wxInstrumentFileRelateMapper.deleteByInstrumentIdAndClassify(wxInstrumentSaveReq.getId(),
|
|
|
|
|
InstrumentFileClassify.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
InstrumentFileClassifyEnum.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
List<WxInstrumentFileRelate> introduceList = wxInstrumentSaveReq.getIntroduceList();
|
|
|
|
|
Iterator<WxInstrumentFileRelate> introduceIterator = introduceList.iterator();
|
|
|
|
|
while (introduceIterator.hasNext()) {
|
|
|
|
|
@ -284,7 +284,7 @@ public class WxInstrumentServiceImpl implements IWxInstrumentService {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
next.setInstrumentId(wxInstrument.getId());
|
|
|
|
|
next.setClassify(InstrumentFileClassify.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
next.setClassify(InstrumentFileClassifyEnum.INSTRUMENT_INSTRUCTION.getCode());
|
|
|
|
|
wxInstrumentFileRelateMapper.insertWxInstrumentFileRelate(next);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|