From 40fc47ece733ddc3113c2413ae27aadbf102a9e2 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 23 四月 2026 14:49:49 +0800
Subject: [PATCH] 提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java | 49 ++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 42 insertions(+), 7 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java
index e60751b..eb956a2 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceExternalController.java
@@ -4,7 +4,9 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DtoConversionUtils;
+import com.ruoyi.system.service.ISysConfigService;
import com.smartor.domain.*;
import com.smartor.service.IServiceExternalService;
import com.smartor.service.IServiceSubtaskDetailService;
@@ -13,10 +15,7 @@
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
import java.util.Date;
import java.util.HashMap;
@@ -37,6 +36,8 @@
private IServiceExternalService serviceExternalService;
@Autowired
private ISvyTaskSingleService svyTaskSingleService;
+ @Autowired
+ private ISysConfigService configService;
/**
* 閫氱敤鎺ュ彛
@@ -83,6 +84,10 @@
log.info("------serviceQueryInfo鐨勫叆鍙備负锛歿}", serviceQueryInfo);
Map map = null;
try {
+ String url = configService.selectConfigByKey("token.360", serviceQueryInfo.getXiaoXiTou().getFaSongJGID());
+ serviceQueryInfo.setUrl(url);
+ String url360 = configService.selectConfigByKey("url.360", serviceQueryInfo.getXiaoXiTou().getFaSongJGID());
+ serviceQueryInfo.setUrl360(url360);
map = svyTaskSingleService.query360PatInfo(serviceQueryInfo);
} catch (Exception e) {
e.printStackTrace();
@@ -137,6 +142,24 @@
} catch (Exception e) {
e.printStackTrace();
log.error("serviceExternal---addUserInfo鍑哄紓甯镐簡锛歿}", e.getMessage());
+ aBoolean = false;
+ }
+ return returnParam(aBoolean, dataMap);
+
+ }
+
+ /**
+ * 鏂板绉戝淇℃伅
+ */
+ @ApiOperation("鏂板鐢ㄦ埛淇℃伅")
+ @PostMapping("/addUserDeptInfo")
+ public Map<String, Object> addUserDeptInfo(@RequestBody Map dataMap) {
+ Boolean aBoolean = true;
+ try {
+ aBoolean = serviceExternalService.addUserDeptInfo(dataMap);
+ } catch (Exception e) {
+ e.printStackTrace();
+ log.error("serviceExternal---addUserDeptInfo鍑哄紓甯镐簡锛歿}", e.getMessage());
aBoolean = false;
}
return returnParam(aBoolean, dataMap);
@@ -349,6 +372,21 @@
return returnParam(aBoolean, dataMap);
}
+ /**
+ * 360鎮h�呬俊鎭幏鍙�
+ */
+ @ApiOperation("360鎮h�呬俊鎭幏鍙栵紙鏉ユ湭鏉ワ級")
+ @GetMapping("/query360PatInfolwl/{patid}")
+ public Map<String, Object> query360PatInfolwl(@PathVariable("patid") Long patid) {
+ Map<String, Object> result = new HashMap<>();
+ if (patid == null) {
+ result.put("url", null);
+ result.put("error", "鎮h�卛d涓虹┖");
+ return result;
+ }
+ LoginUser loginUser = getLoginUser();
+ return serviceExternalService.query360PatInfolwl(patid, loginUser.getUser());
+ }
private Map<String, Object> returnParam(Boolean b, Map dataMap) {
@@ -370,9 +408,6 @@
map.put("Data", map2);
return map;
}
-
-
-
}
--
Gitblit v1.9.3