|
@@ -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)));
|
|
|
}
|
|
|
}
|