diff --git a/common-ruoyi/pom.xml b/common-ruoyi/pom.xml
index c7ea92c..3279ad5 100644
--- a/common-ruoyi/pom.xml
+++ b/common-ruoyi/pom.xml
@@ -5,7 +5,7 @@
4.0.0
com.ruoyi
- ruoyi-java
+ yh-java
3.8.8
diff --git a/common-ruoyi/ruoyi-common/pom.xml b/common-ruoyi/ruoyi-common/pom.xml
index ca14714..ce56631 100644
--- a/common-ruoyi/ruoyi-common/pom.xml
+++ b/common-ruoyi/ruoyi-common/pom.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- ruoyi-java
+ common-ruoyi
com.ruoyi
3.8.8
diff --git a/common-ruoyi/ruoyi-framework/pom.xml b/common-ruoyi/ruoyi-framework/pom.xml
index 04d435d..63cafa5 100644
--- a/common-ruoyi/ruoyi-framework/pom.xml
+++ b/common-ruoyi/ruoyi-framework/pom.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- ruoyi-java
+ common-ruoyi
com.ruoyi
3.8.8
diff --git a/common-ruoyi/ruoyi-generator/pom.xml b/common-ruoyi/ruoyi-generator/pom.xml
index 4c5a813..57f1b82 100644
--- a/common-ruoyi/ruoyi-generator/pom.xml
+++ b/common-ruoyi/ruoyi-generator/pom.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- ruoyi-java
+ common-ruoyi
com.ruoyi
3.8.8
diff --git a/common-ruoyi/ruoyi-quartz/pom.xml b/common-ruoyi/ruoyi-quartz/pom.xml
index eca89f3..0735304 100644
--- a/common-ruoyi/ruoyi-quartz/pom.xml
+++ b/common-ruoyi/ruoyi-quartz/pom.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- ruoyi-java
+ common-ruoyi
com.ruoyi
3.8.8
diff --git a/common-ruoyi/ruoyi-system/pom.xml b/common-ruoyi/ruoyi-system/pom.xml
index 0116b4c..b0146ff 100644
--- a/common-ruoyi/ruoyi-system/pom.xml
+++ b/common-ruoyi/ruoyi-system/pom.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- ruoyi-java
+ common-ruoyi
com.ruoyi
3.8.8
diff --git a/kdwebapi.properties b/kdwebapi.properties
new file mode 100644
index 0000000..bf5f5e9
--- /dev/null
+++ b/kdwebapi.properties
@@ -0,0 +1,20 @@
+# \u8D26\u5957ID
+X-KDApi-AcctID=6708ecf34e20aa
+# AppId
+X-KDApi-AppID=293412_54doTclO2rHWR51FX/6sVZSLzsT8WprE
+# \u79D8\u94A5
+X-KDApi-AppSec=a30d9593a0d64c80898003447bfb3c2c
+# \u7528\u6237\u540D
+X-KDApi-UserName=\u521B\u7279\u7269\u8054
+# \u8BED\u79CD
+X-KDApi-LCID=2052
+# \u8BF7\u6C42URL
+X-KDApi-ServerUrl=http://cloud.fjyinghao.com:881/k3cloud/
+
+
+#X-KDApi-AcctID =6304ba61219bf5
+#X-KDApi-AppID=225649_7ZbM6dDO0qrVXXUKX/Xs09wH2u5d4rLE
+#X-KDApi-AppSec =2bb1d972f3574a46aebee03cdc80aeae
+#X-KDApi-UserName =demo
+#X-KDApi-LCID=2052
+#X-KDApi-ServerUrl=https://apiexp.open.kingdee.com/k3cloud/
diff --git a/pom.xml b/pom.xml
index 6e87d71..97210c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
com.ruoyi
- ruoyi-java
+ yh-java
3.8.8
ruoyi
diff --git a/ruoyi-web/lib/gson-2.8.0.jar b/ruoyi-web/lib/gson-2.8.0.jar
new file mode 100644
index 0000000..1235f63
Binary files /dev/null and b/ruoyi-web/lib/gson-2.8.0.jar differ
diff --git a/ruoyi-web/lib/k3cloud-webapi-sdk8.0.6.jar b/ruoyi-web/lib/k3cloud-webapi-sdk8.0.6.jar
new file mode 100644
index 0000000..d1677b5
Binary files /dev/null and b/ruoyi-web/lib/k3cloud-webapi-sdk8.0.6.jar differ
diff --git a/ruoyi-web/pom.xml b/ruoyi-web/pom.xml
index 5266144..faec846 100644
--- a/ruoyi-web/pom.xml
+++ b/ruoyi-web/pom.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- ruoyi-java
+ yh-java
com.ruoyi
3.8.8
@@ -17,6 +17,26 @@
+
+
+ com.k3cloud
+ webapi-sdk
+ 8.0.6
+ system
+
+ ${pom.basedir}/lib/k3cloud-webapi-sdk8.0.6.jar
+
+
+
+
+ com.google
+ gson
+ 2.8.0
+ system
+
+ ${pom.basedir}/lib/gson-2.8.0.jar
+
+
org.springframework.boot
@@ -57,6 +77,7 @@
spring-boot-maven-plugin
2.5.15
+ true
true
diff --git a/ruoyi-web/src/main/java/com/ruoyi/k3cloud/K3TestController.java b/ruoyi-web/src/main/java/com/ruoyi/k3cloud/K3TestController.java
new file mode 100644
index 0000000..b1a9fa6
--- /dev/null
+++ b/ruoyi-web/src/main/java/com/ruoyi/k3cloud/K3TestController.java
@@ -0,0 +1,57 @@
+package com.ruoyi.k3cloud;
+
+import com.alibaba.fastjson2.JSONObject;
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.kingdee.bos.webapi.entity.QueryParam;
+import com.kingdee.bos.webapi.entity.RepoRet;
+import com.kingdee.bos.webapi.sdk.K3CloudApi;
+import com.ruoyi.common.annotation.Anonymous;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+
+/**
+ * @author wjh
+ * 2024/10/25
+ */
+@RestController
+@RequestMapping("/k3/test")
+public class K3TestController extends BaseController {
+
+ @Autowired
+ private K3CloudApi k3CloudApi;
+
+ @GetMapping("/query")
+ @Anonymous
+ public String test() throws Exception {
+ K3CloudApi api = new K3CloudApi();
+ JSONObject obj = new JSONObject();
+ obj.put("FormId", "PRD_MO");
+ obj.put("FieldKeys", "FBillNo,FDocumentStatus");
+ obj.put("FilterString", "");
+ obj.put("OrderString", "");
+ obj.put("TopRowCount", 0);
+ obj.put("StartRow", 0);
+ obj.put("Limit", 2000);
+ obj.put("SubSystemId", "");
+ return api.executeBillQueryJson(JSONObject.toJSONString(obj));
+ }
+
+ @GetMapping("/del")
+ @Anonymous
+ public Object del() throws Exception {
+ K3CloudApi api = new K3CloudApi();
+ String data = "{\"CreateOrgId\": 0,\"Numbers\": ["+"\"123\""+"],\"Id\": \"\",\"IsSortBySeq\": \"false\"}";
+ String result = api.delete("PRD_MO", data);
+ Gson gson = new Gson();
+ RepoRet repoRet = gson.fromJson(result, RepoRet.class);
+ return repoRet;
+ }
+
+}
diff --git a/ruoyi-web/src/main/java/com/ruoyi/k3cloud/config/K3CloudConfig.java b/ruoyi-web/src/main/java/com/ruoyi/k3cloud/config/K3CloudConfig.java
new file mode 100644
index 0000000..aab8cce
--- /dev/null
+++ b/ruoyi-web/src/main/java/com/ruoyi/k3cloud/config/K3CloudConfig.java
@@ -0,0 +1,20 @@
+package com.ruoyi.k3cloud.config;
+
+import com.kingdee.bos.webapi.sdk.K3CloudApi;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 金蝶云星空配置
+ * @author wjh
+ * 2024/10/25
+ */
+@Configuration
+public class K3CloudConfig {
+
+ @Bean
+ public K3CloudApi k3CloudApi() {
+ return new K3CloudApi();
+ }
+
+}
diff --git a/ruoyi-web/src/main/resources/k3cloud/创特.cnf b/ruoyi-web/src/main/resources/k3cloud/创特.cnf
new file mode 100644
index 0000000..9291b58
Binary files /dev/null and b/ruoyi-web/src/main/resources/k3cloud/创特.cnf differ