zss
2023-09-15 22899f74279a47f4ec79e1325f8489d948ced005
standard-server/src/main/java/com/yuanchu/mom/service/impl/TechniqueServiceImpl.java
@@ -42,8 +42,8 @@
    //右上角新增-->生产工艺-->选择工序,工艺
    @Override
    public List<Map<String, Object>> chooseTech(Integer specificationsId) {
        return technologyMapper.chooseTech(specificationsId);
    public List<Map<String, Object>> chooseTech(Integer specificationsId,Integer version) {
        return technologyMapper.chooseTech(specificationsId,version);
    }
    //右上角新增-->生产工艺-->选择设备
@@ -60,10 +60,9 @@
    //右上角新增-->生产工艺
    @Override
    public void addTechnique(Integer technologyId, TechniqueDto techniqueDto) {
    public void addTechnique(TechniqueDto techniqueDto) {
        Technique technique = new Technique();
        BeanUtils.copyProperties(techniqueDto, technique);
        technique.setTechnologyId(technologyId);
        techniqueMapper.insert(technique);
    }
@@ -81,5 +80,23 @@
    public void delAllTeq(String ids) {
        techniqueMapper.delAllTeq(ids);
    }
    //根据id查看详情
    @Override
    public List<Map<String, Object>> selTeqById(Integer id) {
        return techniqueMapper.selTeqById((id));
    }
    //编辑
    @Override
    public String wriTeqById(Integer id, String product, String productFather, String unit) {
        Technique technique = new Technique();
        technique.setId(id);
        technique.setProduct(product);
        technique.setProductFather(productFather);
        technique.setUnit(unit);
        techniqueMapper.updateById(technique);
        return "修改成功!";
    }
}