|
|
|
@ -4,13 +4,12 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.supervision.controller.TreatmentPlanController;
|
|
|
|
|
import com.supervision.model.ConfigDrug;
|
|
|
|
|
import com.supervision.model.Process;
|
|
|
|
|
import com.supervision.model.TreatmentPlanRecord;
|
|
|
|
|
import com.supervision.service.ConfigDrugService;
|
|
|
|
|
import com.supervision.service.ProcessService;
|
|
|
|
|
import com.supervision.service.TreatmentPlanRecordService;
|
|
|
|
|
import com.supervision.service.TreatmentPlanService;
|
|
|
|
|
import com.supervision.service.*;
|
|
|
|
|
import com.supervision.vo.manage.TreatmentPlanTreeNode;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@ -24,12 +23,14 @@ import java.util.List;
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
public class TreatmentPlanServiceImpl implements TreatmentPlanService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final TreatmentPlanRecordService treatmentPlanRecordService;
|
|
|
|
|
|
|
|
|
|
private final ProcessService processService;
|
|
|
|
|
|
|
|
|
|
private final ConfigDrugService configDrugService;
|
|
|
|
|
|
|
|
|
|
private final ConfigTreatmentPlanService configTreatmentPlanService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean saveTreatmentPlanRecord(TreatmentPlanRecord treatmentPlanRecord) {
|
|
|
|
|
|
|
|
|
@ -87,6 +88,12 @@ public class TreatmentPlanServiceImpl implements TreatmentPlanService {
|
|
|
|
|
return configDrugService.list();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<TreatmentPlanTreeNode> queryTree(Integer disposalMethod) {
|
|
|
|
|
|
|
|
|
|
return configTreatmentPlanService.queryTree(disposalMethod);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void assertSaveTreatmentPlanRecord(TreatmentPlanRecord record){
|
|
|
|
|
Assert.notEmpty(record.getProcessId(),"流程id不能为空");
|
|
|
|
|
Assert.notNull(record.getDisposalMethod(),"处置方式不能为为空");
|
|
|
|
|