|  |  |  | 
|---|
|  |  |  | import com.zy.asrs.common.domain.dto.WrkTraceVo; | 
|---|
|  |  |  | import com.zy.asrs.common.domain.param.OrderDomainParam; | 
|---|
|  |  |  | import com.zy.asrs.common.wms.entity.*; | 
|---|
|  |  |  | import com.zy.asrs.common.wms.mapper.OrderDetlMapper; | 
|---|
|  |  |  | import com.zy.asrs.common.wms.service.*; | 
|---|
|  |  |  | import com.zy.asrs.framework.annotations.ManagerAuth; | 
|---|
|  |  |  | import com.zy.asrs.framework.common.Cools; | 
|---|
|  |  |  | 
|---|
|  |  |  | private SnowflakeIdWorker snowflakeIdWorker; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private DocTypeService docTypeService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private LocInPrintMatService locInPrintMatService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MatService matService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/order/list/orderNo") | 
|---|
|  |  |  | public R orderListorderNo(@RequestParam String orderNo) { | 
|---|
|  |  |  | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/order/dy") | 
|---|
|  |  |  | @ManagerAuth(memo = "手动删除订单") | 
|---|
|  |  |  | @Transactional | 
|---|
|  |  |  | 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.setStatus(1); | 
|---|
|  |  |  | locInPrintMat.setOrderNo(orderDetl.getOrderNo()); | 
|---|
|  |  |  | locInPrintMat.setBatch(orderDetl.getBatch()); | 
|---|
|  |  |  | locInPrintMat.setCreateBy(getUserId()); | 
|---|
|  |  |  | locInPrintMat.setCreateTime(new Date()); | 
|---|
|  |  |  | locInPrintMat.setUpdateTime(new Date()); | 
|---|
|  |  |  | if(!Cools.isEmpty(mat)){ | 
|---|
|  |  |  | locInPrintMat.setDecrees(mat.getDecrees()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | locInPrintMatService.save(locInPrintMat); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/orderQuery/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | public R query(String condition) { | 
|---|