소스 검색

成本报表 保存报错问题

liuchaohui 2 년 전
부모
커밋
fac175a59f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/controller/SyCostAllocationController.java

+ 3 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/controller/SyCostAllocationController.java

@@ -199,9 +199,9 @@ public class SyCostAllocationController {
     @AutoLog(value = "成本分配-添加")
     @PostMapping(value = "/addd")
     public Result<?> addd(@RequestBody SyCostAllocationPage syCostAllocationPage) {
-        SyCostAllocation syCostAllocation = new SyCostAllocation();
-        BeanUtils.copyProperties(syCostAllocationPage, syCostAllocation);
-        syCostAllocationService.saveMain(syCostAllocation, syCostAllocationPage.getSyCostAllocationAccidentList(), syCostAllocationPage.getSyCostAllocationCostpayList(), syCostAllocationPage.getSyCostAllocationFabricList(), syCostAllocationPage.getSyCostAllocationIngredientList(), syCostAllocationPage.getSyCostAllocationShipdetailList());
+//        SyCostAllocation syCostAllocation = new SyCostAllocation();
+//        BeanUtils.copyProperties(syCostAllocationPage, syCostAllocation);
+//        syCostAllocationService.saveMain(syCostAllocation, syCostAllocationPage.getSyCostAllocationAccidentList(), syCostAllocationPage.getSyCostAllocationCostpayList(), syCostAllocationPage.getSyCostAllocationFabricList(), syCostAllocationPage.getSyCostAllocationIngredientList(), syCostAllocationPage.getSyCostAllocationShipdetailList());
         return Result.OK("添加成功!");
     }