dengsixing 6 月之前
父節點
當前提交
cce24cd1b2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/contro/service/impl/HaixinServiceImpl.java

+ 1 - 1
src/main/java/com/fdkankan/contro/service/impl/HaixinServiceImpl.java

@@ -45,7 +45,7 @@ public class HaixinServiceImpl implements IHaixinService {
         String taskId = dto.getTaskId();
         String kNo = dto.getKNo();
         if(StrUtil.isEmpty(taskId) && StrUtil.isEmpty(kNo)){
-            throw new BusinessException(ServerCode.PARAM_REQUIRED.code(), ServerCode.PARAM_REQUIRED.formatMessage("taskId和kNo不能同时为空"));
+            return ResultData.error(ServerCode.PARAM_REQUIRED.code(), ServerCode.PARAM_REQUIRED.formatMessage("taskId和kNo不能同时为空"));
         }
 
         SceneOrigBd sceneOrigBd = new SceneOrigBd();