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.

20 lines
634 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.braintraining.persist.dao.RaffleActiveDao">
<select id="queryTrainTask" resultType="java.lang.Long">
SELECT
t.id
FROM
t_raffle_active a,
t_raffle_task t
WHERE
a.id = t.active_id
and t.type = 2
and a.equipment_id = #{equipmentId}
and a.start_time &lt;= #{now}
and a.end_time > #{now}
and a.rec_status = 0
and t.rec_status = 0
</select>
</mapper>