<?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.IBIZOrderMapper">

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

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

	<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_IBIZORDER_IBIZCUSTOMER_IBIZCUSTOMERID] -->
	 <select id="selectByIbizcustomerid" resultMap="IBIZOrderResultMap">
	select * from (
         select t1.* from (
                <include refid="Default" />
			 ) t1
			 where  ibizcustomerid=#{ibizcustomerid}
		 )t1
		 order by orderstate  asc , ordertime   asc
     </select>

    <!--数据集合[CSDY]-->
	 <select id="searchCSDY"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="CSDY" />
         )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>

    <!--数据集合[CurState30]-->
	 <select id="searchCurState30"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="CurState30" />
         )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>

    <!--数据集合[DDJETJBB]-->
	 <select id="searchDDJETJBB"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="DDJETJBB" />
         )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>

    <!--数据集合[DDReport]-->
	 <select id="searchDDReport"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="DDReport" />
         )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>

    <!--数据集合[DYDDMXSJY]-->
	 <select id="searchDYDDMXSJY"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="DYDDMXSJY" />
         )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.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
	 	select * from (
         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>
		 )t1
		 order by orderstate  asc , ordertime   asc
     </select>

    <!--数据集合[EchartsDefaultDataSource]-->
	 <select id="searchEchartsDefaultDataSource"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="EchartsDefaultDataSource" />
         )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>

    <!--数据集合[GaugeDataSource]-->
	 <select id="searchGaugeDataSource"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="GaugeDataSource" />
         )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>

    <!--数据集合[GaugeDataSourceByTime]-->
	 <select id="searchGaugeDataSourceByTime"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="GaugeDataSourceByTime" />
         )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_22]-->
	 <select id="searchLOGIC_22"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="CurState30" />
                 union all
                <include refid="State40" />
         )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>

    <!--数据集合[RadarDataSource]-->
	 <select id="searchRadarDataSource"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="RadarDataSource" />
         )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>

    <!--数据集合[SHZOrder]-->
	 <select id="searchSHZOrder"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="SHZORDER" />
         )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>

    <!--数据集合[State10]-->
	 <select id="searchState10"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="State10" />
         )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>

    <!--数据集合[State30]-->
	 <select id="searchState30"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="State30" />
         )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>

    <!--数据集合[State40]-->
	 <select id="searchState40"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="State40" />
         )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>

    <!--数据集合[XECX]-->
	 <select id="searchXECX"  parameterType="cn.ibizlab.core.sample.filter.IBIZOrderSearchContext"  resultMap="IBIZOrderResultMap">
         select t1.* from (
                <include refid="XECX" />
         )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>

    <!--数据查询[CSDY]-->
    <sql id="CSDY" databaseId="dm">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[CSDY]-->
    <sql id="CSDY" databaseId="hana">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[CSDY]-->
    <sql id="CSDY" databaseId="mysql">
		<![CDATA[ SELECT t1.`QUANTITY`*t11.`UNITPRICE` AS `AMOUNT`, t1.`IBIZORDERDETAILNAME`, t11.`IBIZUNIPRODUCTNAME`, t21.`ORDERUID`, t1.`QUANTITY`, t11.`UNIT`, t11.`UNITPRICE` 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 	t21.IBIZORDERID is not null
						 AND ( t21.IBIZORDERID =  #{srf.webcontext.srfkeys} )
			]]>
    </sql>
    <!--数据查询[CSDY]-->
    <sql id="CSDY" databaseId="postgresql">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[CSDY]-->
    <sql id="CSDY" databaseId="sqlserver">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[CurState30]-->
    <sql id="CurState30" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '30'  AND  t1.CREATEMAN =  #{srf.sessioncontext.srfpersonid} )
			]]>
    </sql>
    <!--数据查询[CurState30]-->
    <sql id="CurState30" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.\"ORDERSTATE\" = '30'  AND  t1.\"CREATEMAN\" =  #{srf.sessioncontext.srfpersonid} )
			]]>
    </sql>
    <!--数据查询[CurState30]-->
    <sql id="CurState30" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.`ORDERSTATE` = '30'  AND  t1.`CREATEMAN` =  #{srf.sessioncontext.srfpersonid} )
			]]>
    </sql>
    <!--数据查询[CurState30]-->
    <sql id="CurState30" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '30'  AND  t1.CREATEMAN =  #{srf.sessioncontext.srfpersonid} )
			]]>
    </sql>
    <!--数据查询[CurState30]-->
    <sql id="CurState30" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.[ORDERSTATE] = '30'  AND  t1.[CREATEMAN] =  #{srf.sessioncontext.srfpersonid} )
			]]>
    </sql>
    <!--数据查询[DDJETJBB]-->
    <sql id="DDJETJBB" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDJETJBB]-->
    <sql id="DDJETJBB" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDJETJBB]-->
    <sql id="DDJETJBB" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDJETJBB]-->
    <sql id="DDJETJBB" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDJETJBB]-->
    <sql id="DDJETJBB" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDReport]-->
    <sql id="DDReport" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDReport]-->
    <sql id="DDReport" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDReport]-->
    <sql id="DDReport" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDReport]-->
    <sql id="DDReport" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DDReport]-->
    <sql id="DDReport" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[DYDDMXSJY]-->
    <sql id="DYDDMXSJY" databaseId="dm">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[DYDDMXSJY]-->
    <sql id="DYDDMXSJY" databaseId="hana">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[DYDDMXSJY]-->
    <sql id="DYDDMXSJY" databaseId="mysql">
		<![CDATA[ SELECT 	T31.IBIZUNIPRODUCTNAME,T21.QUANTITY,T31.UNIT,T31.UNITPRICE,T21.QUANTITY*T31.UNITPRICE AS AMOUNT 	FROM T_IBIZORDER T1  	 LEFT JOIN T_IBIZCUSTOMER T11 ON T1.IBIZCUSTOMERID = T11.IBIZCUSTOMERID  	 LEFT JOIN T_IBIZORDERDETAIL T21 ON T1.IBIZORDERID = T21.IBIZORDERID  	 LEFT JOIN T_IBIZUNIPRODUCT T31 ON T21.IBIZUNIPRODUCTID = T31.IBIZUNIPRODUCTID
					 WHERE 	t21.IBIZORDERID is not null
						 AND ( t21.IBIZORDERID =  #{srf.webcontext.srfkeys} )
			]]>
    </sql>
    <!--数据查询[DYDDMXSJY]-->
    <sql id="DYDDMXSJY" databaseId="postgresql">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[DYDDMXSJY]-->
    <sql id="DYDDMXSJY" databaseId="sqlserver">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[Default]-->
    <sql id="Default" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[EchartsDefaultDataSource]-->
    <sql id="EchartsDefaultDataSource" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[EchartsDefaultDataSource]-->
    <sql id="EchartsDefaultDataSource" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[EchartsDefaultDataSource]-->
    <sql id="EchartsDefaultDataSource" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[EchartsDefaultDataSource]-->
    <sql id="EchartsDefaultDataSource" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[EchartsDefaultDataSource]-->
    <sql id="EchartsDefaultDataSource" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
			]]>
    </sql>
    <!--数据查询[GaugeDataSource]-->
    <sql id="GaugeDataSource" databaseId="dm">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[GaugeDataSource]-->
    <sql id="GaugeDataSource" databaseId="hana">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[GaugeDataSource]-->
    <sql id="GaugeDataSource" databaseId="mysql">
		<![CDATA[ select ordertype,bfb from (select ordertype,format(sum(case when orderstate='30' then 1 else 0 end)/sum(1)*100,2) bfb from t_IBIZorder t where ordertype is not null group by ordertype) T1
			]]>
    </sql>
    <!--数据查询[GaugeDataSource]-->
    <sql id="GaugeDataSource" databaseId="postgresql">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[GaugeDataSource]-->
    <sql id="GaugeDataSource" databaseId="sqlserver">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[GaugeDataSourceByTime]-->
    <sql id="GaugeDataSourceByTime" databaseId="dm">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[GaugeDataSourceByTime]-->
    <sql id="GaugeDataSourceByTime" databaseId="hana">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[GaugeDataSourceByTime]-->
    <sql id="GaugeDataSourceByTime" databaseId="mysql">
		<![CDATA[ select DATE_FORMAT(ORDERTIME,'%Y%m') months,format(sum(case when orderstate='30' then 1 else 0 end)/sum(1)*100,2) bfb from t_IBIZorder group by months 
			]]>
    </sql>
    <!--数据查询[GaugeDataSourceByTime]-->
    <sql id="GaugeDataSourceByTime" databaseId="postgresql">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[GaugeDataSourceByTime]-->
    <sql id="GaugeDataSourceByTime" databaseId="sqlserver">
		<![CDATA[ 
			]]>
    </sql>
    <!--数据查询[RadarDataSource]-->
    <sql id="RadarDataSource" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERTYPE IS NOT NULL )
			]]>
    </sql>
    <!--数据查询[RadarDataSource]-->
    <sql id="RadarDataSource" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.\"ORDERTYPE\" IS NOT NULL )
			]]>
    </sql>
    <!--数据查询[RadarDataSource]-->
    <sql id="RadarDataSource" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.`ORDERTYPE` IS NOT NULL )
			]]>
    </sql>
    <!--数据查询[RadarDataSource]-->
    <sql id="RadarDataSource" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERTYPE IS NOT NULL )
			]]>
    </sql>
    <!--数据查询[RadarDataSource]-->
    <sql id="RadarDataSource" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.[ORDERTYPE] IS NOT NULL )
			]]>
    </sql>
    <!--数据查询[SHZORDER]-->
    <sql id="SHZORDER" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '20' )
			]]>
    </sql>
    <!--数据查询[SHZORDER]-->
    <sql id="SHZORDER" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.\"ORDERSTATE\" = '20' )
			]]>
    </sql>
    <!--数据查询[SHZORDER]-->
    <sql id="SHZORDER" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.`ORDERSTATE` = '20' )
			]]>
    </sql>
    <!--数据查询[SHZORDER]-->
    <sql id="SHZORDER" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '20' )
			]]>
    </sql>
    <!--数据查询[SHZORDER]-->
    <sql id="SHZORDER" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.[ORDERSTATE] = '20' )
			]]>
    </sql>
    <!--数据查询[State10]-->
    <sql id="State10" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '10' )
			]]>
    </sql>
    <!--数据查询[State10]-->
    <sql id="State10" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.\"ORDERSTATE\" = '10' )
			]]>
    </sql>
    <!--数据查询[State10]-->
    <sql id="State10" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.`ORDERSTATE` = '10' )
			]]>
    </sql>
    <!--数据查询[State10]-->
    <sql id="State10" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '10' )
			]]>
    </sql>
    <!--数据查询[State10]-->
    <sql id="State10" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.[ORDERSTATE] = '10' )
			]]>
    </sql>
    <!--数据查询[State30]-->
    <sql id="State30" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '30' )
			]]>
    </sql>
    <!--数据查询[State30]-->
    <sql id="State30" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.\"ORDERSTATE\" = '30' )
			]]>
    </sql>
    <!--数据查询[State30]-->
    <sql id="State30" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.`ORDERSTATE` = '30' )
			]]>
    </sql>
    <!--数据查询[State30]-->
    <sql id="State30" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '30' )
			]]>
    </sql>
    <!--数据查询[State30]-->
    <sql id="State30" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.[ORDERSTATE] = '30' )
			]]>
    </sql>
    <!--数据查询[State40]-->
    <sql id="State40" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '40' )
			]]>
    </sql>
    <!--数据查询[State40]-->
    <sql id="State40" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.\"ORDERSTATE\" = '40' )
			]]>
    </sql>
    <!--数据查询[State40]-->
    <sql id="State40" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.`ORDERSTATE` = '40' )
			]]>
    </sql>
    <!--数据查询[State40]-->
    <sql id="State40" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.ORDERSTATE = '40' )
			]]>
    </sql>
    <!--数据查询[State40]-->
    <sql id="State40" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.[ORDERSTATE] = '40' )
			]]>
    </sql>
    <!--数据查询[XECX]-->
    <sql id="XECX" databaseId="dm">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.AMOUNT < 5000 )
			]]>
    </sql>
    <!--数据查询[XECX]-->
    <sql id="XECX" databaseId="hana">
		<![CDATA[ SELECT t1.\"AMOUNT\", t1.\"CREATEDATE\", t1.\"CREATEMAN\", t1.\"DETAILNUM\", t1.\"IBIZCUSTOMERID\", t11.\"IBIZCUSTOMERNAME\", t1.\"IBIZORDERID\", t1.\"IBIZORDERNAME\", t1.\"MEMO\", t1.\"ORDERSTATE\", t1.\"ORDERTIME\", t1.\"ORDERTYPE\", t1.\"ORDERUID\", t1.\"UPDATEDATE\", t1.\"UPDATEMAN\", t1.\"WFINSTANCEID\", t1.\"WFSTATE\", t1.\"WFSTEP\" FROM \"T_IBIZORDER\" t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.\"AMOUNT\" < 5000 )
			]]>
    </sql>
    <!--数据查询[XECX]-->
    <sql id="XECX" databaseId="mysql">
		<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DETAILNUM`, t1.`ENDTIME`, t1.`IBIZCUSTOMERID`, t11.`IBIZCUSTOMERNAME`, t1.`IBIZORDERID`, t1.`IBIZORDERNAME`, t1.`MEMO`, t1.`ORDERSTATE`, t1.`ORDERTIME`, t1.`ORDERTYPE`, t1.`ORDERUID`, t1.`STARTTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WFINSTANCEID`, t1.`WFSTATE`, t1.`WFSTEP` FROM `T_IBIZORDER` t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.`AMOUNT` < 5000 )
			]]>
    </sql>
    <!--数据查询[XECX]-->
    <sql id="XECX" databaseId="postgresql">
		<![CDATA[ SELECT t1.AMOUNT, t1.CREATEDATE, t1.CREATEMAN, t1.DETAILNUM, t1.ENDTIME, t1.IBIZCUSTOMERID, t11.IBIZCUSTOMERNAME, t1.IBIZORDERID, t1.IBIZORDERNAME, t1.MEMO, t1.ORDERSTATE, t1.ORDERTIME, t1.ORDERTYPE, t1.ORDERUID, t1.STARTTIME, t1.UPDATEDATE, t1.UPDATEMAN, t1.WFINSTANCEID, t1.WFSTATE, t1.WFSTEP FROM T_IBIZORDER t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.AMOUNT < 5000 )
			]]>
    </sql>
    <!--数据查询[XECX]-->
    <sql id="XECX" databaseId="sqlserver">
		<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1  LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID  
					 WHERE 	( t1.[AMOUNT] < 5000 )
			]]>
    </sql>
</mapper>

