| | |
| | | import org.apache.poi.hssf.usermodel.*; |
| | | import org.apache.poi.ss.usermodel.ClientAnchor; |
| | | import org.apache.poi.ss.usermodel.IndexedColors; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | boolean sameImage = ImageDiff.compareImagesCheck(dwgFileStr, dwgFileStr2); |
| | | if (!sameImage) { //图纸不同 |
| | | //material.setNotes(absoluteDwgPngPath.replace(CommonUtil.getProjectDir()+ File.separator, "") + separator + absoluteDwgPngPath2.replace(CommonUtil.getProjectDir()+ File.separator, "")); |
| | | material.setNotes(dwgUrlInDB); |
| | | diffDwgList.add(material); |
| | | //克隆一个新的对象material |
| | | ProductBom materialDiff = new ProductBom(); |
| | | BeanUtils.copyProperties(material, materialDiff); |
| | | materialDiff.setNotes(dwgUrlInDB); |
| | | diffDwgList.add(materialDiff); |
| | | } |
| | | |
| | | |