|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | log.error("获取开卡记录异常", e); | 
|---|
|  |  |  | log.error("获取控制器记录异常", e); | 
|---|
|  |  |  | return BaseResponseUtils.buildException(e.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | po.setOperateDt(operateTime); | 
|---|
|  |  |  | po.setDeleted((byte) 0); | 
|---|
|  |  |  | po.setFindDt(operateTime); | 
|---|
|  |  |  | if (po.getAddWays() != (byte) 2) { | 
|---|
|  |  |  | if (po.getAddWays() == null) { | 
|---|
|  |  |  | po.setAddWays((byte) 1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Integer rec = Optional.ofNullable(controllerSv.addController(po)).orElse(0); | 
|---|
|  |  |  | 
|---|
|  |  |  | 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"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|