<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                多對多(轉換為2個一對多) 例如:訂單和產品的關系 ~~~ public class Sorder { private int oid; private Timestamp odate; private String ostatus; private String oaddress; private double totalprice; private Userinfo u; private List<Orderdetails> details; } public class Product { private int pid; private String pname; private String pdesc; private double price; private List<Orderdetails> details; } public class Orderdetails { private int id; private double price; private int pcount; private double ptotalprice; private Sorder order; private Product p; } ~~~ 查詢訂單,包含用戶信息,以及訂單下的產品信息 映射關系 ~~~ <select id="getOrderById" parameterType="int" resultMap="_orderdetails"> select s.*, od.id, od.price, od.pcount, p.pid, p.pname, p.pdesc, u.id as uid, u.name from sorder s, orderdetails od, product p,userinfo u where s.oid = od.oid and od.pid = p.pid and s.userid = u.id and s.oid = 1 </select> <resultMap type="Sorder" id="_orderdetails"> <id column="oid" property="oid"/> <result column="odate" property="odate"/> <result column="ostatus" property="ostatus"/> <result column="totalprice" property="totalprice"/> <result column="oaddress" property="oaddress"/> <association property="u" javaType="Userinfo"> <id column="uid" property="id"></id> <result column="name" property="name"/> </association> <collection property="details" ofType="Orderdetails" column="oid"> <id column="id" property="id"/> <result column="price" property="price"/> <result column="pcount" property="pcount"/> <association property="p" javaType="Product"> <id column="pid" property="pid"></id> <result column="pname" property="pname"/> <result column="pdesc" property="pdesc"/> </association> </collection> </resultMap> ~~~ 練習:查詢一個商品,以及商品包含在哪些訂單下
                  <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>

                              哎呀哎呀视频在线观看