|
@@ -78,8 +78,7 @@ public class CaoYaoYiZhuServer {
|
|
|
return ResultVoUtil.success(dao.fuYongFangFa());
|
|
|
}
|
|
|
|
|
|
- public ResultVo<IPage<YiZhuMingChen>> huoQuCaoYao(String queryName, Integer groupNo, long currentPage, long pageSize, long total) {
|
|
|
- IPage<YiZhuMingChen> page = new Page<>(currentPage, pageSize, total == 0);
|
|
|
+ public ResultVo<List<YiZhuMingChen>> huoQuCaoYao(String queryName, Integer groupNo) {
|
|
|
String name = StringUtil.englishToCapital(queryName);
|
|
|
QueryWrapper<?> qw = new QueryWrapper<>();
|
|
|
qw.and(QueryWrapper -> QueryWrapper
|
|
@@ -92,8 +91,7 @@ public class CaoYaoYiZhuServer {
|
|
|
.like("code", name)
|
|
|
)
|
|
|
.eq("group_no", groupNo);
|
|
|
- dao.huoQuCaoYao(page, qw);
|
|
|
- return ResultVoUtil.success(page);
|
|
|
+ return ResultVoUtil.success(dao.huoQuCaoYao(qw));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -109,7 +107,9 @@ public class CaoYaoYiZhuServer {
|
|
|
.like("pattern_name", name)
|
|
|
);
|
|
|
if (publicServer.noNeedRule(1, 38)) {
|
|
|
- qw.eq("dept_code", deptCode);
|
|
|
+ if (StringUtil.notBlank(deptCode)) {
|
|
|
+ qw.eq("dept_code", deptCode);
|
|
|
+ }
|
|
|
}
|
|
|
qw.groupBy("pattern_name");
|
|
|
dao.huoQuMuBan(page, qw);
|