Ver Fonte

修改生产子计划

zhuangdezheng há 1 ano atrás
pai
commit
8e7c87aa38

+ 6 - 6
src/main/java/cn/ezhizao/project/business/controller/BizProductionPlanDetailController.java

@@ -34,8 +34,8 @@ public class BizProductionPlanDetailController extends BaseController {
     @PreAuthorize("@ss.hasPermi('business:productionPlanDetail:list')")
     @GetMapping("/list")
     public TableDataInfo list( BizProductionPlanDetail data) throws NoSuchFieldException, IllegalAccessException {
-        String tenantId = request.getHeader("tenantId");
-        data.setTenantId(Long.valueOf(tenantId));
+//        String tenantId = request.getHeader("tenantId");
+//        data.setTenantId(Long.valueOf(tenantId));
         startPage();
         List<BizProductionPlanDetail> list = bizProductionPlanDetailService.getList(data);
         return getDataTable(list);
@@ -57,8 +57,8 @@ public class BizProductionPlanDetailController extends BaseController {
     @Log(title = "生产计划明细", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody BizProductionPlanDetail bizProductionPlanDetail) throws NoSuchFieldException, IllegalAccessException {
-        String tenantId = request.getHeader("tenantId");
-        bizProductionPlanDetail.setTenantId(Long.valueOf(tenantId));
+//        String tenantId = request.getHeader("tenantId");
+//        bizProductionPlanDetail.setTenantId(Long.valueOf(tenantId));
         return toAjax(bizProductionPlanDetailService.save(bizProductionPlanDetail));
     }
 
@@ -69,8 +69,8 @@ public class BizProductionPlanDetailController extends BaseController {
     @Log(title = "生产计划明细", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody BizProductionPlanDetail bizProductionPlanDetail) throws NoSuchFieldException, IllegalAccessException {
-        String tenantId = request.getHeader("tenantId");
-        bizProductionPlanDetail.setTenantId(Long.valueOf(tenantId));
+//        String tenantId = request.getHeader("tenantId");
+//        bizProductionPlanDetail.setTenantId(Long.valueOf(tenantId));
         return toAjax(bizProductionPlanDetailService.updateById(bizProductionPlanDetail));
     }
 

+ 7 - 7
src/main/java/cn/ezhizao/project/business/controller/BizProductionPlanDetailSubDetailController.java

@@ -57,8 +57,8 @@ public class BizProductionPlanDetailSubDetailController extends BaseController {
     @PreAuthorize("@ss.hasPermi('business:planDetailSubDetail:list')")
     @GetMapping("/list")
     public TableDataInfo list(BizProductionPlanDetailSubDetail bizProductionPlanDetailSubDetail) throws NoSuchFieldException, IllegalAccessException {
-        String tenantId = request.getHeader("tenantId");
-        bizProductionPlanDetailSubDetail.setTenantId(Long.valueOf(tenantId));
+//        String tenantId = request.getHeader("tenantId");
+//        bizProductionPlanDetailSubDetail.setTenantId(Long.valueOf(tenantId));
         startPage();
         List<BizProductionPlanDetailSubDetail> list = bizProductionPlanDetailSubDetailService.getList(bizProductionPlanDetailSubDetail);
         return getDataTable(list);
@@ -127,8 +127,8 @@ public class BizProductionPlanDetailSubDetailController extends BaseController {
     @Log(title = "生产子计划明细", businessType = BusinessType.INSERT)
     @PostMapping("/save")
     public AjaxResult add(@RequestBody BizProductionPlanDetailSubDetail bizProductionPlanDetailSubDetail) throws NoSuchFieldException, IllegalAccessException {
-        String tenantId = request.getHeader("tenantId");
-        bizProductionPlanDetailSubDetail.setTenantId(Long.valueOf(tenantId));
+//        String tenantId = request.getHeader("tenantId");
+//        bizProductionPlanDetailSubDetail.setTenantId(Long.valueOf(tenantId));
 
         /*
          * 德迈仕生产批号生成规则
@@ -198,7 +198,7 @@ public class BizProductionPlanDetailSubDetailController extends BaseController {
             bizLot.setProductId(bizProductionPlanDetailSubDetail.getProductId());
             bizLot.setProductDescription(bizProductionPlanDetailSubDetail.getProductDescription());
             bizLot.setProductionQuantity(oneLotQuantity);
-            bizLot.setTenantId(bizProductionPlanDetailSubDetail.getTenantId());
+//            bizLot.setTenantId(bizProductionPlanDetailSubDetail.getTenantId());
             if (i == lotNumber - 1) {
                 bizLot.setProductionQuantity(lastLotQuantity);
             }
@@ -218,8 +218,8 @@ public class BizProductionPlanDetailSubDetailController extends BaseController {
     @Log(title = "生产子计划明细", businessType = BusinessType.UPDATE)
     @PutMapping("/save")
     public AjaxResult edit(@RequestBody BizProductionPlanDetailSubDetail bizProductionPlanDetailSubDetail) throws NoSuchFieldException, IllegalAccessException {
-        String tenantId = request.getHeader("tenantId");
-        bizProductionPlanDetailSubDetail.setTenantId(Long.valueOf(tenantId));
+//        String tenantId = request.getHeader("tenantId");
+//        bizProductionPlanDetailSubDetail.setTenantId(Long.valueOf(tenantId));
         return toAjax(bizProductionPlanDetailSubDetailService.updateById(bizProductionPlanDetailSubDetail));
     }