Commit d85ece69 authored by neo's avatar neo

[bugfix] init cratetime when it is null

parent b2bc8b9e
......@@ -22,7 +22,7 @@ public class InvoiceMappingDto {
invoiceMapping.setInvoiceNumber(InvoiceNumber);
invoiceMapping.setPeriod(Period);
invoiceMapping.setCreatorID(CreatorID);
invoiceMapping.setCreateTime(CreateTime);
invoiceMapping.setCreateTime(CreateTime == null ? new Date() : CreateTime);
return invoiceMapping;
}
}
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