| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.ManPakOut; |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.OrderListDTO; |
| | |
| | | private DocTypeService docTypeService; |
| | | @Autowired |
| | | private WrkDetlService wrkDetlService; |
| | | @Autowired |
| | | private ManPakOutService manPakOutService; |
| | | |
| | | @Override |
| | | public Order selectByNo(String orderNo) { |
| | |
| | | |
| | | @Override |
| | | public void remove(Long orderId) { |
| | | |
| | | Order order = this.selectById(orderId); |
| | | |
| | | int count = manPakOutService.selectCount(new EntityWrapper<ManPakOut>().eq("doc_num", order.getOrderNo())); |
| | | |
| | | if(count > 0){ |
| | | throw new CoolException("请先删除拣货单"); |
| | | } |
| | | |
| | | if (!this.deleteById(orderId)) { |
| | | throw new CoolException("删除单据失败"); |
| | | } |