|
|
|
@ -1,13 +1,21 @@
|
|
|
|
|
package cokr.xit.foundation.test;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.foundation.component.AbstractMapper;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
@Mapper("testMapper")
|
|
|
|
|
public interface TestMapper extends AbstractMapper {
|
|
|
|
|
List<DataObject> select(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
default List<DataObject> execSelect(String sql) {
|
|
|
|
|
return select(params().set("sql", sql));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int insert(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
default int execInsert(String sql) {
|
|
|
|
|