|
|
@ -73,8 +73,8 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public IPage<YCLKCDto> queryMoveDetail2(ReportQuery query, PageQuery pageQuery){ |
|
|
|
IPage<YCLKCDto> pages = new Page<>(pageQuery.getPage() + 1, pageQuery.getSize()); |
|
|
|
public IPage<HwDto> queryMoveDetail2(ReportQuery query, PageQuery pageQuery){ |
|
|
|
IPage<HwDto> pages = new Page<>(pageQuery.getPage() + 1, pageQuery.getSize()); |
|
|
|
pages = reportMapper.queryMoveDetail2(pages, query); |
|
|
|
return pages; |
|
|
|
} |
|
|
@ -123,7 +123,26 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
pages = reportMapper.queryHwOutPending(pages, query); |
|
|
|
return pages; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void queryDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
|
IPage<ReportDto> pages = this.queryAll(query,pageQuery); |
|
|
|
List<Map<String, Object>> list = new ArrayList<>(); |
|
|
|
for(ReportDto 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.getSupplierName()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("批次",detailDto.getIngotBatch()); |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|
} |
|
|
|
@Override |
|
|
|
public void queryYlDetailDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
@ -137,25 +156,64 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
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.getProductDescription()); |
|
|
|
mp.put("物料编码",detailDto.getProductName()); |
|
|
|
if("1".equals(detailDto.getStatus())){ |
|
|
|
mp.put("出库状态","出库中"); |
|
|
|
}else{ |
|
|
|
mp.put("出库状态","未出库"); |
|
|
|
} |
|
|
|
mp.put("工单编号",detailDto.getMoname()); |
|
|
|
mp.put("晶棒号",detailDto.getLotSN()); |
|
|
|
mp.put("晶体编号",detailDto.getLotSN()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("重量KG",detailDto.getIncomingWeight()); |
|
|
|
mp.put("折算系数",detailDto.getWeightCoefficientValue()); |
|
|
|
mp.put("来料长度",detailDto.getIncomingLength()); |
|
|
|
mp.put("来料重量",detailDto.getIncomingWeight()); |
|
|
|
mp.put("来料缺陷长度mm",detailDto.getIncomingchipping()); |
|
|
|
mp.put("有效长度mm",Double.parseDouble(detailDto.getIncomingLength()) - Double.parseDouble(detailDto.getIncomingchipping())); |
|
|
|
|
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void queryYlOutDetailDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
|
IPage<YCLKCDto> pages = this.queryYlOutDetail(query,pageQuery); |
|
|
|
List<Map<String, Object>> list = new ArrayList<>(); |
|
|
|
for(YCLKCDto detailDto:pages.getRecords()){ |
|
|
|
Map<String, Object> mp = new LinkedHashMap<>(); |
|
|
|
mp.put("点位名称",detailDto.getPointCode()); |
|
|
|
mp.put("区域名称",detailDto.getRegionName()); |
|
|
|
mp.put("子托号",detailDto.getSubTray()); |
|
|
|
mp.put("母拖号",detailDto.getMotherTray()); |
|
|
|
mp.put("工单编号",detailDto.getMoname()); |
|
|
|
if("0".equals(detailDto.getStatus())){ |
|
|
|
mp.put("工单状态","未提交"); |
|
|
|
}else if("1".equals(detailDto.getStatus())){ |
|
|
|
mp.put("工单状态","已提交"); |
|
|
|
}else if("2".equals(detailDto.getStatus())){ |
|
|
|
mp.put("工单状态","出库中"); |
|
|
|
}else if("3".equals(detailDto.getStatus())){ |
|
|
|
mp.put("工单状态","已出库"); |
|
|
|
}else if("4".equals(detailDto.getStatus())){ |
|
|
|
mp.put("工单状态","已出库回传"); |
|
|
|
} |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("每托数量(根)",detailDto.getNumber()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
|
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|
} |
|
|
|
@Override |
|
|
|
public void queryYlInDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
@ -169,14 +227,19 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
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.getProductDescription()); |
|
|
|
mp.put("物料编码",detailDto.getProductName()); |
|
|
|
mp.put("晶体编号",detailDto.getLotSN()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("晶棒号",detailDto.getLotSN()); |
|
|
|
mp.put("来料长度",detailDto.getIncomingLength()); |
|
|
|
mp.put("来料重量",detailDto.getIncomingWeight()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("重量KG",detailDto.getIncomingWeight()); |
|
|
|
mp.put("折算系数",detailDto.getWeightCoefficientValue()); |
|
|
|
mp.put("来料长度mm",detailDto.getIncomingLength()); |
|
|
|
mp.put("来料缺陷长度mm",detailDto.getIncomingchipping()); |
|
|
|
mp.put("有效长度mm",Double.parseDouble(detailDto.getIncomingLength()) - Double.parseDouble(detailDto.getIncomingchipping())); |
|
|
|
|
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
@ -195,14 +258,19 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
mp.put("目的区域名称",detailDto.getRegionName2()); |
|
|
|
mp.put("子托号",detailDto.getSubTray()); |
|
|
|
mp.put("母拖号",detailDto.getMotherTray()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("出库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("物料编码",detailDto.getProductName()); |
|
|
|
mp.put("晶体编号",detailDto.getLotSN()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("晶棒号",detailDto.getLotSN()); |
|
|
|
mp.put("来料长度",detailDto.getIncomingLength()); |
|
|
|
mp.put("来料重量",detailDto.getIncomingWeight()); |
|
|
|
mp.put("出库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("重量KG",detailDto.getIncomingWeight()); |
|
|
|
mp.put("折算系数",detailDto.getWeightCoefficientValue()); |
|
|
|
mp.put("来料长度mm",detailDto.getIncomingLength()); |
|
|
|
mp.put("来料缺陷长度mm",detailDto.getIncomingchipping()); |
|
|
|
mp.put("有效长度mm",Double.parseDouble(detailDto.getIncomingLength()) - Double.parseDouble(detailDto.getIncomingchipping())); |
|
|
|
|
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
@ -219,14 +287,19 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
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.getProductDescription()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("回温时间",detailDto.getStandingTime()); |
|
|
|
mp.put("已回温时间",detailDto.getUsedTime()); |
|
|
|
mp.put("每托数量(根)",detailDto.getNumber()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("回温时间H",detailDto.getStandingTime()); |
|
|
|
mp.put("已回温时间H",detailDto.getUsedTime()); |
|
|
|
if((Double.parseDouble(detailDto.getStandingTime()) - Double.parseDouble(detailDto.getUsedTime()))>0){ |
|
|
|
mp.put("是否完成","未完成"); |
|
|
|
}else{ |
|
|
|
mp.put("是否完成","已完成"); |
|
|
|
} |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
@ -241,15 +314,15 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
Map<String, Object> mp = new LinkedHashMap<>(); |
|
|
|
mp.put("点位编码",detailDto.getPointCode()); |
|
|
|
mp.put("区域名称",detailDto.getRegionName()); |
|
|
|
mp.put("子托号",detailDto.getSubTray()); |
|
|
|
mp.put("母拖号",detailDto.getMotherTray()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("子托编码",detailDto.getSubTray()); |
|
|
|
mp.put("母托编码",detailDto.getMotherTray()); |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("已回温时间",detailDto.getUsedTime()); |
|
|
|
mp.put("每托数量(根)",detailDto.getNumber()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("已回温时间H",detailDto.getUsedTime()); |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
@ -264,19 +337,46 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
Map<String, Object> mp = new LinkedHashMap<>(); |
|
|
|
mp.put("待入库点位编码",detailDto.getPointCode()); |
|
|
|
mp.put("待入库区域名称",detailDto.getRegionName()); |
|
|
|
mp.put("子托号",detailDto.getSubTray()); |
|
|
|
mp.put("母拖号",detailDto.getMotherTray()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("子托编码",detailDto.getSubTray()); |
|
|
|
mp.put("母托编码",detailDto.getMotherTray()); |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("每托数量(根)",detailDto.getNumber()); |
|
|
|
mp.put("更新时间",detailDto.getUpdateTime()); |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void queryMoveDetail2Download(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
|
IPage<HwDto> pages = this.queryMoveDetail2(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.getRegionName()); |
|
|
|
mp.put("子托编码",detailDto.getSubTray()); |
|
|
|
mp.put("母托编码",detailDto.getMotherTray()); |
|
|
|
if("1".equals(detailDto.getStatus())){ |
|
|
|
mp.put("提交状态","已提交"); |
|
|
|
}else{ |
|
|
|
mp.put("提交状态","未提交"); |
|
|
|
} |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("每托数量(根)",detailDto.getNumber()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("回温时间H",detailDto.getStandingTime()); |
|
|
|
mp.put("已回温时间H",detailDto.getUsedTime()); |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|
} |
|
|
|
@Override |
|
|
|
public void queryHwOutDownload(ReportQuery query, PageQuery pageQuery, HttpServletResponse response) throws IOException { |
|
|
|
pageQuery.setSize(99999); |
|
|
@ -290,14 +390,19 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
mp.put("目的区域名称",detailDto.getRegionName2()); |
|
|
|
mp.put("子托号",detailDto.getSubTray()); |
|
|
|
mp.put("母拖号",detailDto.getMotherTray()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("出库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("回温时间",detailDto.getStandingTime()); |
|
|
|
mp.put("已回温时间",detailDto.getUsedTime()); |
|
|
|
mp.put("每托数量(根)",detailDto.getNumber()); |
|
|
|
mp.put("出库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("回温时间H",detailDto.getStandingTime()); |
|
|
|
mp.put("已回温时间H",detailDto.getUsedTime()); |
|
|
|
if((Double.parseDouble(detailDto.getStandingTime()) - Double.parseDouble(detailDto.getUsedTime()))>0){ |
|
|
|
mp.put("是否完成","未完成"); |
|
|
|
}else{ |
|
|
|
mp.put("是否完成","已完成"); |
|
|
|
} |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
@ -316,13 +421,13 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl |
|
|
|
mp.put("目的区域名称",detailDto.getRegionName2()); |
|
|
|
mp.put("子托号",detailDto.getSubTray()); |
|
|
|
mp.put("母拖号",detailDto.getMotherTray()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("供应商名称",detailDto.getSupplierName()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("物料名称",detailDto.getProductDescription()); |
|
|
|
mp.put("来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("棒源等级",detailDto.getSiliconGrade()); |
|
|
|
mp.put("客户来料批次号",detailDto.getIngotBatch()); |
|
|
|
mp.put("已回温时间",detailDto.getUsedTime()); |
|
|
|
mp.put("每托数量(根)",detailDto.getNumber()); |
|
|
|
mp.put("入库时间",detailDto.getUpdateTime()); |
|
|
|
mp.put("已回温时间H",detailDto.getUsedTime()); |
|
|
|
list.add(mp); |
|
|
|
} |
|
|
|
FileUtil.downloadExcel(list, response); |
|
|
|