| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | @ApiOperation("关闭柜门") |
| | | @PostMapping("/closeGrid") |
| | | public ApiResponse closeGrid(@RequestBody CloseGridDTO dto) { |
| | | jkCabinetGridService.closeGrid(dto); |
| | | JDYKeyUseByBookDTO jdyKeyUseByBookDTO = jkCabinetGridService.closeGrid(dto); |
| | | //推送简道云 取还信息 |
| | | if(Objects.nonNull(jdyKeyUseByBookDTO)&&Objects.nonNull(jdyKeyUseByBookDTO.getId())){ |
| | | jkCabinetGridService.pushJDYKeyInfo(jdyKeyUseByBookDTO); |
| | | } |
| | | this.saveInterfaceLog(JSONObject.toJSONString(dto), null,"closeGrid","关闭柜门"); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("获取钥匙柜人脸数据") |
| | | @GetMapping("/getCabinetFaceVO") |
| | |
| | | return ApiResponse.success(cabinetFaceVO); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("获取可操作柜格 - 司机") |
| | | @PostMapping("/getDriverGrid") |
| | |
| | | this.saveInterfaceLog(JSONObject.toJSONString(dto), JSONObject.toJSONString(jkCabinetGridList),"getDriverGrid","获取可操作柜格 - 司机"); |
| | | return ApiResponse.success(jkCabinetGridList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("开启柜格 - 司机") |
| | |
| | | @LoginNoRequired |
| | | @ApiOperation("钥匙柜心跳接口") |
| | | @GetMapping("/heartbeat") |
| | | public ApiResponse heartbeat() { |
| | | public ApiResponse heartbeat(@RequestParam String code) { |
| | | jkCabinetService.updHeartbeat(code); |
| | | return ApiResponse.success("链接成功"); |
| | | } |
| | | |