| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.annotations.*; |
| | |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.log.annotation.ApiLog; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.secure.annotation.PreAuth; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | |
| | | import org.sxkj.system.enums.DictEnum; |
| | | import org.sxkj.system.mapper.DeptMapper; |
| | | import org.sxkj.system.mapper.UserMapper; |
| | | import org.sxkj.system.param.DeptPageParam; |
| | | import org.sxkj.system.service.IDeptService; |
| | | import org.sxkj.system.vo.DeptVO; |
| | | import org.sxkj.system.wrapper.DeptWrapper; |
| | |
| | | return R.data(DeptWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | /** |
| | | * 飞手表 自定义分页 |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = " ") |
| | | public R<IPage<DeptVO>> page(DeptPageParam deptPageParam, Query query) { |
| | | IPage<DeptVO> pages = deptService.selectDeptPage(Condition.getPage(query), deptPageParam); |
| | | return R.data(pages); |
| | | } |
| | | /** |
| | | * 列表 |
| | | */ |
| | |
| | | @ApiOperation(value = "查询机构树(根据区域)") |
| | | public R deptsByAreaCode(@RequestParam(required = false) String areaCode) { |
| | | String areaCodez = HeaderUtils.getAreaCode(); |
| | | if(StringUtils.isNotBlank(areaCode)) { |
| | | areaCodez=areaCode; |
| | | if (StringUtils.isNotBlank(areaCode)) { |
| | | areaCodez = areaCode; |
| | | } |
| | | List<DeptVO> list = deptService.deptsByAreaCode(areaCodez); |
| | | return R.data(list); |