Administrator пре 5 месеци
родитељ
комит
0542070678

+ 5 - 0
src/main/java/com/jkcredit/invoice/service/lowerservice/impl/SelfCarCustServiceImpl.java

@@ -29,6 +29,7 @@ import com.jkcredit.invoice.service.upservice.SelfCarInterface;
 import com.jkcredit.invoice.util.DateUtil;
 import com.jkcredit.invoice.util.MathUtil;
 import com.jkcredit.invoice.util.RespR;
+import com.jkcredit.invoice.util.StringUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.BeanUtils;
@@ -294,6 +295,10 @@ public class SelfCarCustServiceImpl implements SelfCarCustService {
                 for (B2BInvoiceQueryByApplyModel listModel : dataResult) {
                     SelfCarInvoice selfCarInvoice = new SelfCarInvoice();
                     BeanUtils.copyProperties(listModel, selfCarInvoice);
+                    if(StringUtil.isEmpty(selfCarInvoice.getInvoiceMakeTime())){
+                        log.info("跳过发票{},跳过原因:{}",listModel.getTradeId(),listModel.getMsg());
+                        continue;
+                    }
                     selfCarInvoice.setInvoiceMakeTime(DateUtil.tTimeToDate(selfCarInvoice.getInvoiceMakeTime()));
                     selfCarInvoice.setExTime(DateUtil.tTimeToDate(selfCarInvoice.getExTime()));
                     selfCarInvoice.setCustomerName(applQueryInvVo.getCustomerName());