@ -36,5 +36,5 @@ public interface StepDao extends StepMapper {
* @param patientCarId 患者平车id
* @return 环节信息
*/
List<StepVo.StepStatus> findStepIsOver(Long patientCarId);
List<StepVo.StepStatus> findStepIsOver(@Param("patientCarId") Long patientCarId);
}
@ -51,10 +51,11 @@
FROM
t_step AS s
LEFT JOIN t_patient_data AS pd ON s.id = pd.step_id
AND pd.patient_car_id = 0
AND pd.patient_car_id = #{patientCarId}
LEFT JOIN t_hospital_member AS hm ON pd.user_id = hm.user_id
WHERE
s.step_type = 0
ORDER BY s.`code`+1
</select>