| | |
| | | for (InsProduct product : insProducts) { |
| | | for (InsProduct insProduct1 : insProductBindingList) { |
| | | insProduct1.setId(null); |
| | | insProduct1.setBindingProductId(product.getId()); |
| | | insProduct1.setBindingProductId(Math.toIntExact(product.getId())); |
| | | insProduct1.setCableTag(product.getCableTag()); |
| | | } |
| | | this.saveBatch(insProductBindingList); |
| | |
| | | List<InsProductDto> insProductDtoList = insProductDto.getInsProductDtoList(); |
| | | for (InsProductDto productDto : insProductDtoList) { |
| | | InsProduct insProduct = new InsProduct(); |
| | | insProduct.setId(productDto.getInsProductId()); |
| | | insProduct.setId(Long.valueOf(productDto.getInsProductId())); |
| | | insProduct.setCheckUserId(productDto.getCheckUserId()); |
| | | insProductMapper.updateById(insProduct); |
| | | } |