Browse Source

工作台

guarantee-lsq 7 months ago
parent
commit
d3fe139dfe

+ 3 - 3
platform-service/src/main/java/com/platform/service/workflow/viewStrategy/impl/CustomFormViewStrategy.java

@@ -3,7 +3,7 @@ package com.platform.service.workflow.viewStrategy.impl;
 import com.alibaba.fastjson.JSONObject;
 import com.platform.common.util.JsonUtils;
 import com.platform.dao.enums.LinkTypeEnum;
-import com.platform.service.custom.CustomFormBomService;
+import com.platform.dao.mapper.custom.CustomFormDataMapper;
 import com.platform.service.workflow.viewStrategy.BomViewStrategy;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
@@ -16,7 +16,7 @@ import javax.annotation.Resource;
 public class CustomFormViewStrategy implements BomViewStrategy {
 
     @Resource
-    private CustomFormBomService customFormBomService;
+    private CustomFormDataMapper customFormDataMapper;
 
     @Override
     public String getType() {
@@ -25,6 +25,6 @@ public class CustomFormViewStrategy implements BomViewStrategy {
 
     @Override
     public JSONObject getVOById(String id) {
-        return JSONObject.parseObject(JsonUtils.objectToJson(customFormBomService.getModelById(id)));
+        return JSONObject.parseObject(JsonUtils.objectToJson(customFormDataMapper.selectByPrimaryKey(id)));
     }
 }