zss
2023-09-25 5d24aead2d1a45452942ddfc300fe6a232301a99
base-server/src/main/java/com/yuanchu/mom/service/impl/TechnicalModelServiceImpl.java
@@ -2,7 +2,6 @@
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.mom.mapper.TechnicalModelMapper;
import com.yuanchu.mom.mapper.TechniqueModelMapper;
import com.yuanchu.mom.pojo.TechnicalModel;
import com.yuanchu.mom.pojo.dto.TechnicalModelDto;
import com.yuanchu.mom.service.TechnicalModelService;
@@ -11,6 +10,7 @@
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
@@ -26,12 +26,10 @@
    @Resource
    TechnicalModelMapper technicalModelMapper;
    @Resource
    TechniqueModelMapper techniqueModelMapper;
    //查询技术指标维护列表-->左边二级展示工序和工艺
    @Override
    public List<Map<String, Object>> selectAllTechTem(Integer type, String message) {
    public List<Map<String, Object>> selectAllTechTem(String type, String message) {
        return technicalModelMapper.selectAllTechTem(type, message);
    }
@@ -43,7 +41,7 @@
    //新增技术指标维护-->选择工序和工艺
    @Override
    public List<Map<String, Object>> chooseTechFath(Integer type) {
    public List<Map<String, Object>> chooseTechFath(String type) {
        return technicalModelMapper.chooseTechFath(type);
    }
@@ -90,8 +88,6 @@
        technicalModel.setState(0);
        technicalModel.setId(id);
        technicalModelMapper.updateById(technicalModel);
        //删除生产工艺
        techniqueModelMapper.delTechById(id);
    }
    //批量删除
@@ -99,7 +95,16 @@
    @Transactional(rollbackFor = Exception.class)
    public void delAllTech(String ids) {
        technicalModelMapper.delAllTech(ids);
        techniqueModelMapper.delAllTech(ids);
    }
    /**
     * 导出
     * @param response
     * @param type
     */
    @Override
    public void downloadDataValueExcel(HttpServletResponse response, String type) {
    }
}