| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.staff.pojo.SchemeApplicableStaff; |
| | | import com.ruoyi.staff.service.SchemeApplicableStaffService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @since 2026-03-05 11:50:17 |
| | | */ |
| | | @Api(tags = "社保方案适用人员表") |
| | | @Tag(name = "社保方案适用人员表") |
| | | @RestController |
| | | @RequestMapping("/schemeApplicableStaff") |
| | | @AllArgsConstructor |
| | |
| | | |
| | | |
| | | @GetMapping("/listPage") |
| | | @ApiOperation(value = "分页查询") |
| | | @Operation(summary = "分页查询") |
| | | public AjaxResult listPage(Page page, SchemeApplicableStaff schemeApplicableStaff) { |
| | | return schemeApplicableStaffService.listPage(page,schemeApplicableStaff); |
| | | } |
| | | |
| | | @PostMapping("/add") |
| | | @ApiOperation(value = "添加") |
| | | @Operation(summary = "添加") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Log(title = "社保方案适用人员表", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody SchemeApplicableStaff schemeApplicableStaff) { |
| | |
| | | } |
| | | |
| | | @PostMapping("/updateSchemeApplicableStaff") |
| | | @ApiOperation(value = "修改") |
| | | @Operation(summary = "修改") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Log(title = "社保方案适用人员表", businessType = BusinessType.UPDATE) |
| | | public AjaxResult updateSchemeApplicableStaff(@RequestBody SchemeApplicableStaff schemeApplicableStaff) { |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation(value = "删除") |
| | | @Operation(summary = "删除") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Log(title = "社保方案适用人员表", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |