Commit 5b817ccc by 吴佳

CommonMapper类 和 commonmapper.xml 位置调整,不用转换生成

parent 2b133309
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.brilliance.mda.support.mybatis.count.mapper.CommonMapper">
<select id="dyncRead" resultType="java.util.HashMap">
${sql}
</select>
</mapper>
......@@ -266,7 +266,7 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
//多表查询时,走CommonMapper查询
if(lists.length>1) {
//调用commonMapper中的dyncRead
List<HashMap<String , Object>> result = sqlSessionTemplate.selectList("com.ceb.gjjs.mda.dao.CommonMapper.dyncRead",
List<HashMap<String , Object>> result = sqlSessionTemplate.selectList("com.brilliance.mda.support.mybatis.count.mapper.CommonMapper.dyncRead",
adapter.getSqlParams());
if(result != null && result.size()>0){
......
package com.brilliance.mda.support.mybatis.count.mapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Mapper
public interface CommonMapper {
List<HashMap<String , Object>> dyncRead(Map<String,Object> dyncMap);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment