kangwei:
法律法规模块、标准规范模块修改-后端
正在显示
1 个修改的文件
包含
7 行增加
和
4 行删除
... | @@ -69,20 +69,20 @@ public class MaterialInfoController { | ... | @@ -69,20 +69,20 @@ public class MaterialInfoController { |
69 | * @param pageSize | 69 | * @param pageSize |
70 | * @return | 70 | * @return |
71 | */ | 71 | */ |
72 | @AutoLog(value = "厂区资料管理-分页列表查询") | 72 | /* @AutoLog(value = "厂区资料管理-分页列表查询") |
73 | @ApiOperation(value = "厂区资料管理-分页列表查询", notes = "厂区资料管理-分页列表查询") | 73 | @ApiOperation(value = "厂区资料管理-分页列表查询", notes = "厂区资料管理-分页列表查询") |
74 | @GetMapping(value = "/list") | 74 | @GetMapping(value = "/list") |
75 | public Result<IPage<MaterialInfo>> queryPageList(MaterialInfo materialInfo, | 75 | public Result<IPage<MaterialInfo>> queryPageList(MaterialInfo materialInfo, |
76 | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | 76 | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
77 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { | 77 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { |
78 | /* String departIds = null; | 78 | *//* String departIds = null; |
79 | if (StringUtils.isBlank(materialInfo.getDepartId())&&StringUtils.isNotBlank(BaseContextHandler.getDeparts())) { | 79 | if (StringUtils.isBlank(materialInfo.getDepartId())&&StringUtils.isNotBlank(BaseContextHandler.getDeparts())) { |
80 | departIds = departService.getChildDepartId(BaseContextHandler.getDeparts()); | 80 | departIds = departService.getChildDepartId(BaseContextHandler.getDeparts()); |
81 | }else{ | 81 | }else{ |
82 | departIds = departService.getChildDepartId(materialInfo.getDepartId()); | 82 | departIds = departService.getChildDepartId(materialInfo.getDepartId()); |
83 | } | 83 | } |
84 | IPage<MaterialInfo> pageList = materialInfoService.getList(page, materialInfo, departIds); | 84 | IPage<MaterialInfo> pageList = materialInfoService.getList(page, materialInfo, departIds); |
85 | */ | 85 | *//* |
86 | Result<IPage<MaterialInfo>> result = new Result<IPage<MaterialInfo>>(); | 86 | Result<IPage<MaterialInfo>> result = new Result<IPage<MaterialInfo>>(); |
87 | Page<MaterialInfo> page = new Page<MaterialInfo>(pageNo, pageSize); | 87 | Page<MaterialInfo> page = new Page<MaterialInfo>(pageNo, pageSize); |
88 | QueryWrapper<MaterialInfo> queryWrapper = getMaterialInfoQueryWrapper(materialInfo); | 88 | QueryWrapper<MaterialInfo> queryWrapper = getMaterialInfoQueryWrapper(materialInfo); |
... | @@ -91,7 +91,7 @@ public class MaterialInfoController { | ... | @@ -91,7 +91,7 @@ public class MaterialInfoController { |
91 | result.setSuccess(true); | 91 | result.setSuccess(true); |
92 | result.setResult(pageList); | 92 | result.setResult(pageList); |
93 | return result; | 93 | return result; |
94 | } | 94 | }*/ |
95 | 95 | ||
96 | @AutoLog(value = "厂区资料管理-法律法规分页列表") | 96 | @AutoLog(value = "厂区资料管理-法律法规分页列表") |
97 | @ApiOperation(value = "厂区资料管理-法律法规分页列表", notes = "厂区资料管理-法律法规分页列表") | 97 | @ApiOperation(value = "厂区资料管理-法律法规分页列表", notes = "厂区资料管理-法律法规分页列表") |
... | @@ -103,6 +103,9 @@ public class MaterialInfoController { | ... | @@ -103,6 +103,9 @@ public class MaterialInfoController { |
103 | Page<MaterialInfo> page = new Page<MaterialInfo>(pageNo, pageSize); | 103 | Page<MaterialInfo> page = new Page<MaterialInfo>(pageNo, pageSize); |
104 | QueryWrapper<MaterialInfo> queryWrapper = new QueryWrapper(); | 104 | QueryWrapper<MaterialInfo> queryWrapper = new QueryWrapper(); |
105 | queryWrapper.eq("del_flag","0"); | 105 | queryWrapper.eq("del_flag","0"); |
106 | if(StringUtils.isNotEmpty(materialInfo.getFacInformationtype())){ | ||
107 | queryWrapper.eq("fac_informationtype",materialInfo.getFacInformationtype()); | ||
108 | } | ||
106 | if(StringUtils.isNotEmpty(materialInfo.getFacInformationName())){ | 109 | if(StringUtils.isNotEmpty(materialInfo.getFacInformationName())){ |
107 | queryWrapper.like("fac_information_name",materialInfo.getFacInformationName()); | 110 | queryWrapper.like("fac_information_name",materialInfo.getFacInformationName()); |
108 | } | 111 | } | ... | ... |
-
请 注册 或 登录 后发表评论