| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.Solutions; |
| | | import com.doumee.service.business.SolutionsService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | |
| | | @ApiOperation("列表查询") |
| | | @PostMapping("/list") |
| | | @RequiresPermissions("business:solutions:query") |
| | | public ApiResponse<List<Solutions>> findList () { |
| | | return ApiResponse.success(solutionsService.findListForCompany()); |
| | | public ApiResponse<List<Solutions>> findList (Solutions solutions) { |
| | | Integer dateType = Constants.TWO; |
| | | if(!Objects.isNull(solutions)&&!Objects.isNull(solutions.getDataType())){ |
| | | dateType = solutions.getDataType(); |
| | | } |
| | | return ApiResponse.success(solutionsService.findListForCompany(dateType)); |
| | | } |
| | | |
| | | @ApiOperation("根据历史版本查询当前最新启用版本") |
| | | @GetMapping("/getNewVersion") |
| | | public ApiResponse<Solutions> getNewVersion (@RequestParam Integer solutionId) { |
| | | return ApiResponse.success(solutionsService.getNewVersion(solutionId)); |
| | | } |
| | | |
| | | |
| | | // @ApiOperation("列表查询") |
| | | // @PostMapping("/page") |
| | | // public ApiResponse<List<Solutions>> findPage (@RequestBody Solutions solutions) { |