|
|
@ -58,7 +58,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void queryYlDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
public void queryYlDetailDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
|
IPage<YlDto> pages = this.queryYlDetail(query,pageQuery); |
|
|
|
List<Map<String, Object>> list = new ArrayList<>(); |
|
|
@ -73,7 +73,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("棒源等级",detailDto.getBarLevel()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("晶棒号",detailDto.getLotSN()); |
|
|
|
mp.put("来料长度",detailDto.getIncomingLength()); |
|
|
@ -83,6 +83,33 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void queryHwDetailDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
|
IPage<HwDto> pages = this.queryHwDetail(query,pageQuery); |
|
|
|
List<Map<String, Object>> list = new ArrayList<>(); |
|
|
|
for(HwDto detailDto:pages.getRecords()){ |
|
|
|
Map<String, Object> mp = new LinkedHashMap<>(); |
|
|
|
mp.put("点位编码",detailDto.getPointCode()); |
|
|
|
mp.put("点位名称",detailDto.getPointCode()); |
|
|
|
mp.put("区域编码",detailDto.getRegionCode()); |
|
|
|
mp.put("区域名称",detailDto.getRegionName()); |
|
|
|
mp.put("子托号",detailDto.getSubTray()); |
|
|
|
mp.put("母拖号",detailDto.getMotherTray()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("回温时间",detailDto.getStandingTime()); |
|
|
|
mp.put("已回温时间",detailDto.getUsedTime()); |
|
|
|
mp.put("数量",detailDto.getNumber()); |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<String> getSupplierNameList(){ |
|
|
|
return reportMapper.getSupplierNameList(); |
|
|
|
} |
|
|
|