|
|
|
@ -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("创建成功");
|
|
|
|
|
}
|
|
|
|
|