瀏覽代碼

时间格式去掉毫秒级

吴志根 4 年之前
父節點
當前提交
8b412e11c1

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/直播场次列表查询.sql

@@ -1,6 +1,6 @@
 SELECT t1.sessionid,
        t1.description,
-       DATEADD(S, convert(float,t1.starttime) / 1000, '1970-01-01 08:00:00') as starttime,
+       CONVERT(varchar (100), DATEADD(S, convert(float, t1.starttime) / 1000, '1970-01-01 08:00'), 120) as starttime,
        t1.liveuv,
        t1.livepv,
        t1.duration

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/直播用户观看列表.sql

@@ -1,7 +1,7 @@
 SELECT t1.PARAM2                                                AS name,
        t1.PARAM1                                                AS userid,
        t1.playduration,
-       DATEADD(S, t1.createdtime / 1000, '1970-01-01 08:00:00') as datetime,
+       CONVERT(varchar (100), DATEADD(S, convert(float, t1.createdtime) / 1000, '1970-01-01 08:00'), 120) as datetime,
        t1.province,
        t1.city,
        t1.ipaddress,

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/私域直播场次列表查询.sql

@@ -1,6 +1,6 @@
 SELECT t1.sessionid,
        t1.description,
-       DATEADD(S, convert(float,t1.starttime) / 1000, '1970-01-01 08:00:00') as starttime,
+       CONVERT(varchar (100), DATEADD(S, convert(float, t1.starttime) / 1000, '1970-01-01 08:00'), 120) as starttime,
        t1.liveuv,
        t1.livepv,
        t1.duration

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/私域直播用户观看列表.sql

@@ -1,7 +1,7 @@
 SELECT t1.PARAM2                                                AS name,
        t1.PARAM1                                                AS userid,
        t1.playduration,
-       DATEADD(S, t1.createdtime / 1000, '1970-01-01 08:00:00') as datetime,
+       CONVERT(varchar (100), DATEADD(S, convert(float, t1.createdtime) / 1000, '1970-01-01 08:00'), 120) as datetime,
        t1.province,
        t1.city,
        t1.ipaddress,