|
|
|
@ -1,8 +1,10 @@ |
|
|
|
package com.ccsens.wisdomcar.service; |
|
|
|
|
|
|
|
import com.ccsens.util.exception.BaseException; |
|
|
|
import com.ccsens.wisdomcar.bean.dto.StepDto; |
|
|
|
import com.ccsens.wisdomcar.bean.vo.StepVo; |
|
|
|
|
|
|
|
import com.ccsens.wisdomcar.persist.dao.PatientWisdomCarDao; |
|
|
|
import com.ccsens.wisdomcar.persist.dao.StepDao; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -23,9 +25,15 @@ public class StepService implements IStepService { |
|
|
|
|
|
|
|
@Resource |
|
|
|
private StepDao stepDao; |
|
|
|
@Resource |
|
|
|
private PatientWisdomCarDao patientWisdomCarDao; |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<StepVo.StepStatus> findStepIsOver(StepDto.FindStepStatus param) { |
|
|
|
Integer isExist = patientWisdomCarDao.findIsExist(param.getPatientCarId()); |
|
|
|
if (0 == isExist){ |
|
|
|
throw new BaseException("请检查患者是否绑定平车"); |
|
|
|
} |
|
|
|
return stepDao.findStepIsOver(param.getPatientCarId()); |
|
|
|
} |
|
|
|
|
|
|
|
|