zss
2023-09-12 cbf4b74927fe51c19c307d89b326ae999cb6a165
standard-server/src/main/java/com/yuanchu/mom/service/impl/TechnologyServiceImpl.java
@@ -42,16 +42,7 @@
    MbomMapper mbomMapper;
    @Resource
    MbomService mbomService;
    @Resource
    TechniqueMapper techniqueMapper;
    @Resource
    ProductService productService;
    @Resource
    TechniqueService techniqueService;
    //根据型号id查询版本
@@ -80,11 +71,9 @@
    //右上角新增-->工艺路线
    @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);
    }
@@ -127,4 +116,13 @@
        //批量删除生产工艺表
        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);
    }
}