|
@@ -829,13 +829,13 @@ public class BizDayworkItemController extends BaseController {
|
|
|
//查询是否已经分配资源组
|
|
|
BizProductionResourceGroupSubPlan groupSubPlan=new BizProductionResourceGroupSubPlan();
|
|
|
groupSubPlan.setDeptId(bizDayworkItem.getDeptId());
|
|
|
- groupSubPlan.setProductionPlanDetailId(bizDayworkItem.getProductionPlanDetailId());
|
|
|
+ groupSubPlan.setProductionPlanDetailId(daywork.getProductionPlanDetailId());
|
|
|
|
|
|
List<BizProductionResourceGroupSubPlan> groupSubPlanList = bizProductionResourceGroupSubPlanService.getAotList(groupSubPlan);
|
|
|
//如果没分配
|
|
|
if(groupSubPlanList.size()==0){
|
|
|
//查产品id
|
|
|
- BizProductionPlanDetail productionPlanDetail = bizProductionPlanDetailService.getOne(new QueryWrapper<BizProductionPlanDetail>().eq("id", bizDayworkItem.getProductionPlanDetailId()));
|
|
|
+ BizProductionPlanDetail productionPlanDetail = bizProductionPlanDetailService.getOne(new QueryWrapper<BizProductionPlanDetail>().eq("id", daywork.getProductionPlanDetailId()));
|
|
|
//存放保存的subPlanList
|
|
|
List<BizProductionResourceGroupSubPlan> subPlanList = new ArrayList<>();
|
|
|
for (BizProductionResourceGroup info : productionResourceGroupList) {
|