|
|
|
@ -104,7 +104,7 @@ public class DiseaseTreatmentPlanManageServiceImpl implements DiseaseTreatmentPl
|
|
|
|
|
|
|
|
|
|
// note: 如果diseaseTreatmentPlan.getDiseaseId()不为空,则表示处置计划为药品,需要进行手动矫正,统一设置为20
|
|
|
|
|
if (CollUtil.isNotEmpty(diseaseTreatmentPlan.getDrugIds())){
|
|
|
|
|
diseaseTreatmentPlan.setTreatmentPlanId("20");
|
|
|
|
|
diseaseTreatmentPlan.setTreatmentPlanId(mapDrugTreatPlanId(diseaseTreatmentPlan.getDisposalMethod()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
diseaseTreatmentPlanService.save(diseaseTreatmentPlan);
|
|
|
|
@ -126,6 +126,18 @@ public class DiseaseTreatmentPlanManageServiceImpl implements DiseaseTreatmentPl
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 映射药品的处置计划id
|
|
|
|
|
* @param disposeMethod
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
private String mapDrugTreatPlanId(String disposeMethod){
|
|
|
|
|
if (StrUtil.isEmpty(disposeMethod)){
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
return "0".equals(disposeMethod) ? "20" : "252";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void batchSaveTreatmentPlan(List<DiseaseTreatmentPlan> diseaseTreatmentPlanList) {
|
|
|
|
|
Assert.notEmpty(diseaseTreatmentPlanList,"数据不能为空");
|
|
|
|
|