yue преди 5 години
родител
ревизия
d91abd0f2d
променени са 1 файла, в които са добавени 10 реда и са изтрити 7 реда
  1. 10 7
      src/main/java/com/jeeplus/core/service/CrudService.java

+ 10 - 7
src/main/java/com/jeeplus/core/service/CrudService.java

@@ -3,16 +3,15 @@
  */
 package com.jeeplus.core.service;
 
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.transaction.annotation.Transactional;
-
 import com.jeeplus.core.persistence.BaseMapper;
 import com.jeeplus.core.persistence.DataEntity;
 import com.jeeplus.core.persistence.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
 
 /**
  * Service基类
@@ -56,6 +55,9 @@ public abstract class CrudService<M extends BaseMapper<T>, T extends DataEntity<
 		return mapper.findList(entity);
 	}
 
+	public List<T> findListBy(List<T> entity) {
+		return mapper.findListBy(entity);
+	}
 
 	/**
 	 * 查询所有列表数据
@@ -80,6 +82,7 @@ public abstract class CrudService<M extends BaseMapper<T>, T extends DataEntity<
 		return page;
 	}
 
+
 	/**
 	 * 保存数据(插入或更新)
 	 * @param entity