<sql>
<if test=" delInd !=null and delInd !=''">
AND del_ind = #{delInd}
</if>
<if test=" version !=null and version !=''">
AND version = #{version}
</if>
</sql>
<select id="pagingAccountList" parameterType="java.util.Map" resultMap="bizPrtnAccInfMap">
select
<include refid="column_list"/>
from BIZ_PRTN_ACC_INF
where 1=1
<include refid="where_filters"/>
ORDER BY created_time DESC
</select>
Map<String,Object> request = new HashMap<>();
request.put("delInd","0");
PageInfo<Map<String,Object>> pageInfo = bizPrtnAccInfService.getAccInfPageByMap(request);
但调这个方法的时候,这个delInd没有传进去,mapper没有解析到,是什么情况
https://blog.csdn.net/Dongguabai/article/details/82981250
找到一个看着合理的答案。
<select id="pagingAccountList" parameterType="map" resultMap="bizPrtnAccInfMap">
select
<include refid="column_list"/>
from BIZ_PRTN_ACC_INF
where id=map.delInd
<include refid="where_filters"/>
ORDER BY created_time DESC
</select>
public PageInfo<Map<String,Object>> getAccInfPageByMap(@Param("map") Map<String,String> map);