|  |  |  | 
|---|
|  |  |  | import com.doumee.core.haikang.model.HKConstants; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.dao.business.JkVersionMapper; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.CloseGridDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.GetDriverGridDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.OpenGridDriverDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.OptGridDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.*; | 
|---|
|  |  |  | import com.doumee.dao.business.model.InterfaceLog; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkCabinetGrid; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkInterfaceLog; | 
|---|
|  |  |  | import com.doumee.dao.business.model.JkVersion; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.AdminCabinetVO; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.CabinetDetailVO; | 
|---|
|  |  |  | 
|---|
|  |  |  | private JkCabinetGridService jkCabinetGridService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private InterfaceLogService interfaceLogService; | 
|---|
|  |  |  | private JkInterfaceLogService interfaceLogService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private JkIccardService jkIccardService; | 
|---|
|  |  |  | 
|---|
|  |  |  | this.saveInterfaceLog(Constants.strToJson("id",id.toString()), null,"updateRunStatusById","更新钥匙柜在线状态"); | 
|---|
|  |  |  | return ApiResponse.success("更新成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("获取可管理的钥匙柜列表 - 管理员") | 
|---|
|  |  |  | @GetMapping("/getAdminCabinetInfo") | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("关闭柜门") | 
|---|
|  |  |  | @PostMapping("/closeGrid") | 
|---|
|  |  |  | public ApiResponse closeGrid(@RequestBody CloseGridDTO dto) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("获取钥匙柜人脸数据") | 
|---|
|  |  |  | @GetMapping("/getCabinetFaceVO") | 
|---|
|  |  |  | public ApiResponse<CabinetFaceVO> getCabinetFaceVO(@RequestParam String code) { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("获取可操作柜格 - 司机") | 
|---|
|  |  |  | @PostMapping("/getDriverGrid") | 
|---|
|  |  |  | public ApiResponse<List<JkCabinetGrid>> getDriverGrid(@RequestBody GetDriverGridDTO dto) { | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(jkCabinetGridList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("开启柜格 - 司机") | 
|---|
|  |  |  | @PostMapping("/openGridDriver") | 
|---|
|  |  |  | public ApiResponse openGridDriver(@RequestBody OpenGridDriverDTO dto) { | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("获取IC卡用户主键 - 司机") | 
|---|
|  |  |  | @PostMapping("/getMemberIdByCode") | 
|---|
|  |  |  | public ApiResponse<Integer> getMemberIdByCode(@RequestParam String code) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private void saveInterfaceLog(String s, String result,String url,String name) { | 
|---|
|  |  |  | InterfaceLog hkMonitoryLogDO=new InterfaceLog(); | 
|---|
|  |  |  | JkInterfaceLog hkMonitoryLogDO=new JkInterfaceLog(); | 
|---|
|  |  |  | hkMonitoryLogDO.setType(0); | 
|---|
|  |  |  | hkMonitoryLogDO.setCreateDate(new Date()); | 
|---|
|  |  |  | hkMonitoryLogDO.setIsdeleted(0); | 
|---|
|  |  |  | 
|---|
|  |  |  | interfaceLogService.create(hkMonitoryLogDO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("酒精检测告警") | 
|---|
|  |  |  | @PostMapping("/alcoholTestAlarm") | 
|---|
|  |  |  | public ApiResponse alcoholTestAlarm(@RequestBody AlcoholTestAlarmDTO dto) { | 
|---|
|  |  |  | jkCabinetGridService.alcoholTestAlarm(dto); | 
|---|
|  |  |  | return ApiResponse.success("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("柜格开门超时未关闭告警") | 
|---|
|  |  |  | @PostMapping("/timeOutUnCloseAlarm") | 
|---|
|  |  |  | public ApiResponse timeOutUnCloseAlarm(@RequestBody TimeOutCloseGridDTO dto) { | 
|---|
|  |  |  | jkCabinetGridService.timeOutUnCloseAlarm(dto); | 
|---|
|  |  |  | return ApiResponse.success("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|