﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-爪哇一角-文章分类-Spring mvc + Spring + MyBaties</title><link>http://www.blogjava.net/ocean07000814/category/54988.html</link><description>共同探讨STRUTS#HIBERNATE#SPRING#EJB等技术</description><language>zh-cn</language><lastBuildDate>Sun, 21 Feb 2016 14:40:07 GMT</lastBuildDate><pubDate>Sun, 21 Feb 2016 14:40:07 GMT</pubDate><ttl>60</ttl><item><title>MyBaties中多表嵌套查询的一种写法</title><link>http://www.blogjava.net/ocean07000814/articles/429385.html</link><dc:creator>非洲小白脸</dc:creator><author>非洲小白脸</author><pubDate>Sun, 21 Feb 2016 13:15:00 GMT</pubDate><guid>http://www.blogjava.net/ocean07000814/articles/429385.html</guid><wfw:comment>http://www.blogjava.net/ocean07000814/comments/429385.html</wfw:comment><comments>http://www.blogjava.net/ocean07000814/articles/429385.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ocean07000814/comments/commentRss/429385.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ocean07000814/services/trackbacks/429385.html</trackback:ping><description><![CDATA[<div>多表嵌套查询：</div><div>&lt;mapper namespace="com.sica.mapper.UserMapper"&gt; &nbsp;</div><div>&nbsp; &nbsp; &lt;resultMap id="BaseResultMap" type="com.sica.domain.User"&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;id column="id" property="id" jdbcType="VARCHAR"/&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="username" property="username" jdbcType="VARCHAR"/&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="password" property="password" jdbcType="VARCHAR"/&gt; &nbsp;</div><div>&nbsp; &nbsp; &lt;/resultMap&gt; &nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &lt;resultMap id="queryForListMap" type="com.sica.domain.User"&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;id column="id" property="id" jdbcType="VARCHAR"/&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="username" property="username" jdbcType="VARCHAR"/&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="password" property="password" jdbcType="VARCHAR"/&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;collection property="roles" javaType="java.util.List" ofType="com.sica.domain.Role"&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;id column="r_id" property="id" jdbcType="VARCHAR" /&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="r_name" property="name" jdbcType="VARCHAR" /&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="r_jsms" property="jsms" jdbcType="VARCHAR" /&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="r_bz" property="bz" jdbcType="VARCHAR" /&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="r_jlzt" property="jlzt" jdbcType="INTEGER" /&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;result column="r_glbm" property="glbm" jdbcType="VARCHAR" /&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/collection&gt; &nbsp;</div><div>&nbsp; &nbsp; &lt;/resultMap&gt; &nbsp;</div><div>&nbsp; &nbsp; &lt;select id="queryForList" resultMap="queryForListMap"&gt; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SELECT &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u.id, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u.username, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u.password, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.id r_id, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.name r_name, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.jsms r_jsms, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.bz r_bz, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.jlzt r_jlzt, &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.glbm r_glbm &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FROM &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user u &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; role r &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ON &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u.id = r.userid &nbsp;</div><div>&nbsp; &nbsp; &lt;/select&gt;&nbsp;</div><img src ="http://www.blogjava.net/ocean07000814/aggbug/429385.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ocean07000814/" target="_blank">非洲小白脸</a> 2016-02-21 21:15 <a href="http://www.blogjava.net/ocean07000814/articles/429385.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>easyUI中已存在tab页的更新</title><link>http://www.blogjava.net/ocean07000814/articles/429384.html</link><dc:creator>非洲小白脸</dc:creator><author>非洲小白脸</author><pubDate>Sun, 21 Feb 2016 13:14:00 GMT</pubDate><guid>http://www.blogjava.net/ocean07000814/articles/429384.html</guid><wfw:comment>http://www.blogjava.net/ocean07000814/comments/429384.html</wfw:comment><comments>http://www.blogjava.net/ocean07000814/articles/429384.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ocean07000814/comments/commentRss/429384.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ocean07000814/services/trackbacks/429384.html</trackback:ping><description><![CDATA[<div>//将选中的tab更新</div><div>var contents = currentTab.panel('options').content;</div><div>XX.tabs('update',{</div><div><span style="white-space:pre">		</span>tab : currentTab,</div><div><span style="white-space:pre">		</span>options:{</div><div><span style="white-space:pre">			</span>title : title,</div><div><span style="white-space:pre">			</span>content : currentTab.panel('options').content</div><div><span style="white-space:pre">		</span>}</div><div>});</div><div>$("##").attr("src",XXX);</div><img src ="http://www.blogjava.net/ocean07000814/aggbug/429384.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ocean07000814/" target="_blank">非洲小白脸</a> 2016-02-21 21:14 <a href="http://www.blogjava.net/ocean07000814/articles/429384.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>