|
|
@ -19,6 +19,8 @@ import org.jeecg.modules.productplan.entity.ZyPlanProcess; |
|
|
|
import org.jeecg.modules.productplan.entity.ZyProductPlan; |
|
|
|
import org.jeecg.modules.productplan.entity.ZyProductPlan; |
|
|
|
import org.jeecg.modules.productplan.mapper.ZyPlanProcessMapper; |
|
|
|
import org.jeecg.modules.productplan.mapper.ZyPlanProcessMapper; |
|
|
|
import org.jeecg.modules.productplan.mapper.ZyProductPlanMapper; |
|
|
|
import org.jeecg.modules.productplan.mapper.ZyProductPlanMapper; |
|
|
|
|
|
|
|
import org.jeecg.modules.workorder.entity.WorkOrder; |
|
|
|
|
|
|
|
import org.jeecg.modules.workorder.mapper.WorkOrderMapper; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
@ -42,6 +44,10 @@ public class HangerLocationServiceImpl extends ServiceImpl<HangerLocationMapper, |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private HangerLocationMapper hangerLocationMapper; |
|
|
|
private HangerLocationMapper hangerLocationMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//工单
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private WorkOrderMapper workOrderMapper; |
|
|
|
|
|
|
|
|
|
|
|
//衣架工单绑定
|
|
|
|
//衣架工单绑定
|
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private HangerMakerMapper hangerMakerMapper; |
|
|
|
private HangerMakerMapper hangerMakerMapper; |
|
|
@ -91,8 +97,16 @@ public class HangerLocationServiceImpl extends ServiceImpl<HangerLocationMapper, |
|
|
|
{ |
|
|
|
{ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//得到所有工单
|
|
|
|
|
|
|
|
List<WorkOrder> workList=workOrderMapper.selectBatchIds(woList); |
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
List<String> workCodeList=new ArrayList<>(); |
|
|
|
|
|
|
|
for(WorkOrder wk:workList) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
workCodeList.add(wk.getProductCode()); |
|
|
|
|
|
|
|
} |
|
|
|
QueryWrapper<ZyProductPlan> qwProduct=new QueryWrapper<>(); |
|
|
|
QueryWrapper<ZyProductPlan> qwProduct=new QueryWrapper<>(); |
|
|
|
qwProduct.in("product_code",woList); |
|
|
|
qwProduct.in("product_code",workCodeList); |
|
|
|
List<ZyProductPlan> productPlanList=zyProductPlanMapper.selectList(qwProduct); |
|
|
|
List<ZyProductPlan> productPlanList=zyProductPlanMapper.selectList(qwProduct); |
|
|
|
//查找有所传感器
|
|
|
|
//查找有所传感器
|
|
|
|
QueryWrapper<Sensor> qws=new QueryWrapper<>(); |
|
|
|
QueryWrapper<Sensor> qws=new QueryWrapper<>(); |
|
|
|