Commit 0a139306 authored by neo's avatar neo

[bugfix] null point for extract for voucher exception

parent 2915dfd0
package pwc.taxtech.atms.dto.vatdto; package pwc.taxtech.atms.dto.vatdto;
import org.thymeleaf.util.StringUtils;
import pwc.taxtech.atms.vat.entity.Voucher; import pwc.taxtech.atms.vat.entity.Voucher;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -419,7 +420,8 @@ public class VoucherDto { ...@@ -419,7 +420,8 @@ public class VoucherDto {
setStatus(v.getStatus()); setStatus(v.getStatus());
setStdCode(v.getStdCode()); setStdCode(v.getStdCode());
setMappingReason(v.getMappingReason()); setMappingReason(v.getMappingReason());
setMappingUser(Integer.valueOf(v.getMappingUser())); if (!StringUtils.isEmpty(v.getMappingReason()))
setMappingUser(Integer.valueOf(v.getMappingUser()));
setMappingTime(v.getMappingTime()); setMappingTime(v.getMappingTime());
return this; return this;
} }
......
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