Explorar o código

1. 跟单导入的时候 保单号错误 显示程序调整

wuhp %!s(int64=2) %!d(string=hai) anos
pai
achega
9cbb960e7d

+ 1 - 1
src/main/java/com/ydtech/modules/fnc/service/impl/ImportAsyncServiceImpl.java

@@ -269,7 +269,7 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
                 params.put("isOther", "1");
                 params.put("isNotCar", isNotCar);
                 InsPlyIncome insPlyIncome = insPlyIncomeMapper.findByBxLicenseno(params);
-                if(StringUtils.isNotEmpty(insPlyIncome.getTaskId())){
+                if(ObjectUtils.isNotEmpty(insPlyIncome)  &&  StringUtils.isNotEmpty(insPlyIncome.getTaskId())){
                     throw  new SystemException("表中有已经结算的数据");
                 }
                 if (ObjectUtils.isNotEmpty(insPlyIncome) && open) {