| | |
| | | |
| | | 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; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @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); |
| | | } |
| | | |
| | |
| | | |
| | | //新增技术指标维护-->选择工序和工艺 |
| | | @Override |
| | | public List<Map<String, Object>> chooseTechFath(Integer type) { |
| | | public List<Map<String, Object>> chooseTechFath(String type) { |
| | | return technicalModelMapper.chooseTechFath(type); |
| | | } |
| | | |
| | |
| | | technicalModel.setState(0); |
| | | technicalModel.setId(id); |
| | | technicalModelMapper.updateById(technicalModel); |
| | | //删除生产工艺 |
| | | techniqueModelMapper.delTechById(id); |
| | | } |
| | | |
| | | //批量删除 |
| | |
| | | @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) { |
| | | |
| | | } |
| | | } |
| | | |