|
@@ -3,16 +3,15 @@
|
|
*/
|
|
*/
|
|
package com.jeeplus.core.service;
|
|
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.BaseMapper;
|
|
import com.jeeplus.core.persistence.DataEntity;
|
|
import com.jeeplus.core.persistence.DataEntity;
|
|
import com.jeeplus.core.persistence.Page;
|
|
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基类
|
|
* Service基类
|
|
@@ -56,6 +55,9 @@ public abstract class CrudService<M extends BaseMapper<T>, T extends DataEntity<
|
|
return mapper.findList(entity);
|
|
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;
|
|
return page;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 保存数据(插入或更新)
|
|
* 保存数据(插入或更新)
|
|
* @param entity
|
|
* @param entity
|