| | |
| | | private DocTypeService docTypeService; |
| | | @Autowired |
| | | private LocInPrintMatService locInPrintMatService; |
| | | @Autowired |
| | | private MatService matService; |
| | | |
| | | @RequestMapping(value = "/order/list/orderNo") |
| | | public R orderListorderNo(@RequestParam String orderNo) { |
| | |
| | | public R dy(@RequestParam Long orderId){ |
| | | List<OrderDetl> list = orderDetlService.list(new LambdaQueryWrapper<OrderDetl>().eq(OrderDetl::getOrderId, orderId)); |
| | | for (OrderDetl orderDetl : list) { |
| | | Mat mat = matService.getOne(new LambdaQueryWrapper<Mat>().eq(Mat::getMatnr, orderDetl.getMatnr())); |
| | | LocInPrintMat locInPrintMat = new LocInPrintMat(); |
| | | locInPrintMat.setMatnr(orderDetl.getMatnr()); |
| | | locInPrintMat.setMaktx(orderDetl.getMaktx()); |
| | |
| | | locInPrintMat.setCreateBy(getUserId()); |
| | | locInPrintMat.setCreateTime(new Date()); |
| | | locInPrintMat.setUpdateTime(new Date()); |
| | | // locInPrintMat.setDercees(orderDetl.getDercees); |
| | | if(!Cools.isEmpty(mat)){ |
| | | locInPrintMat.setDecrees(mat.getDecrees()); |
| | | } |
| | | locInPrintMatService.save(locInPrintMat); |
| | | } |
| | | return R.ok(); |