Explorar el Código

1.修改没有配置保险账号不能提交问题

wks hace 3 años
padre
commit
4801c99c54

+ 1 - 1
src/main/java/com/ydtech/modules/protocol/service/impl/PtlAgreementServiceImpl.java

@@ -234,7 +234,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
         }
         }
 
 
         // 验证用户名密码 python api 对接需要验证用户名
         // 验证用户名密码 python api 对接需要验证用户名
-        if (PtlApiType.PTL_API_2.getCode() == attribution.getApiType()) {
+        if (!ObjectUtils.isEmpty(attribution.getApiType()) && PtlApiType.PTL_API_2.getCode() == attribution.getApiType()) {
             String nameSimple = esmInsCompany.getNamesimple();
             String nameSimple = esmInsCompany.getNamesimple();
             insCrawlerOrderController.isLogin(attribution, nameSimple);
             insCrawlerOrderController.isLogin(attribution, nameSimple);
         }
         }