|  |  | 
 |  |  |         po.setOperateDt(operateTime); | 
 |  |  |         po.setDeleted((byte) 0); | 
 |  |  |         po.setFindDt(operateTime); | 
 |  |  |         if (po.getAddWays() != 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"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |