forked from kidgrow-microservices-platform

克 刘
2020-04-02 81aaee286ba7f54ef1b713fedd6d24a9294745df
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>