提交 9de026dc authored 作者:  狄熙卜's avatar 狄熙卜

将example更换位common包中的类

上级 ff13c3e4
...@@ -26,7 +26,11 @@ ...@@ -26,7 +26,11 @@
<artifactId>egov-common</artifactId> <artifactId>egov-common</artifactId>
<version>1.1.10</version> <version>1.1.10</version>
</dependency> </dependency>
<dependency>
<groupId>cn.gtmap</groupId>
<artifactId>estateplat-common</artifactId>
<version>1.2.4-SNAPSHOT</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.security</groupId> <groupId>org.springframework.security</groupId>
<artifactId>spring-security-cas-client</artifactId> <artifactId>spring-security-cas-client</artifactId>
......
...@@ -5,7 +5,7 @@ import cn.gtmap.bdcdj.core.encrypt.LogicalOperatorEnum; ...@@ -5,7 +5,7 @@ import cn.gtmap.bdcdj.core.encrypt.LogicalOperatorEnum;
import cn.gtmap.bdcdj.core.encrypt.handler.CryptHandler; import cn.gtmap.bdcdj.core.encrypt.handler.CryptHandler;
import cn.gtmap.bdcdj.core.encrypt.handler.CryptHandlerFactory; import cn.gtmap.bdcdj.core.encrypt.handler.CryptHandlerFactory;
import cn.gtmap.bdcdj.core.encrypt.handler.ListCryptHandler; import cn.gtmap.bdcdj.core.encrypt.handler.ListCryptHandler;
import cn.gtmap.bdcdj.core.mybatisMapper.entity.Example; import cn.gtmap.estateplat.core.support.mybatis.mapper.Example;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -88,7 +88,7 @@ public class CommonEncryptAdapter implements EncryptAdapter { ...@@ -88,7 +88,7 @@ public class CommonEncryptAdapter implements EncryptAdapter {
private Object doExampleEncrypt(Object param,String mapid) { private Object doExampleEncrypt(Object param,String mapid) {
if (param instanceof Map && ((Map)param).containsKey("example")) { if (param instanceof Map && ((Map)param).containsKey("example")) {
Example example = (Example)((Map)param) .get("example"); Example example = (Example) ((Map)param) .get("example");
Class entityclass = example.getEntityClass(); Class entityclass = example.getEntityClass();
if (entityclass == null && ((Map)param).containsKey("entityClass")) { if (entityclass == null && ((Map)param).containsKey("entityClass")) {
entityclass = (Class)((Map)param).get("entityClass"); entityclass = (Class)((Map)param).get("entityClass");
...@@ -126,7 +126,7 @@ public class CommonEncryptAdapter implements EncryptAdapter { ...@@ -126,7 +126,7 @@ public class CommonEncryptAdapter implements EncryptAdapter {
return param; return param;
} }
private Example convertEncryptValue(Example example, List<String> cryptFieldList,String mapid) { private Example convertEncryptValue(Example example, List<String> cryptFieldList, String mapid) {
Example newExample = new Example(example.getEntityClass()); Example newExample = new Example(example.getEntityClass());
newExample.setOrderByClause(example.getOrderByClause()); newExample.setOrderByClause(example.getOrderByClause());
newExample.setDistinct(example.isDistinct()); newExample.setDistinct(example.isDistinct());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论