testDao -> testMapper, RandomNumber -> Random
parent
0241fece79
commit
a01274ed20
@ -0,0 +1,30 @@
|
||||
package cokr.xit.foundation.test;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
import cokr.xit.foundation.component.AbstractMapper;
|
||||
|
||||
@Mapper("testMapper")
|
||||
public interface TestMapper extends AbstractMapper {
|
||||
int insert(Map<String, Object> params);
|
||||
|
||||
default int execInsert(String sql) {
|
||||
return insert(params().set("sql", sql));
|
||||
}
|
||||
|
||||
int update(Map<String, Object> params);
|
||||
|
||||
default int execUpdate(String sql) {
|
||||
return update(params().set("sql", sql));
|
||||
}
|
||||
|
||||
int delete(Map<String, Object> params);
|
||||
|
||||
default int execDelete(String sql) {
|
||||
return delete(params().set("sql", sql));
|
||||
}
|
||||
|
||||
void commit();
|
||||
}
|
Loading…
Reference in New Issue