| | |
| | | import com.doumee.dao.business.vo.CabinetInfoVO; |
| | | import com.doumee.dao.web.response.DriverHomeVO; |
| | | import com.doumee.service.business.*; |
| | | import com.doumee.service.business.impl.JkCabinetGridServiceImpl; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.hikvision.artemis.sdk.config.ArtemisConfig; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @Autowired |
| | | private JkCabinetGridService jkCabinetGridService; |
| | | |
| | | @Autowired |
| | | private JkCabinetLogService jkCabinetLogService; |
| | | |
| | | @Autowired |
| | | private JkInterfaceLogService interfaceLogService; |
| | |
| | | return ApiResponse.success(jkCabinetGridList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("开启柜格 - 司机") |
| | | @PostMapping("/openGridDriver") |
| | |
| | | @PostMapping("/alcoholTestAlarm") |
| | | public ApiResponse alcoholTestAlarm(@RequestBody AlcoholTestAlarmDTO dto) { |
| | | jkCabinetGridService.alcoholTestAlarm(dto); |
| | | this.saveInterfaceLog(JSONObject.toJSONString(dto), null,"酒精检测告警","酒精检测告警"); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | |
| | | @PostMapping("/timeOutUnCloseAlarm") |
| | | public ApiResponse timeOutUnCloseAlarm(@RequestBody TimeOutCloseGridDTO dto) { |
| | | jkCabinetGridService.timeOutUnCloseAlarm(dto); |
| | | this.saveInterfaceLog(JSONObject.toJSONString(dto), null,"timeOutUnCloseAlarm","柜格开门超时未关闭告警"); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("钥匙柜心跳接口") |
| | | @GetMapping("/heartbeat") |
| | | public ApiResponse heartbeat() { |
| | | return ApiResponse.success("链接成功"); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("同步柜格实际钥匙数据") |
| | | @PostMapping("/syncGridData") |
| | | public ApiResponse syncGridData(@RequestBody SyncCabinetDTO dto) { |
| | | jkCabinetGridService.syncGridData(dto); |
| | | this.saveInterfaceLog(JSONObject.toJSONString(dto), null,"syncGridData","同步柜格实际钥匙数据"); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | | private JkCabinetGridServiceImpl impl; |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("testTimeOutBackAlarm") |
| | | @GetMapping("/testTimeOutBackAlarm") |
| | | public ApiResponse testTimeOutBackAlarm() { |
| | | jkCabinetLogService.timeOutUnBackAlarm(impl); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |