diff --git a/jeecg-module-custom/pom.xml b/jeecg-module-custom/pom.xml
index cb96770..9a831aa 100644
--- a/jeecg-module-custom/pom.xml
+++ b/jeecg-module-custom/pom.xml
@@ -29,6 +29,12 @@
alanpoi-common
1.3.4
+
+
+ net.coobird
+ thumbnailator
+ 0.4.14
+
diff --git a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/OcrApplication.java b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/OcrApplication.java
deleted file mode 100644
index c2ce61f..0000000
--- a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/OcrApplication.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package org.jeecg.module.custom.ocr;
-
-public class OcrApplication {
-}
diff --git a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/PrevailCloudApi.java b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/PrevailCloudApi.java
index 087f43b..fb26e15 100644
--- a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/PrevailCloudApi.java
+++ b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/PrevailCloudApi.java
@@ -1,8 +1,8 @@
package org.jeecg.module.custom.ocr.api;
+import org.jeecg.module.custom.ocr.api.entity.FormRecord;
import org.jeecg.module.custom.ocr.api.entity.PictureSourceParameter;
-import org.jeecg.module.custom.ocr.api.entity.PictureSourceResult;
import org.jeecg.module.custom.ocr.common.entity.ApiPage;
/**
@@ -21,5 +21,5 @@ public interface PrevailCloudApi {
* @param pictureSourceParameter
* @return
*/
- ApiPage pullPictureSourceAll(PictureSourceParameter pictureSourceParameter) throws Exception;
+ ApiPage pullPictureSourceAll(PictureSourceParameter pictureSourceParameter) throws Exception;
}
diff --git a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/BaseResult.java b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/BaseResult.java
index a46c612..4f4ce16 100644
--- a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/BaseResult.java
+++ b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/BaseResult.java
@@ -1,9 +1,11 @@
package org.jeecg.module.custom.ocr.api.entity;
+import lombok.Builder;
import lombok.Data;
+@Builder
@Data
-public class BaseResult {
+public class BaseResult {
/**
* 状态
*/
@@ -27,5 +29,5 @@ public class BaseResult {
/**
* 数据
*/
- String data;
+ T data;
}
diff --git a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormConfigResult.java b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormConfigResult.java
index 9de42d6..c142f3e 100644
--- a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormConfigResult.java
+++ b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormConfigResult.java
@@ -6,7 +6,7 @@ import java.util.List;
import java.util.Map;
@Data
-public class FormConfigResult extends BaseResult{
+public class FormConfigResult {
/**
* 租户雪花no
*/
diff --git a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormRecord.java b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormRecord.java
index 8ea8769..676427a 100644
--- a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormRecord.java
+++ b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/FormRecord.java
@@ -1,7 +1,11 @@
package org.jeecg.module.custom.ocr.api.entity;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
import lombok.Data;
+import java.util.HashMap;
+import java.util.Map;
+
@Data
public class FormRecord {
@@ -85,4 +89,19 @@ public class FormRecord {
*/
private Long submitTime;
+ /**
+ * 拍照打卡
+ */
+ private LivePhoto livePhoto;
+
+ // 使用 Map 捕获动态字段
+ private Map dynamicFields;
+
+ @JsonAnySetter
+ public void setDynamicField(String key, Object value) {
+ if (dynamicFields == null) {
+ dynamicFields = new HashMap<>();
+ }
+ dynamicFields.put(key, value);
+ }
}
diff --git a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/LivePhoto.java b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/LivePhoto.java
new file mode 100644
index 0000000..39ac909
--- /dev/null
+++ b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/LivePhoto.java
@@ -0,0 +1,22 @@
+package org.jeecg.module.custom.ocr.api.entity;
+
+import lombok.Data;
+
+@Data
+public class LivePhoto {
+
+ /**
+ * 图片NO
+ */
+ private Long imgNo;
+
+ /**
+ * 图片地址
+ */
+ private String imgUrl;
+
+ /**
+ * 本地图片地址
+ */
+ private String localImgUrl;
+}
diff --git a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/PictureSourceResult.java b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/PictureSourceResult.java
index c69bd56..196223a 100644
--- a/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/PictureSourceResult.java
+++ b/jeecg-module-custom/src/main/java/org/jeecg/module/custom/ocr/api/entity/PictureSourceResult.java
@@ -1,219 +1,219 @@
-package org.jeecg.module.custom.ocr.api.entity;
-
-import lombok.Data;
-
-import java.util.List;
-import java.util.Map;
-
-/**
- * 图片数据源api 请求参数实体
- *
- * @author hugh(shuli.yao) 1397940314@qq.com
- * @version 1.0
- * @date 2024/3/14 10:19
- */
-@Data
-public class PictureSourceResult {
- /**
- * id
- */
- Long id;
- /**
- * 租户no
- */
- Long tenantNo;
-
- /**
- * 租户名称
- */
- String tenantName;
-
- /**
- * 租户状态
- */
- Integer tenantStatus;
-
- /**
- * 业务主体no
- */
- Long accountNo;
-
- /**
- * 业务主体名称
- */
- String accountName;
-
- /**
- * 业务主体状态
- */
- Integer accountStatus;
-
- /**
- * 项目ID
- */
- Long projectNo;
-
- /**
- * 项目名称
- */
- String projectName;
-
- /**
- * 项目状态
- */
- Integer projectStatus;
-
- /**
- * 所属主计划ID
- */
- Long planNo;
-
- /**
- * 所属主计划名称
- */
- String planName;
- /**
- * 所属主计划状态
- */
- String planstatus;
-
- /**
- * 所属子计划ID
- */
- Long planChildNo;
-
- /**
- * 所属子计划名称
- */
- String planChildName;
-
- /**
- * 所属子计划状态
- */
- String planChildStatus;
-
- /**
- * 任务ID
- */
- Long taskId;
-
- /**
- * 任务名称
- */
- String taskName;
-
- /**
- * 任务状态
- */
- Integer taskStatus;
-
- /**
- * 提报人no
- */
- Long userNo;
-
- /**
- * 提报人名称
- */
- String userName;
-
- /**
- * 拜访省份/直辖市
- */
- Map province;
-
- /**
- * 拜访城市
- */
- Map city;
-
- /**
- * 拜访客户类型
- */
- Map terminalType;
-
- /**
- * 拜访客户级别
- */
- Map terminalLevel;
-
- /**
- * 拜访客户名称
- */
- Map customerName;
-
- /**
- * 拜访项目
- */
- Map projectType;
-
- /**
- * 品牌卡片
- */
- List