| | |
| | | @Resource |
| | | private SqlSessionFactory sqlSessionFactory; |
| | | |
| | | @Autowired |
| | | private IDaParamCollectionService daParamCollectionService; |
| | | |
| | | /** |
| | | * 查询设备产品过程参数采集 |
| | | * |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void replaceAssemblyCode(DaParamCollection daParamCollection) { |
| | | List<DaParamCollection> list = daParamCollectionService.list(new LambdaQueryWrapper<DaParamCollection>() |
| | | .eq(DaParamCollection::getSfcCode, daParamCollection.getYzSfcCode()) |
| | | ); |
| | | if(list.size() > 0){ |
| | | for (DaParamCollection paramCollection : list) { |
| | | paramCollection.setSfcCode(daParamCollection.getSfcCode()); |
| | | daParamCollectionService.saveOrUpdate(paramCollection); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |