Commit b2403d7a authored by neo's avatar neo

[bugfix] set default value for createtim

parent 4cd820b8
......@@ -16,7 +16,7 @@ public class VoucherMappingDto {
public Date CreateTime;
public Boolean IsDuplicate;
public VoucherMapping extractVoucherMapping(){
public VoucherMapping extractVoucherMapping() {
VoucherMapping voucherMapping = new VoucherMapping();
voucherMapping.setID(ID);
voucherMapping.setTranCode(TranCode);
......@@ -25,7 +25,7 @@ public class VoucherMappingDto {
voucherMapping.setPeriod(Period);
voucherMapping.setItemID(ItemID);
voucherMapping.setCreatorID(CreatorID);
voucherMapping.setCreateTime(CreateTime);
voucherMapping.setCreateTime(CreateTime == null ? new Date() : CreateTime);
return voucherMapping;
}
......
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