采购退货,不生成采购订单

product
bawei 1 year ago
parent ecedb869ce
commit ed43573418

@ -167,13 +167,13 @@ public class PurchasebackController {
//子表数据
if(ObjectUtil.isNotEmpty(purchasebackCrForm.getJg_purchaseorder())){
PurchaseorderEntity jg_purchaseorderentity = JsonUtil.getJsonToBean(purchasebackCrForm.getJg_purchaseorder(), PurchaseorderEntity.class);
jg_purchaseorderentity.setId(entity.getPurchaseOrderId());
//自动生成的字段
jg_purchaseorderentity.setId(mainId);
purchaseorderService.save(jg_purchaseorderentity);
}
// if(ObjectUtil.isNotEmpty(purchasebackCrForm.getJg_purchaseorder())){
// PurchaseorderEntity jg_purchaseorderentity = JsonUtil.getJsonToBean(purchasebackCrForm.getJg_purchaseorder(), PurchaseorderEntity.class);
// jg_purchaseorderentity.setId(entity.getPurchaseOrderId());
// //自动生成的字段
// jg_purchaseorderentity.setId(mainId);
// purchaseorderService.save(jg_purchaseorderentity);
// }
return ActionResult.success("创建成功");
}

Loading…
Cancel
Save