Commit b2403d7a authored by neo's avatar neo

[bugfix] set default value for createtim

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