|  |  | 
 |  |  | import com.doumee.api.BaseController; | 
 |  |  | import com.doumee.core.annotation.excel.ExcelExporter; | 
 |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
 |  |  | import com.doumee.core.constants.ResponseStatus; | 
 |  |  | import com.doumee.core.exception.BusinessException; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | 
 |  |  |         return ApiResponse.success(solutionsService.findListForCompany(dateType)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("查询企业可使用方案(已签署)") | 
 |  |  |     @GetMapping("/getUseList") | 
 |  |  |     @RequiresPermissions("business:solutions:query") | 
 |  |  |     public ApiResponse<List<Solutions>> getUseList (@RequestParam Integer companyId,Integer dateType) { | 
 |  |  |         if(Objects.isNull(companyId)){ | 
 |  |  |             throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
 |  |  |         } | 
 |  |  |         if(Objects.isNull(dateType)){ | 
 |  |  |             dateType = Constants.TWO; | 
 |  |  |         } | 
 |  |  |         List<Solutions>  solutionsList = solutionsService.findListByCompanyId(dateType,companyId); | 
 |  |  |         return ApiResponse.success(solutionsList); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("根据历史版本查询当前最新启用版本") | 
 |  |  |     @GetMapping("/getNewVersion") | 
 |  |  |     public ApiResponse<Solutions> getNewVersion (@RequestParam Integer solutionId) { |