forked from kidgrow-microservices-platform

zhaoxiaohao
2020-09-18 daa697719eb0ddfd170f1ab94c5422a4f5b93951
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!---->
<mapper namespace="com.kidgrow.order.mapper.OrderInfoDetailMapper">
    <!--定义根据-OrderDetail当作查询条件返回对象集合-->
    <select id="findList"  resultType="com.kidgrow.order.entity.OrderInfoDetail">
        select t.* from order_detail${tableTag} t,order_info${tableTag} s where t.order_id=s.order_id
    </select>
 
    <select id="findListAll" resultType="com.kidgrow.order.entity.OrderInfoDetail">
        select t.* from order_detail t,order_info s where t.order_id=s.order_id
    </select>
</mapper>