| | |
| | | MbomMapper mbomMapper; |
| | | |
| | | @Resource |
| | | MbomService mbomService; |
| | | |
| | | @Resource |
| | | TechniqueMapper techniqueMapper; |
| | | |
| | | @Resource |
| | | ProductService productService; |
| | | |
| | | @Resource |
| | | TechniqueService techniqueService; |
| | | |
| | | |
| | | //根据型号id查询版本 |
| | |
| | | |
| | | //右上角新增-->工艺路线 |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void addTechnology(Integer specificationsId, TechnologyDto technologyDto) { |
| | | public void addTechnology(TechnologyDto technologyDto) { |
| | | Technology technology = new Technology(); |
| | | BeanUtils.copyProperties(technologyDto, technology); |
| | | technology.setSpecificationsId(specificationsId); |
| | | technologyMapper.insert(technology); |
| | | } |
| | | |
| | |
| | | //批量删除生产工艺表 |
| | | techniqueMapper.delAllByTecId(ids); |
| | | } |
| | | |
| | | //选择设备组,鼠标移开保存 |
| | | @Override |
| | | public Integer writeDevice(Integer id, String deviceGroup) { |
| | | Technology technology = new Technology(); |
| | | technology.setId(id); |
| | | technology.setDeviceGroup(deviceGroup); |
| | | return technologyMapper.updateById(technology); |
| | | } |
| | | } |