输入:一个类名(举例)com.leanwo.prodog.server.model.topnc.PurchaseOrder
输出:如下格式的文本,主要用途是深度复制对象。
public PurchaseOrder customerClone(){
PurchaseOrder purchaseOrder = new PurchaseOrder();
purchaseOrder.setDocumentNo(this.documentNo);
purchaseOrder.setDocumentDateTime(this.documentDateTime);
…
…
/// 对于list类型的处理方式如下
If(this.purchaseOrderLines != null){
PurchaseOrderLineService purchaseOrderLineService = new PurchaseOrderLineServiceImpl();
PurchaseOrderLine purchaseOrderLine = purchaseOrderLineService.customerClone();
purchaseOrderLine.setPurchaseOrder(purchaseOrder);
}
}