select 추가

master
mjkhan21 11 months ago
parent 12fbd09de1
commit 96b08f20f1

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

Loading…
Cancel
Save