| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ltkj.framework.config.MatchUtils; |
| | | import com.ltkj.hosp.domain.*; |
| | | import com.ltkj.hosp.service.*; |
| | |
| | | //@PreAuthorize("@ss.hasPermi('hosp:rules:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询规则+病种列表") |
| | | public TableDataInfo list(TjRules tjRules) { |
| | | startPage(); |
| | | public AjaxResult list(TjRules tjRules) { |
| | | |
| | | Page<TjRules> page=new Page<>(tjRules.getPageNum(),tjRules.getPageSize()); |
| | | |
| | | LambdaQueryWrapper<TjRules> wq = new LambdaQueryWrapper<>(); |
| | | if (tjRules.getProId() != null) { |
| | | List<TjProject> projects = projectService.getTjProjectListBySoneId(tjRules.getProId()); |
| | |
| | | wq.eq(TjRules::getSex, tjRules.getSex()); |
| | | } |
| | | wq.orderByAsc(TjRules::getSort); |
| | | List<TjRules> list = tjRulesService.list(wq); |
| | | |
| | | return getDataTable(list); |
| | | // List<TjRules> list = tjRulesService.list(wq); |
| | | Page<TjRules> page1 = tjRulesService.page(page, wq); |
| | | Map<String,Object>map=new HashMap<>(); |
| | | map.put("rows",page1.getRecords()); |
| | | map.put("total",page1.getTotal()); |
| | | return AjaxResult.success(map); |
| | | } |
| | | |
| | | |