Commit a2f7694b authored by dahai's avatar dahai

push

parent dafd4e3e
......@@ -50,7 +50,6 @@ public class ReceiptApi {
receiptListEntity.setPoliceCode(resultDate.get("GAJG_DM").toString());
receiptListEntity.setCardTypeId(Long.valueOf((BigDecimal) resultDate.get("CARD_TYPE") + ""));
if ("null".equals(resultDate.get("OLD_CARD_TYPE") + "")) {
} else {
receiptListEntity.setOldCardTypeId(Long.valueOf(resultDate.get("OLD_CARD_TYPE") + ""));
}
......@@ -121,22 +120,11 @@ public class ReceiptApi {
} else {
//不做操作
}
}
} else {
//已生成交接单
}
// //查询有几个特证
// int specialCardCount = receiptService.selectSpecialCard(receiptListDate.get(i).get("GROUP_NO").toString());
// //减去特证个数
// int finishCount = receiptService.selectCount(receiptListDate.get(i).get("GROUP_NO").toString()) - specialCardCount;
// receiptService.updateFinishCount(receiptListDate.get(i).get("GROUP_NO").toString(), finishCount);
}
}
......
package com.yxproject.start.utils;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.ss.util.CellRangeAddress;
import java.io.FileOutputStream;
import java.io.IOException;
......@@ -143,8 +144,47 @@ public class ExportExcel {
font.setFontHeightInPoints((short) 12);
style.setFont(font);
row = sheet.createRow(0); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("20"));//设置行高
row.setHeightInPoints(Short.parseShort("40"));//设置行高
HSSFCell cell = row.createCell(0); //设定值
cell.setCellValue("北京市公安局证件制作管理中心交接岗位");
cell = row.createCell(1); //设定值
cell.setCellValue("");
cell = row.createCell(2); //设定值
cell.setCellValue("");
cell = row.createCell(3); //设定值
cell.setCellValue("");
cell = row.createCell(4); //设定值
cell.setCellValue("");
CellRangeAddress callRangeAddress = new CellRangeAddress(0, 0, 0, 5);//起始行,结束行,起始列,结束列
row = sheet.createRow(1); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("40"));//设置行高
cell = row.createCell(0); //设定值
cell.setCellValue("身份证交接单");
cell = row.createCell(1); //设定值
cell.setCellValue("");
cell = row.createCell(2); //设定值
cell.setCellValue("");
cell = row.createCell(3); //设定值
cell.setCellValue("");
cell = row.createCell(4); //设定值
cell.setCellValue("");
callRangeAddress = new CellRangeAddress(1, 1, 0, 5);//起始行,结束行,起始列,结束列
row = sheet.createRow(2); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("40"));//设置行高
cell = row.createCell(0); //设定值
cell.setCellValue("交接日期:"+simpleDateFormat.format(new Date()));
cell = row.createCell(1); //设定值
cell.setCellValue("");
cell = row.createCell(2); //设定值
cell.setCellValue("");
cell = row.createCell(3); //设定值
cell.setCellValue("");
cell = row.createCell(4); //设定值
cell.setCellValue("");
callRangeAddress = new CellRangeAddress(2, 2, 0, 5);//起始行,结束行,起始列,结束列
row = sheet.createRow(3); //创建下标为0的单元格
row.setHeightInPoints(Short.parseShort("20"));//设置行高
cell = row.createCell(0); //设定值
cell.setCellValue("序号");
cell = row.createCell(1); //设定值
cell.setCellValue("身份证受理组号");
......@@ -156,7 +196,7 @@ public class ExportExcel {
cell.setCellValue("备注");
for (int i =0;i<mapList.size();i++){
row = sheet.createRow(i + 1);
row = sheet.createRow(i + 4);
cell = row.createCell(0); //设定值
cell.setCellValue((i+1)+"");
cell = row.createCell(1); //设定值
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment