Commit 7716be7f authored by duanruiming's avatar duanruiming

[add] 绿波交通状态比例查询事件表优化

parent edb5707d
......@@ -249,7 +249,7 @@
TIMESTAMPDIFF(SECOND, start_time, ifnull(end_time,now())) duration,
TIMESTAMPDIFF(SECOND, DATE_FORMAT(start_time, '%Y-%m-%d 00:00:00'), now()) as totalTime
from t_event_info
where type in ('705', '706') and start_time >= curdate() and green = #{greenId}
where type in ('705', '706') and start_time >= curdate() and green_id = #{greenId}
) t1 group by t1.type
<!-- select type, sum(duration) / totalTime as timeRate from (-->
<!-- select cross_id, type,-->
......
......@@ -87,7 +87,7 @@ public class SignalStatusController {
}
@AspectLog(description = "接收易华录灯态", operationType = BaseEnum.OperationTypeEnum.QUERY)
@PostMapping(value = "/receiveLightStatusEhualu", produces = MediaType.APPLICATION_JSON)
@PostMapping(value = "/receiveEhualu", produces = MediaType.APPLICATION_JSON)
@ApiOperation(value = "接收海信灯态", notes = "接收海信灯态", response = LightsStatusVO.class, produces = MediaType.APPLICATION_JSON)
public JsonViewObject receiveLightStatusEhualu(@RequestBody List<EhualuLightStatusPojo> ehualuLightStatusPojos) throws Exception {
JsonViewObject jsonViewObject = JsonViewObject.newInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment