<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                一對一(查詢一個訂單,同時查詢訂單對應的用戶信息) 實體關系 ~~~ public class Order { private Integer orderid; private Timestamp ordertime; private Userinfo userinfo; private Double totalprice; private String status; } ~~~ ~~~ public class Userinfo { private Integer userid; private String username; private String sex; private double sal; private Date birthday; private Timestamp stime; } ~~~ XML映射配置 ~~~ <select id="getOrderById" parameterType="int" resultMap="_order"> select o.*, u.username from sorder o, userinfo u where o.userid = u.userid and o.orderid = #{orderid} </select> <!-- id是select result_map的值 --> <!-- type是select查詢的返回值類型 --> <resultMap type="Order" id="_order"> <id property="orderid" column="orderid"></id> <result property="ordertime" column="ordertime"/> <result property="totalprice" column="totalprice"/> <result property="status" column="status"/> <association property="userinfo" javaType="Userinfo"> <id property="userid" column="userid"></id> <result property="username" column="username"/> </association> </resultMap> ~~~ 測試類 ~~~ OrderMapper orderMapper = session.getMapper(OrderMapper.class); Order o = orderMapper.getOrderById(1); System.out.println(o.getOrdertime()+"\t"+o.getTotalprice()+"\t"+o.getUserinfo().getUsername()); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看