| | |
| | | import com.doumee.dao.business.model.Worktype; |
| | | import com.doumee.service.business.WorktypeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(worktypeService.findById(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("根据保险方案查询工种信息") |
| | | @GetMapping("/getBySolutionsId") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "solutionId", value = "方案主键", required = true), |
| | | }) |
| | | public ApiResponse<List<Worktype>> getBySolutionsId (@RequestParam Integer solutionId) { |
| | | return ApiResponse.success(worktypeService.getBySolutionsId(solutionId)); |
| | | } |
| | | |
| | | |
| | | } |