| | |
| | | package com.dy.pmsStation.assemblyStep; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.dy.pmsGlobal.daoPlt.PltProductQualityInspectionItemsMapper; |
| | | import com.dy.pmsGlobal.daoPlt.PltProductTestInspectionItemsMapper; |
| | | import com.dy.pmsGlobal.daoPr.PrAssemblyPlanMapper; |
| | | import com.dy.pmsGlobal.daoPr.PrProductionNodeMapper; |
| | | import com.dy.pmsGlobal.daoSta.*; |
| | | import com.dy.pmsGlobal.pojoPlt.PltProductQualityInspectionItems; |
| | | import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems; |
| | | import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; |
| | | import com.dy.pmsGlobal.pojoPr.PrProductionNode; |
| | | import com.dy.pmsGlobal.pojoSta.*; |
| | |
| | | // private PrProductionProcessMapper processDao; |
| | | private PrProductionNodeMapper nodeDao; |
| | | private StaRepairInfoMapper repairInfoDao; |
| | | private PltProductQualityInspectionItemsMapper qualityItemsDao; |
| | | private PltProductTestInspectionItemsMapper testItemsDao; |
| | | |
| | | @Autowired |
| | | public void setDeviceLastDao(StaDeviceLastMapper deviceLastDao) { |
| | | this.deviceLastDao = deviceLastDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setDeviceLifeDao(StaDeviceLifeMapper deviceLifeDao) { |
| | | this.deviceLifeDao = deviceLifeDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setWipSnExDao(StaWipSnExMapper wipSnExDao) { |
| | | this.wipSnExDao = wipSnExDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setDeviceProductionLogDao(StaDeviceProductionLogMapper deviceProductionLogDao) { |
| | | this.deviceProductionLogDao = deviceProductionLogDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setAssemblyWorkLastDao(StaAssemblyWorkLastMapper assemblyWorkLastDao) { |
| | | this.assemblyWorkLastDao = assemblyWorkLastDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setAssemblyPlanDao(PrAssemblyPlanMapper assemblyPlanDao) { |
| | | this.assemblyPlanDao = assemblyPlanDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setNodeDao(PrProductionNodeMapper nodeDao) { |
| | | this.nodeDao = nodeDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setRepairInfoDao(StaRepairInfoMapper repairInfoDao) { |
| | | this.repairInfoDao = repairInfoDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setQualityItemsDao(PltProductQualityInspectionItemsMapper qualityItemsDao) { |
| | | this.qualityItemsDao = qualityItemsDao; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setTestItemsDao(PltProductTestInspectionItemsMapper testItemsDao) { |
| | | this.testItemsDao = testItemsDao; |
| | | } |
| | | |
| | | @Transactional |
| | |
| | | record.status = getStatus(params.status,node.isEnd); |
| | | return record; |
| | | } |
| | | |
| | | private void saveSnEx(StaAssemblyWorkLast workLast, List<String> deviceList,List<String> materialList, PrAssemblyPlan plan){ |
| | | for (String material:materialList) { |
| | | StaWipSnEx snEx = new StaWipSnEx(); |
| | |
| | | wipSnExDao.insertSelective(snEx); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 状态: 1:组装中,2:完成,3:维修,4:报废 |
| | | * |
| | | * @param status 状态 |
| | | * @param isEndNode 是否结束节点 |
| | | * @return 状态 |
| | |
| | | } |
| | | return count; |
| | | } |
| | | |
| | | public List<PltProductQualityInspectionItems> getQualityItems(String proId) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("proId", proId);//item start count |
| | | //查询符合条件的记录 |
| | | return qualityItemsDao.selectSome(params); |
| | | } |
| | | |
| | | public List<PltProductTestInspectionItems> getTestItems(String proId) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("proId", proId); |
| | | return testItemsDao.selectSome(params); |
| | | } |
| | | } |