| | |
| | | import com.yuanchu.mom.service.*; |
| | | import com.yuanchu.mom.utils.MyUtil; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | //(4级)新增-->型号 |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public String addSpecifications(SpecificationsDto specificationsDto) { |
| | | //校验添加该标准下的型号是否重复 |
| | | List<String> specificationsNameList = specificationsMapper.selectList(Wrappers.<Specifications>query().eq("standard_id", specificationsDto.getId())).stream().map(specifications -> { |
| | |
| | | } |
| | | techniqueService.saveBatch(techniqueList); |
| | | return "添加型号【"+ specificationsDto.getSpecifications() +"】成功!"; |
| | | } |
| | | |
| | | /** |
| | | * 检验模块-->QMS管理-->成品检验-->新增(需要规格型号的Id与名称) |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> selectSpecificationIdAndName(Integer materialId) { |
| | | List<Map<String, Object>> maps = specificationsMapper.selectSpecificationIdAndName(materialId); |
| | | return maps; |
| | | } |
| | | |
| | | } |