|
@@ -7,6 +7,7 @@ package com.cpms.project.asset.controller;
|
|
|
import com.cpms.common.core.domain.entity.SysDictData;
|
|
|
import com.cpms.common.core.page.TableDataInfo;
|
|
|
import com.cpms.common.enums.BusinessType;
|
|
|
+ import com.cpms.common.utils.DateUtils;
|
|
|
import com.cpms.common.utils.file.ExcelUtils;
|
|
|
import com.cpms.common.utils.poi.ExcelUtil;
|
|
|
import com.cpms.project.asset.domain.TSpecdevFixedAsset;
|
|
@@ -164,7 +165,7 @@ public class TSpecdevFixedAssetController extends BaseController
|
|
|
entity.setAssetTypeAp(cellValue);
|
|
|
} else if (j == 8) {
|
|
|
//资本化日期
|
|
|
- entity.setCapitalizedDate(sdf.parse(cellValue));
|
|
|
+ entity.setCapitalizedDate(DateUtils.parseDate(cellValue));
|
|
|
} else if (j == 9) {
|
|
|
//数量
|
|
|
entity.setQuantity(cellValue);
|
|
@@ -206,10 +207,10 @@ public class TSpecdevFixedAssetController extends BaseController
|
|
|
entity.setScrapReason(cellValue);
|
|
|
} else if (j == 22) {
|
|
|
//报废提出日期
|
|
|
- entity.setScrapPoseDate(sdf.parse(cellValue));
|
|
|
+ entity.setScrapPoseDate(DateUtils.parseDate(cellValue));
|
|
|
} else if (j == 23) {
|
|
|
//报废完成时间
|
|
|
- entity.setScrapDoneDate(sdf.parse(cellValue));
|
|
|
+ entity.setScrapDoneDate(DateUtils.parseDate(cellValue));
|
|
|
} else if (j == 24) {
|
|
|
//报废人
|
|
|
entity.setScraper(cellValue);
|