|
@@ -18,6 +18,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -60,6 +61,8 @@ public class Mrp10201Controller extends BaseController {
|
|
private IBizProductService productService;
|
|
private IBizProductService productService;
|
|
@Resource
|
|
@Resource
|
|
private IBizCompanyService companyService;
|
|
private IBizCompanyService companyService;
|
|
|
|
+ @Resource
|
|
|
|
+ HttpServletRequest request;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
private IBizTechnologicalProcessService technologicalProcessService;
|
|
private IBizTechnologicalProcessService technologicalProcessService;
|
|
@@ -78,6 +81,8 @@ public class Mrp10201Controller extends BaseController {
|
|
@PreAuthorize("@ss.hasPermi('business:productionPlan:query')")
|
|
@PreAuthorize("@ss.hasPermi('business:productionPlan:query')")
|
|
@GetMapping(value = "/getP2Plan")
|
|
@GetMapping(value = "/getP2Plan")
|
|
public TableDataInfo getList(BizProductionPlanDetail data) {
|
|
public TableDataInfo getList(BizProductionPlanDetail data) {
|
|
|
|
+ long tenantId = Long.parseLong(request.getHeader("tenantId"));
|
|
|
|
+ data.setTenantId(tenantId);
|
|
/*
|
|
/*
|
|
* 获取前端传递的参数信息
|
|
* 获取前端传递的参数信息
|
|
* pullP2PlanDetails:如果为 true,说明点击了“同步P2中的生产计划按钮”;
|
|
* pullP2PlanDetails:如果为 true,说明点击了“同步P2中的生产计划按钮”;
|