xiangpei
2024-08-31 85392df07800b588675211549d6bf90cff10e0ee
ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml
@@ -14,8 +14,9 @@
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            TPO.platform_name,
            TPO.platform_ip,
            TP.platform_name,
            TP.platform_ip,
            TP.area,
            TPO.create_date,
            TPO.today_outline_sed,
            TPO.update_time,
@@ -23,6 +24,7 @@
            TPO.id
        FROM
            t_platform_online TPO
                INNER JOIN t_platform TP ON TP.id = TPO.platform_id
        WHERE
            TPO.id = #{id} AND TPO.deleted = 0
    </select>
@@ -30,8 +32,9 @@
    <select id="getPage" resultMap="BaseResultMap">
        SELECT
            TPO.platform_name,
            TPO.platform_ip,
            TP.platform_name,
            TP.platform_ip,
            TP.area,
            TPO.create_date,
            TPO.today_outline_sed,
            TPO.update_time,
@@ -39,6 +42,7 @@
            TPO.id
        FROM
            t_platform_online TPO
                INNER JOIN t_platform TP ON TP.id = TPO.platform_id
        WHERE
            TPO.deleted = 0
            <if test="query.startTime != null and query.endTime != null">
@@ -47,7 +51,7 @@
    </select>
    <select id="sumYesterday" resultMap="BaseResultMap">
    <select id="yesterdayData" resultMap="BaseResultMap">
        select * from t_platform_online
        where create_date between #{startDate} and #{endDate}
    </select>