| | |
| | | @Resource |
| | | private OrderDetlMapper orderDetlMapper; |
| | | |
| | | @RequestMapping(value = "/orderDetl/search/pda/auth") |
| | | @ManagerAuth |
| | | public R pdaOrderDetlSearch(@RequestParam(required = false)String condition,@RequestParam(required = false) String order){ |
| | | EntityWrapper<OrderDetl> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | // wrapper.like("matnr", condition).or().like("maktx", condition); |
| | | |
| | | wrapper.like("matnr", condition); |
| | | } |
| | | wrapper.eq("order_no", order); |
| | | wrapper.orderBy("create_time", false); |
| | | List<OrderDetl> mats = orderDetlService.selectList(wrapper); |
| | | return R.ok().add(mats); |
| | | } |
| | | |
| | | @PostMapping("/orderDetl/list/pda/auth") |
| | | public R getPdaOrderDetl(@RequestBody Map<String,Object> map) { |
| | | EntityWrapper<OrderDetl> wrapper = new EntityWrapper<>(); |
| | |
| | | if (Cools.isEmpty(id)) { |
| | | return R.parse("id为空"); |
| | | } |
| | | return R.ok(orderDetlMapper.selectPrintData(id)); |
| | | return R.ok(orderDetlService.selectById(id)); |
| | | } |
| | | |
| | | } |