| | |
| | | @GetMapping("getList") |
| | | @ApiOperation(value = "查询体检套餐列表") |
| | | public TableDataInfo getList(@RequestParam(required = false) @ApiParam(value = "性别") String cusSex) { |
| | | // List<TjPackage> tjPackageList = null; |
| | | // List<TjPackage> list = null; |
| | | // if (cusSex == null || cusSex.equals("2")) { |
| | | // if (redisCache.hasKey("getTjPackageListBySex")) { |
| | | // list = redisCache.getCacheMapValue("getTjPackageListBySex", "getTjPackageListByManAndWoMan"); |
| | | // } else { |
| | | // tjPackageList = tjPackageService.list(new LambdaQueryWrapper<TjPackage>().eq(TjPackage::getPacStatus,0)); |
| | | // } |
| | | // } else { |
| | | // if (cusSex.equals("0")) { |
| | | // if (redisCache.hasKey("getTjPackageListBySex")) { |
| | | // list = redisCache.getCacheMapValue("getTjPackageListBySex", "getTjPackageListByMan"); |
| | | // } else { |
| | | // tjPackageList = tjPackageService.getTjPackageListByMan(); |
| | | // } |
| | | // } else { |
| | | // if (redisCache.hasKey("getTjPackageListBySex")) { |
| | | // list = redisCache.getCacheMapValue("getTjPackageListBySex", "getTjPackageListByWoMan"); |
| | | // } else { |
| | | // tjPackageList = tjPackageService.getTjPackageListByWoMan(); |
| | | // } |
| | | // } |
| | | // } |
| | | // asyncService.getTjPackageList(); |
| | | // if (null != list && list.size() > 0) { |
| | | // return getDataTable(list); |
| | | // } else { |
| | | // getTjPackageList(tjPackageList); |
| | | // return getDataTable(tjPackageList); |
| | | // } |
| | | String pacName=""; |
| | | if (cusSex==null || cusSex.equals("2")) { |
| | | final List<TjPackage> pacListBySqlAndAll = tjPackageService.getPacListBySqlAndAll(pacName); |