| | |
| | | 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); |
| | | } |
| | | |
| | |
| | | print.setBarcode(mat.getBarcode()); |
| | | print.setMaktx(mat.getMaktx()); |
| | | print.setSpecs(mat.getSpecs()); |
| | | print.setSupp(mat.getSupp()); |
| | | print.setSku(mat.getSku()); |
| | | print.setUnit(mat.getUnit()); |
| | | print.setMemo(mat.getMemo()); |
| | | res.add(print); |