| | |
| | | treeUtils.getTagIdList(Long.parseLong(tagId.toString()), nodes); |
| | | wrapper.in("tag_id", nodes); |
| | | if (!Cools.isEmpty(param.get("matnr"))) { |
| | | wrapper.eq("matnr", param.get("matnr")); |
| | | wrapper.like("matnr", param.get("matnr")); |
| | | } |
| | | if (!Cools.isEmpty(param.get("maktx"))) { |
| | | wrapper.eq("maktx", param.get("maktx")); |
| | | wrapper.like("maktx", param.get("maktx")); |
| | | } |
| | | if (!Cools.isEmpty(param.get("decrees"))) { |
| | | wrapper.like("decrees", param.get("decrees")); |
| | | } |
| | | // if (!Cools.isEmpty(param.get("owner$"))) { |
| | | // wrapper.eq("owner", param.get("owner$")); |
| | | // } |
| | | param.remove("matnr"); |
| | | param.remove("maktx"); |
| | | param.remove("decrees"); |
| | | // param.remove("owner$"); |
| | | allLike(Mat.class, param.keySet(), wrapper, condition); |
| | | return R.ok(matService.page(new Page<>(curr, limit), wrapper)); |
| | | } |