You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
802 B

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ccsens.wisdomcar.persist.dao.PatientWisdomCarDao">
<select id="queryByNew" parameterType="java.util.Map" resultType="Long">
Select
c.id
From
`t_patient_wisdom_car` c
WHERE c.task_sub_id=#{id}
order by
c.`created_at`
desc
limit 1
</select>
<select id="queryBindingCarList" resultType="com.ccsens.wisdomcar.bean.vo.WisdomCarVo$BindingCarInfo">
select
a.patient_id as patientId,
a.car_id as carNumber,
b.id as carId,
a.start_time as startTime,
a.end_time as endTime
from t_patient_wisdom_car a,t_wisdom_car b
where a.car_id=b.car_number
and a.task_sub_id=#{taskSubId}
</select>
</mapper>