<?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="cn.ibizlab.core.sample.mapper.IBIZOrderDetailMapper">

    <!--该方法用于重写mybatis中selectById方法，以实现查询逻辑属性-->
	<select id="selectById"  resultMap="IBIZOrderDetailResultMap" databaseId="dm">
        <![CDATA[select * from v_ibizorderdetail t1     where  ibizorderdetailid=#{id}]]>
    </select>
	<select id="selectById"  resultMap="IBIZOrderDetailResultMap" databaseId="hana">
        <![CDATA[select * from v_ibizorderdetail t1     where  ibizorderdetailid=#{id}]]>
    </select>
	<select id="selectById"  resultMap="IBIZOrderDetailResultMap" databaseId="mysql">
        <![CDATA[select * from v_ibizorderdetail t1     where  ibizorderdetailid=#{id}]]>
    </select>
	<select id="selectById"  resultMap="IBIZOrderDetailResultMap" databaseId="postgresql">
        <![CDATA[select * from v_ibizorderdetail t1     where  ibizorderdetailid=#{id}]]>
    </select>
	<select id="selectById"  resultMap="IBIZOrderDetailResultMap" databaseId="sqlserver">
        <![CDATA[select * from v_ibizorderdetail t1     where  ibizorderdetailid=#{id}]]>
    </select>

    <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
    <resultMap id="IBIZOrderDetailResultMap" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" autoMapping="true">
		<id property="ibizorderdetailid" column="ibizorderdetailid" /><!--主键字段映射-->
		<result property="ibizorderid" column="ibizorderid" />
		<result property="ibizuniproductid" column="ibizuniproductid" />
            
		
		<!--通过mybatis自动注入关系属性[主实体]，fetchType="lazy"为懒加载配置 -->
		<association property="ibizorder" javaType="cn.ibizlab.core.sample.domain.IBIZOrder" column="ibizorderid" select="cn.ibizlab.core.sample.mapper.IBIZOrderMapper.selectById" fetchType="lazy"></association>
		<!--通过mybatis自动注入关系属性[主实体]，fetchType="lazy"为懒加载配置 -->
		<association property="ibizuniproduct" javaType="cn.ibizlab.core.sample.domain.IBIZUNIProduct" column="ibizuniproductid" select="cn.ibizlab.core.sample.mapper.IBIZUNIProductMapper.selectById" fetchType="lazy"></association>
    </resultMap>

	<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID] -->
	 <select id="selectByIbizorderid" resultMap="IBIZOrderDetailResultMap">
         select t1.* from (
                <include refid="Default" />
			 ) t1
			 where  ibizorderid=#{ibizorderid}
     </select>
	<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_IBIZORDERDETAIL_IBIZUNIPRODUCT_IBIZUNIPRODUCTID] -->
	 <select id="selectByIbizuniproductid" resultMap="IBIZOrderDetailResultMap">
         select t1.* from (
                <include refid="Default" />
			 ) t1
			 where  ibizuniproductid=#{ibizuniproductid}
     </select>

    <!--数据集合[CSMXDY]-->
	 <select id="searchCSMXDY"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderDetailSearchContext"  resultMap="IBIZOrderDetailResultMap">
         select t1.* from (
                <include refid="CSMXDY" />
         )t1
         <where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
         <if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
     </select>

    <!--数据集合[Default]-->
	 <select id="searchDefault"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderDetailSearchContext"  resultMap="IBIZOrderDetailResultMap">
         select t1.* from (
                <include refid="Default" />
         )t1
         <where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
         <if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
     </select>

    <!--数据集合[LOGIC_0007]-->
	 <select id="searchLOGIC_0007"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderDetailSearchContext"  resultMap="IBIZOrderDetailResultMap">
         select t1.* from (
                <include refid="LOGIC_0007" />
         )t1
         <where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
         <if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
     </select>

    <!--数据集合[X]-->
	 <select id="searchX"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderDetailSearchContext"  resultMap="IBIZOrderDetailResultMap">
         select t1.* from (
                <include refid="X" />
         )t1
         <where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
         <if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
     </select>

    <!--数据查询[CSMXDY]-->
    <sql id="CSMXDY" databaseId="dm">
		<![CDATA[ SELECT t1.QUANTITY*t11.UNITPRICE AS AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.IBIZORDERDETAILA, t1.IBIZORDERDETAILID, t1.IBIZORDERDETAILNAME, t1.IBIZORDERID, t21.IBIZORDERNAME, t1.IBIZUNIPRODUCTID, t11.IBIZUNIPRODUCTNAME, t21.ORDERUID, t1.QUANTITY, t11.UNIT, t11.UNITPRICE, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZORDERDETAIL t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.IBIZORDERID =  #{srf.webcontext.srfkeys} )
			]]>
    </sql>
    <!--数据查询[CSMXDY]-->
    <sql id="CSMXDY" databaseId="hana">
		<![CDATA[ SELECT t1.\"QUANTITY\"*t11.\"UNITPRICE\" AS \"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"IBIZORDERDETAILA\", t1.\"IBIZORDERDETAILID\", t1.\"IBIZORDERDETAILNAME\", t1.\"IBIZORDERID\", t21.\"IBIZORDERNAME\", t1.\"IBIZUNIPRODUCTID\", t11.\"IBIZUNIPRODUCTNAME\", t21.\"ORDERUID\", t1.\"QUANTITY\", t11.\"UNIT\", t11.\"UNITPRICE\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\" FROM \"T_IBIZORDERDETAIL\" t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.\"IBIZORDERID\" =  #{srf.webcontext.srfkeys} )
			]]>
    </sql>
    <!--数据查询[CSMXDY]-->
    <sql id="CSMXDY" databaseId="mysql">
		<![CDATA[ SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1  LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID  LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCTID  
					 WHERE 	( t1.`IBIZORDERID` =  #{srf.webcontext.srfkeys} )
			]]>
    </sql>
    <!--数据查询[CSMXDY]-->
    <sql id="CSMXDY" databaseId="postgresql">
		<![CDATA[ SELECT t1.QUANTITY*t11.UNITPRICE AS AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.IBIZORDERDETAILA, t1.IBIZORDERDETAILID, t1.IBIZORDERDETAILNAME, t1.IBIZORDERID, t21.IBIZORDERNAME, t1.IBIZUNIPRODUCTID, t11.IBIZUNIPRODUCTNAME, t21.ORDERUID, t1.QUANTITY, t11.UNIT, t11.UNITPRICE, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZORDERDETAIL t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.IBIZORDERID =  #{srf.webcontext.srfkeys} )
			]]>
    </sql>
    <!--数据查询[CSMXDY]-->
    <sql id="CSMXDY" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.[IBIZORDERID] =  #{srf.webcontext.srfkeys} )
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="dm">
		<![CDATA[ SELECT t1.QUANTITY*t11.UNITPRICE AS AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.IBIZORDERDETAILA, t1.IBIZORDERDETAILID, t1.IBIZORDERDETAILNAME, t1.IBIZORDERID, t21.IBIZORDERNAME, t1.IBIZUNIPRODUCTID, t11.IBIZUNIPRODUCTNAME, t21.ORDERUID, t1.QUANTITY, t11.UNIT, t11.UNITPRICE, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZORDERDETAIL t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="hana">
		<![CDATA[ SELECT t1.\"QUANTITY\"*t11.\"UNITPRICE\" AS \"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"IBIZORDERDETAILA\", t1.\"IBIZORDERDETAILID\", t1.\"IBIZORDERDETAILNAME\", t1.\"IBIZORDERID\", t21.\"IBIZORDERNAME\", t1.\"IBIZUNIPRODUCTID\", t11.\"IBIZUNIPRODUCTNAME\", t21.\"ORDERUID\", t1.\"QUANTITY\", t11.\"UNIT\", t11.\"UNITPRICE\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\" FROM \"T_IBIZORDERDETAIL\" t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="mysql">
		<![CDATA[ SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1  LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID  LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCTID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="postgresql">
		<![CDATA[ SELECT t1.QUANTITY*t11.UNITPRICE AS AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.IBIZORDERDETAILA, t1.IBIZORDERDETAILID, t1.IBIZORDERDETAILNAME, t1.IBIZORDERID, t21.IBIZORDERNAME, t1.IBIZUNIPRODUCTID, t11.IBIZUNIPRODUCTNAME, t21.ORDERUID, t1.QUANTITY, t11.UNIT, t11.UNITPRICE, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZORDERDETAIL t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
			]]>
    </sql>
    <!--数据查询[LOGIC_0007]-->
    <sql id="LOGIC_0007" databaseId="dm">
		<![CDATA[ SELECT t1.QUANTITY*t11.UNITPRICE AS AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.IBIZORDERDETAILA, t1.IBIZORDERDETAILID, t1.IBIZORDERDETAILNAME, t1.IBIZORDERID, t21.IBIZORDERNAME, t1.IBIZUNIPRODUCTID, t11.IBIZUNIPRODUCTNAME, t21.ORDERUID, t1.QUANTITY, t11.UNIT, t11.UNITPRICE, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZORDERDETAIL t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.IBIZUNIPRODUCTID =  #{srf.datacontext.ibizuniproductid}  AND  t1.IBIZORDERID =  #{srf.datacontext.ibizorderid} )
			]]>
    </sql>
    <!--数据查询[LOGIC_0007]-->
    <sql id="LOGIC_0007" databaseId="hana">
		<![CDATA[ SELECT t1.\"QUANTITY\"*t11.\"UNITPRICE\" AS \"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"IBIZORDERDETAILA\", t1.\"IBIZORDERDETAILID\", t1.\"IBIZORDERDETAILNAME\", t1.\"IBIZORDERID\", t21.\"IBIZORDERNAME\", t1.\"IBIZUNIPRODUCTID\", t11.\"IBIZUNIPRODUCTNAME\", t21.\"ORDERUID\", t1.\"QUANTITY\", t11.\"UNIT\", t11.\"UNITPRICE\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\" FROM \"T_IBIZORDERDETAIL\" t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.\"IBIZUNIPRODUCTID\" =  #{srf.datacontext.ibizuniproductid}  AND  t1.\"IBIZORDERID\" =  #{srf.datacontext.ibizorderid} )
			]]>
    </sql>
    <!--数据查询[LOGIC_0007]-->
    <sql id="LOGIC_0007" databaseId="mysql">
		<![CDATA[ SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1  LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID  LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCTID  
					 WHERE 	( t1.`IBIZUNIPRODUCTID` =  #{srf.datacontext.ibizuniproductid}  AND  t1.`IBIZORDERID` =  #{srf.datacontext.ibizorderid} )
			]]>
    </sql>
    <!--数据查询[LOGIC_0007]-->
    <sql id="LOGIC_0007" databaseId="postgresql">
		<![CDATA[ SELECT t1.QUANTITY*t11.UNITPRICE AS AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.IBIZORDERDETAILA, t1.IBIZORDERDETAILID, t1.IBIZORDERDETAILNAME, t1.IBIZORDERID, t21.IBIZORDERNAME, t1.IBIZUNIPRODUCTID, t11.IBIZUNIPRODUCTNAME, t21.ORDERUID, t1.QUANTITY, t11.UNIT, t11.UNITPRICE, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZORDERDETAIL t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.IBIZUNIPRODUCTID =  #{srf.datacontext.ibizuniproductid}  AND  t1.IBIZORDERID =  #{srf.datacontext.ibizorderid} )
			]]>
    </sql>
    <!--数据查询[LOGIC_0007]-->
    <sql id="LOGIC_0007" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
					 WHERE 	( t1.[IBIZUNIPRODUCTID] =  #{srf.datacontext.ibizuniproductid}  AND  t1.[IBIZORDERID] =  #{srf.datacontext.ibizorderid} )
			]]>
    </sql>
    <!--数据查询[X]-->
    <sql id="X" databaseId="mysql">
		<![CDATA[ SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1  LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID  LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCTID  
			]]>
    </sql>
    <!--数据查询[X]-->
    <sql id="X" databaseId="postgresql">
		<![CDATA[ SELECT t1.QUANTITY*t11.UNITPRICE AS AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.IBIZORDERDETAILA, t1.IBIZORDERDETAILID, t1.IBIZORDERDETAILNAME, t1.IBIZORDERID, t21.IBIZORDERNAME, t1.IBIZUNIPRODUCTID, t11.IBIZUNIPRODUCTNAME, t21.ORDERUID, t1.QUANTITY, t11.UNIT, t11.UNITPRICE, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZORDERDETAIL t1  LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID  LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID  
			]]>
    </sql>
</mapper>

