caozixuan 1 жил өмнө
parent
commit
6b07dfb783

+ 5 - 2
sop-api/src/main/java/com/qmth/sop/server/api/TBDingController.java

@@ -259,8 +259,11 @@ public class TBDingController {
                         result.setCrmName(tbCrm.getName());
                         result.setCustomId(crmProjectResult.getCustomId());
                         result.setCustomName(crmProjectResult.getCustomName());
-                        result.setCustomType(crmProjectResult.getCustomType());
-                        result.setCustomTypeStr(crmProjectResult.getCustomType().getTitle());
+                        ProductTypeEnum productTypeEnum = crmProjectResult.getCustomType();
+                        if (Objects.nonNull(productTypeEnum)){
+                            result.setCustomType(productTypeEnum);
+                            result.setCustomTypeStr(crmProjectResult.getCustomType().getTitle());
+                        }
                         sopInfo.add(result);
                     }
                     cell.setSopInfo(sopInfo);