| | |
| | | return R.ok().add(mats); |
| | | } |
| | | |
| | | // @RequestMapping(value = "/mat/search/pda/auth") |
| | | // @ManagerAuth |
| | | // public R pdaSearch(@RequestParam(required = false)String condition){ |
| | | // EntityWrapper<Mat> wrapper = new EntityWrapper<>(); |
| | | // if (!Cools.isEmpty(condition)) { |
| | | //// wrapper.like("matnr", condition).or().like("maktx", condition); |
| | | // wrapper.like("matnr", condition).or().like("specs", condition); |
| | | // } |
| | | // wrapper.orderBy("create_time", false); |
| | | // List<Mat> mats = matService.selectList(wrapper); |
| | | // return R.ok().add(mats); |
| | | // } |
| | | |
| | | @RequestMapping(value = "/mat/search/pda/auth") |
| | | @ManagerAuth |
| | | public R pdaSearch(@RequestParam(required = false)String condition){ |
| | | EntityWrapper<Mat> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | // wrapper.like("matnr", condition).or().like("maktx", condition); |
| | | wrapper.like("matnr", condition).or().like("specs", condition); |
| | | } |
| | | wrapper.orderBy("create_time", false); |
| | | List<Mat> mats = matService.selectList(wrapper); |
| | | List<Mat> mats = matService.selectByMatnrLink10(condition); |
| | | return R.ok().add(mats); |
| | | } |
| | | |