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.
41 lines
1.2 KiB
41 lines
1.2 KiB
|
5 years ago
|
<?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.mt.persist.dao.CompeteTimeDao">
|
||
|
|
|
||
|
|
<select id="getCompeteTimeByType" parameterType="java.util.Map" resultType="com.ccsens.mt.bean.vo.CompeteVo$CompeteTime">
|
||
|
|
SELECT
|
||
|
|
id,
|
||
|
|
`name`,
|
||
|
|
type,
|
||
|
|
start_time as startTime,
|
||
|
|
end_time as endTime,
|
||
|
|
sign_up_start_time as signUpStartTime,
|
||
|
|
sign_up_end_time as signUpEndTime,
|
||
|
|
compete_status as competeStatus
|
||
|
|
FROM
|
||
|
|
`t_compete_time`
|
||
|
|
WHERE
|
||
|
|
rec_status = 0
|
||
|
|
and
|
||
|
|
`type` = #{type}
|
||
|
|
and
|
||
|
|
start_time <= #{time}
|
||
|
|
and
|
||
|
|
end_time > #{time}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="queryCompeteGroupByType" parameterType="java.util.Map" resultType="com.ccsens.mt.bean.vo.CompeteVo$CompeteGroup">
|
||
|
|
SELECT
|
||
|
|
id as groupId,
|
||
|
|
group_name as groupName,
|
||
|
|
description as groupDescription
|
||
|
|
FROM
|
||
|
|
t_compete_group
|
||
|
|
WHERE
|
||
|
|
rec_status = #{type}
|
||
|
|
and
|
||
|
|
type = 0
|
||
|
|
ORDER BY sequence
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|