EnclosedTideChannelConfigSMapper.xml
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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.zteits.park.mapper.smapper.EnclosedTideChannelConfigSMapper">
<resultMap id="BaseResultMap" type="com.zteits.park.domain.EnclosedTideChannelConfig">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="config_no" jdbcType="VARCHAR" property="configNo" />
<result column="channel_use_type" jdbcType="INTEGER" property="channelUseType" />
<result column="pl_no" jdbcType="VARCHAR" property="plNo" />
<result column="channel_number" jdbcType="VARCHAR" property="channelNumber" />
<result column="channel_direction" jdbcType="INTEGER" property="channelDirection" />
<result column="allow_pass_type" jdbcType="VARCHAR" property="allowPassType" />
<result column="config_sort" jdbcType="INTEGER" property="configSort" />
<result column="start_time" jdbcType="TIME" property="startTime" />
<result column="end_time" jdbcType="TIME" property="endTime" />
<result column="is_open" jdbcType="INTEGER" property="isOpen" />
<result column="create_empid" jdbcType="VARCHAR" property="createEmpid" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
<result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
<result column="data_state" jdbcType="INTEGER" property="dataState" />
</resultMap>
<select id="queryOpposeTideChannel" parameterType="com.zteits.clouds.api.dto.park.param.closecarpark.QueryOpposeEnclosedTideChannelRequest"
resultType="com.zteits.clouds.api.dto.park.dto.TideChannelInfoDTO">
SELECT
t.config_no configNo,
t.channel_direction channelDirection,
t.channel_number channelNumber,
t.start_time startTime,
t.end_time endTime
FROM
enclosed_tide_channel_config t
WHERE
t.config_no = ( SELECT DISTINCT c.config_no FROM enclosed_tide_channel_config c WHERE c.channel_number = #{channelNumber,jdbcType=VARCHAR} )
AND t.channel_number != #{channelNumber,jdbcType=VARCHAR}
</select>
</mapper>