| | |
| | | import org.springblade.modules.organ.entity.Organ; |
| | | import org.springblade.modules.organ.service.IOrganService; |
| | | import org.springblade.modules.organ.vo.OrganVO; |
| | | import org.springblade.modules.parcel.util.JsonUtils; |
| | | import org.springblade.modules.policy.entity.Policy; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 控制器 |
| | |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入organ") |
| | | public R<IPage<OrganVO>> page(OrganVO organ, Query query) { |
| | | IPage<OrganVO> pages = organService.selectOrganPage(Condition.getPage(query), organ); |
| | | public R<IPage<Organ>> page(@ApiIgnore @RequestParam Map<String, Object> organ, Query query) { |
| | | IPage<Organ> pages = organService.page(Condition.getPage(query), Condition.getQueryWrapper(organ, Organ.class)); |
| | | return R.data(pages); |
| | | } |
| | | |
| | |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(organService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | |
| | | |
| | | } |