Merge branch 'dev_vedio' into test6.9.0
Showing
3 changed files
with
4 additions
and
2 deletions
@@ -102,7 +102,7 @@ | @@ -102,7 +102,7 @@ | ||
102 | where id = #{id, jdbcType=INTEGER} | 102 | where id = #{id, jdbcType=INTEGER} |
103 | </update> | 103 | </update> |
104 | 104 | ||
105 | - <select id="selectByTime"> | 105 | + <select id="selectByTime" resultMap="BaseResultMap"> |
106 | select id, order_code, start_time, end_time, camera_code from qiniu_live_record | 106 | select id, order_code, start_time, end_time, camera_code from qiniu_live_record |
107 | where create_time >= #{startTime, jdbcType=INTEGER} and create_time < #{endTime, jdbcType=INTEGER} and show_flag = 1 | 107 | where create_time >= #{startTime, jdbcType=INTEGER} and create_time < #{endTime, jdbcType=INTEGER} and show_flag = 1 |
108 | </select> | 108 | </select> |
@@ -153,7 +153,8 @@ public class UfoLiveController { | @@ -153,7 +153,8 @@ public class UfoLiveController { | ||
153 | public ApiResponse queryVideoInfo(QNliveReq req) { | 153 | public ApiResponse queryVideoInfo(QNliveReq req) { |
154 | LOGGER.info("queryVideoInfo method in. req is {}", req); | 154 | LOGGER.info("queryVideoInfo method in. req is {}", req); |
155 | 155 | ||
156 | - if (null == req.getStartTime() || null == req.getEndTime() || req.getEndTime() - req.getStartTime() > 86400) { | 156 | + if (null == req.getStartTime() || null == req.getEndTime() |
157 | + || req.getEndTime() - req.getStartTime() > 86400 || req.getEndTime() - req.getStartTime() <= 0) { | ||
157 | return new ApiResponse.ApiResponseBuilder().code(500).message("时间格式不对").build(); | 158 | return new ApiResponse.ApiResponseBuilder().code(500).message("时间格式不对").build(); |
158 | } | 159 | } |
159 | 160 |
@@ -21,6 +21,7 @@ | @@ -21,6 +21,7 @@ | ||
21 | <value>platformLogin.do</value> | 21 | <value>platformLogin.do</value> |
22 | <value>logout.do</value> | 22 | <value>logout.do</value> |
23 | <value>updateVideoUrl</value> | 23 | <value>updateVideoUrl</value> |
24 | + <value>queryVideoInfo</value> | ||
24 | </list> | 25 | </list> |
25 | </property> | 26 | </property> |
26 | </bean> | 27 | </bean> |
-
Please register or login to post a comment