| | |
| | | } |
| | | //return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("获取开卡记录异常", e); |
| | | log.error("获取控制器记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | |
| | | public BaseResponse<JSONArray> getNoBindingIntakes() { |
| | | try { |
| | | JSONArray array = controllerSv.getNoBindingIntakes(); |
| | | if (array.size() <= 0) { |
| | | return BaseResponseUtils.buildFail(ProjectResultCode.NO_BINDING_INTAKE.getMessage()); |
| | | } |
| | | // if (array.size() <= 0) { |
| | | // return BaseResponseUtils.buildFail(ProjectResultCode.NO_BINDING_INTAKE.getMessage()); |
| | | // } |
| | | return BaseResponseUtils.buildSuccess(array); |
| | | } catch (Exception e) { |
| | | log.error("查询控制器异常", e); |
| | |
| | | String fileName = URLEncoder.encode(rawFileName, "UTF-8").replaceAll("\\+", "%20"); |
| | | response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); |
| | | } |
| | | |
| | | |
| | | } |