Commit 82235b26 by levphon

工单导入

1 parent 17f66b3f
......@@ -44,11 +44,11 @@ public class WorkOrderExport {
@ExcelProperty(value = "所属组织", index = 8)
private String tenantName;
@ExcelProperty(value = "期望安装日期", index = 9)
@ExcelProperty(value = "期望服务日期", index = 9)
@DateTimeFormat(value = "yyyy/MM/dd")
private Date serviceTime;
@ExcelProperty(value = "期望安装时间", index = 10)
@ExcelProperty(value = "期望服务时间", index = 10)
private String serviceApm;
// @ExcelProperty(value = "安装服务商", index = 0)
......
......@@ -147,7 +147,7 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
if (StringUtils.isEmpty(woi.getShopTelephone())
|| woi.getServiceTime() == null
|| StringUtils.isEmpty(woi.getServiceAddress())) {
woi.setImportFailReason("需要安装时:店面联系电话,期望安装日期,安装详细地址必填");
woi.setImportFailReason("需要安装时:店面联系电话,期望服务日期,服务详细地址必填");
log.warn(woi.toString());
return false;
}
......@@ -157,7 +157,7 @@ public class WorkOrderImportListener extends AnalysisEventListener<WorkOrderImpo
ZonedDateTime dateTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(woi.getServiceTime().toInstant().toEpochMilli()), ZoneId.systemDefault());
Duration duration = Duration.between(nowTime, dateTime).abs();
if (duration.toDays() < 0) {
woi.setImportFailReason("期望安装日期不能小于当前日期");
woi.setImportFailReason("期望服务日期不能小于当前日期");
log.warn(woi.toString());
return false;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!