提交 a8210611 编写于 作者: zhouweidong's avatar zhouweidong

es支持

上级 f75a3227
...@@ -2825,7 +2825,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser ...@@ -2825,7 +2825,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
<#if de.getUserTag()?? && de.getUserTag()=='elasticsearch'> <#if de.getUserTag()?? && de.getUserTag()=='elasticsearch'>
@Autowired @Autowired
@Lazy @Lazy
${pub.getPKGCodeName()}.core.es.service.I${de.codeName}Service esService; ${pub.getPKGCodeName()}.core.es.service.I${de.codeName}ESService esService;
@Autowired @Autowired
@Lazy @Lazy
......
...@@ -13,7 +13,7 @@ import java.util.List; ...@@ -13,7 +13,7 @@ import java.util.List;
/** /**
* 实体[${item.codeName}] 服务对象接口 * 实体[${item.codeName}] 服务对象接口
*/ */
public interface I${item.codeName}Service{ public interface I${item.codeName}ESService{
<@addIDESerivceBody /> <@addIDESerivceBody />
} }
......
...@@ -5,10 +5,10 @@ TARGET=PSDATAENTITY ...@@ -5,10 +5,10 @@ TARGET=PSDATAENTITY
package ${pub.getPKGCodeName()}.core.es.service.impl; package ${pub.getPKGCodeName()}.core.es.service.impl;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import ${pub.getPKGCodeName()}.core.es.dao.HumanRepository; import ${pub.getPKGCodeName()}.core.es.dao.${item.getCodeName()}ESRepository;
import ${pub.getPKGCodeName()}.core.es.domain.Human; import ${pub.getPKGCodeName()}.core.es.domain.${item.getCodeName()};
import ${pub.getPKGCodeName()}.core.es.service.IHumanService; import ${pub.getPKGCodeName()}.core.es.service.I${item.getCodeName()}ESService;
import ${pub.getPKGCodeName()}.core.valuerule.filter.HumanSearchContext; import ${pub.getPKGCodeName()}.core.valuerule.filter.${item.getCodeName()}SearchContext;
import ${pub.getPKGCodeName()}.util.helper.CachedBeanCopier; import ${pub.getPKGCodeName()}.util.helper.CachedBeanCopier;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
...@@ -24,8 +24,7 @@ import java.util.Collection; ...@@ -24,8 +24,7 @@ import java.util.Collection;
* 实体[${item.getLogicName()}] 服务对象接口实现 * 实体[${item.getLogicName()}] 服务对象接口实现
*/ */
@Slf4j @Slf4j
@Service("${item.getCodeName()}ServiceImpl") public class ${item.getCodeName()}ESServiceImpl implements I${de.getCodeName()}ESService {
public class ${item.getCodeName()}ESServiceImpl implements I${de.getCodeName()}Service {
@Autowired @Autowired
@Lazy @Lazy
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册