mybatis 查询 xml list参数;

<select id="getByIds" resultType="string" parameterType="java.util.List">
SELECT a.FENLEINAME from Tab a where a.id in (select b.pid from TB
b where b.id in
  <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
    #{item}
  </foreach>
)
</select>

远程调用其它站点并设置cookie:
参考js
var domainArray =[
{site:
'g.com',action:'/b.do?c'}
,{site:
'www.baidu.com',action:'/a.do?b'}
];
functioncrossDominCookieInit(){
$.each(domainArray,
function(key, obj) {//alert('index in arr:' + key + ', corresponding value:' + val); $.ajax({
type :
"post",
async:
true,
url :
"domincookie/setCookie?t="+obj.site+obj.action,
crossDomain:
true,
dataType :
"jsonp",//数据类型为jsonp jsonp: "jsonpCallback",//服务端用于接收callback调用的function名的参数 success : function(data){
},
error:
function(){
}
});

});

}
//调用远程cookie设置方法,让其它站点设置本系统登陆的账号信息 crossDominCookieInit();

 

--oracle数据库的编码
select * from nls_database_parameters where parameter ='NLS_CHARACTERSET';
--oracle客户端编码
select * from nls_instance_parameters where parameter='NLS_LANGUAGE';

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。