标签:ar art sp on c amp r bs table
//设置map参数,innerTable,outTable对应的表名
public String sendDetail(){
pager = getStartPager();
if( null !=msg && msg.equals("succ")){
map.put("innerTable","bs_sent_inner" );
map.put("outTable","bs_sent_out" );
pager = outBoxInnerService.findSendPager(pager, map);
}
if(null !=msg && msg.equals("falilure")){
map.put("innerTable","bs_fail_inner" );
map.put("outTable","bs_fail_out" );
pager = outBoxInnerService.findSendPager(pager, map);
}
map.remove("innerTable");
map.remove("outTable");
return "sendDetail";
}
<!-- xml 配置 table参数-->
select * FROM ${innerTable} where 1 = 1
<if test="config_id != null and config_id !=‘‘ ">
and ms.config_id = #{config_id}
</if>
标签:ar art sp on c amp r bs table
原文地址:http://blog.csdn.net/abcjiecba/article/details/39178465