| | |
| | | import com.thhy.general.exception.BasicException; |
| | | import com.thhy.general.utils.ExcelUtils; |
| | | import com.thhy.general.utils.UserInfoUtils; |
| | | import com.thhy.materials.modules.biz.embedment.dto.EmbedmentGoodsDto; |
| | | import com.thhy.materials.modules.biz.embedment.dto.EmbedmentRecordDto; |
| | | import com.thhy.materials.modules.biz.embedment.entity.SysEmbedmentGoodsEntity; |
| | | import com.thhy.materials.modules.biz.embedment.entity.SysEmbedmentRecordEntity; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void recordExportTemplate(EmbedmentRecordDto embedmentRecordDto, HttpServletResponse response) { |
| | | public void recordExportTemplate(EmbedmentGoodsDto embedmentGoodsDto, HttpServletResponse response) { |
| | | embedmentGoodsDto = new EmbedmentGoodsDto(); |
| | | SysUserInfo sysUserInfo = UserInfoUtils.getInstance().getUserInfo(); |
| | | String companyId = sysUserInfo.getCompanyId(); |
| | | XSSFWorkbook book = new XSSFWorkbook(); |
| | |
| | | row.createCell(2).setCellValue("单价"); |
| | | row.createCell(3).setCellValue("金额"); |
| | | row.createCell(4).setCellValue("备注"); |
| | | embedmentRecordDto.setCompanyId(companyId); |
| | | List<String> lx = sysEmbedmentRecordMapper.embedmentRecordList(embedmentRecordDto).stream().map(s -> s.getEmbedmentNameAndModel()).collect(Collectors.toList()); |
| | | embedmentGoodsDto.setCompanyId(companyId); |
| | | List<String> lx = sysEmbedmentGoodsMapper.findAll(embedmentGoodsDto).stream().map(s -> s.getEmbedmentName()+"-"+s.getEmbedmentModel()).collect(Collectors.toList()); |
| | | String[] gjlx = lx.toArray(new String[lx.size()]); |
| | | |
| | | //物品名称-规格型号 |