| | |
| | | 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") |
| | |
| | | @LoginNoRequired |
| | | @ApiOperation("获取IC卡用户主键 - 司机") |
| | | @PostMapping("/getMemberIdByCode") |
| | | public ApiResponse<Integer> getMemberIdByCode(@RequestParam String code) { |
| | | this.saveInterfaceLog(Constants.strToJson("code",code), null,"getMemberIdByCode","获取IC卡用户主键 - 司机"); |
| | | return ApiResponse.success(jkIccardService.getMemberIdByCode(code)); |
| | | public ApiResponse<Integer> getMemberIdByCode(@RequestBody QueryUserByCodeDTO dto) { |
| | | this.saveInterfaceLog(JSONObject.toJSONString(dto), null,"getMemberIdByCode","获取IC卡用户主键 - 司机"); |
| | | return ApiResponse.success(jkIccardService.getMemberIdByCode(dto)); |
| | | } |
| | | |
| | | 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); |
| | |
| | | hkMonitoryLogDO.setUrl(url); |
| | | interfaceLogService.create(hkMonitoryLogDO); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("酒精检测告警") |