| | |
| | | |
| | | // 查询厂家密度 |
| | | String supplierDensity = ""; |
| | | SampleProductDto sampleProductDto = list.get(0); |
| | | if (CollectionUtils.isNotEmpty(list)) { |
| | | SampleProductDto sampleProductDto = list.get(0); |
| | | |
| | | // 判断有没有绑定型号 |
| | | String modelValue = insSampleMapper.selectSupplierDensityModel(sampleProductDto.getSample(), |
| | | order.getProduction(), |
| | | sampleProductDto.getModel()); |
| | | if (StringUtils.isNotBlank(modelValue)) { |
| | | supplierDensity = modelValue; |
| | | } else { |
| | | supplierDensity = insSampleMapper.selectSupplierDensity(sampleProductDto.getSample(), |
| | | order.getProduction()); |
| | | // 判断有没有绑定型号 |
| | | String modelValue = insSampleMapper.selectSupplierDensityModel(sampleProductDto.getSample(), |
| | | order.getProduction(), |
| | | sampleProductDto.getModel()); |
| | | if (StringUtils.isNotBlank(modelValue)) { |
| | | supplierDensity = modelValue; |
| | | } else { |
| | | supplierDensity = insSampleMapper.selectSupplierDensity(sampleProductDto.getSample(), |
| | | order.getProduction()); |
| | | } |
| | | } |
| | | map.put("supplierDensity", supplierDensity); |
| | | return map; |
| | |
| | | // 检测依据 |
| | | Set<String> standardMethod = new HashSet<>(); |
| | | StringBuilder standardMethod2 = new StringBuilder(); |
| | | standardMethod.add(baseMapper.getStandardMethodCode(insSample.getStandardMethodListId())); |
| | | // TODO 检验的对象的检验标准由一个多个 数据类型由int变字符串 需要重写写这块逻辑 |
| | | // standardMethod.add(baseMapper.getStandardMethodCode(insSample.getStandardMethodListId())); |
| | | for (String s : standardMethod) { |
| | | standardMethod2.append("、").append(s); |
| | | } |
| | |
| | | samples.forEach(a -> { |
| | | Map<Integer, String> map2 = new HashMap<>(); |
| | | models.add(a.getModel()); |
| | | String standardMethodCode = baseMapper.getStandardMethodCode(a.getStandardMethodListId()); |
| | | // TODO 检验的对象的检验标准由一个多个 数据类型由int变字符串 需要重写写这块逻辑 |
| | | // String standardMethodCode = baseMapper.getStandardMethodCode(a.getStandardMethodListId()); |
| | | String standardMethodCode = ""; |
| | | if (StrUtil.isNotBlank(a.getSpecialStandardMethod())) { |
| | | standardMethodCode = standardMethodCode + "+" + a.getSpecialStandardMethod(); |
| | | } |