| | |
| | | import com.ruoyi.project.domain.BaseOnlyvalue; |
| | | import com.ruoyi.project.service.IBaseOnlyvalueService; |
| | | import com.ruoyi.web.controller.common.OnlyValueCommon; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | * @date 2021-11-24 |
| | | */ |
| | | @RestController |
| | | @Api(description = "外围单位人员",tags={"外围单位人员"}) |
| | | @RequestMapping("/project/externalperson") |
| | | public class ServiceExternalpersonController extends BaseController { |
| | | @Autowired |
| | |
| | | @Autowired |
| | | private OnlyValueCommon onlyValueCommon; |
| | | |
| | | @ApiOperation("查询外围单位人员列表") |
| | | /** |
| | | * 查询外围单位人员列表 |
| | | */ |
| | |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @ApiOperation("导出外围单位人员列表") |
| | | /** |
| | | * 导出外围单位人员列表 |
| | | */ |
| | |
| | | return util.exportExcel(list, "外围单位人员数据"); |
| | | } |
| | | |
| | | @ApiOperation("获取外围单位人员详细信息") |
| | | /** |
| | | * 获取外围单位人员详细信息 |
| | | */ |
| | |
| | | return AjaxResult.success(serviceExternalpersonService.getById(id)); |
| | | } |
| | | |
| | | @ApiOperation("新增外围单位人员") |
| | | /** |
| | | * 新增外围单位人员 |
| | | */ |
| | |
| | | return AjaxResult.success(serviceExternalperson); |
| | | } |
| | | |
| | | @ApiOperation("修改外围单位人员") |
| | | /** |
| | | * 修改外围单位人员 |
| | | */ |
| | |
| | | return toAjax(serviceExternalpersonService.updateById(serviceExternalperson)); |
| | | } |
| | | |
| | | @ApiOperation("删除外围单位人员") |
| | | /** |
| | | * 删除外围单位人员 |
| | | */ |
| | |
| | | return toAjax(serviceExternalpersonService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("获取外围单位人员详细信息") |
| | | /** |
| | | * 获取外围单位人员详细信息 |
| | | */ |