Commit 116db879 by lzxry

导入的合同全部为正常合同

parent 02d0d673
......@@ -2325,6 +2325,7 @@ public class ContractServiceImpl implements ContractService {
Object[] s_data = new Object[titleKey.size() + extend_size];
String bodyCode = null;
String ds = null;
Date createTime = null;
if (row_data == null) {
continue;
}
......@@ -2406,6 +2407,9 @@ public class ContractServiceImpl implements ContractService {
if (org.apache.poi.ss.usermodel.DateUtil.isCellDateFormatted(cell)) {
// 用于转化为日期格式
Date d = cell.getDateCellValue();
if("start_date".equals(sheetTitle) ){
createTime = d;
}
DateFormat formater = new SimpleDateFormat("yyyy-MM-dd");
s_data[w] = formater.format(d);
} else {
......@@ -2467,7 +2471,7 @@ public class ContractServiceImpl implements ContractService {
s_data[row_already] = platform;
s_data[row_already + 1] = platform;
s_data[row_already + 2] = bodyCode;
s_data[row_already + 3] = new Date();
s_data[row_already + 3] = createTime;
s_data[row_already + 4] = 0;
s_data[row_already + 5] = "main";
s_data[row_already + 6] = ContractStatusEnum.NFORMAL.getKey(); //常规合同
......
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