2021与蓝度共同重构项目,服务端
liuhaonan
2022-10-24 7a00187d197548e23a38dcb87187ef6b2b7f8bfb
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
38
39
40
41
42
43
44
45
46
47
48
49
<?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.sandu.ximon.dao.mapper.PlayPlanNvMapper">
 
    <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.PlayPlanNv">
        <id property="id" column="id" jdbcType="BIGINT"/>
        <result property="userId" column="user_id" jdbcType="BIGINT"/>
        <result property="clientId" column="client_id" jdbcType="BIGINT"/>
        <result property="name" column="name" jdbcType="VARCHAR"/>
        <result property="ledProgramId" column="led_program_id" jdbcType="BIGINT"/>
        <result property="ledProgramName" column="led_program_name" jdbcType="VARCHAR"/>
        <result property="volume" column="volume" jdbcType="VARCHAR"/>
        <result property="applySeries" column="apply_series" jdbcType="INTEGER"/>
        <result property="startDate" column="start_date" jdbcType="VARCHAR"/>
        <result property="endDate" column="end_date" jdbcType="VARCHAR"/>
        <result property="status" column="status" jdbcType="INTEGER"/>
        <result property="weekDays" column="week_days"
                typeHandler="com.sandu.common.mybatis.JsonStringArrayTypeHandler"/>
        <result property="startTime" column="start_time" jdbcType="VARCHAR"/>
        <result property="endTime" column="end_time" jdbcType="VARCHAR"/>
        <result property="schedule" column="schedule" jdbcType="VARCHAR"/>
        <result property="schedules" column="schedules" jdbcType="VARCHAR"/>
        <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
        <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
    </resultMap>
 
    <sql id="Base_Column_List">
        id,user_id,name,
        led_program_id,led_program_name,volume,
        apply_series,start_date,end_date,
        status,week_days,start_time,
        end_time,schedule,create_time,
        update_time
    </sql>
 
    <select id="pushToLed" resultType="com.sandu.ximon.dao.domain.PushToLed" parameterType="java.lang.Long">
        SELECT
            t1.SCHEDULE,
            t1.volume,
            t2.pages
        FROM
            play_plan_nv t1
                LEFT JOIN led_program t2 ON t1.led_program_id = t2.id
        WHERE
            t1.id =#{planId}
    </select>
</mapper>