Administrator
2020-02-25 fb6eb1e6b9df772d243b5ade8b9e3dd08028e935
fanli/src/main/java/com/yeshi/fanli/mapping/order/CommonOrderMapper.xml
@@ -810,6 +810,11 @@
      <include refid="SELECT_PARAM_ORDER_CREATE_TIME" />
      <!-- 订单时间 -->
      <if test="orderNo != null and orderNo !='' ">AND co.co_order_no = #{orderNo}</if>
      <if test="payment != null">
         AND co.co_payment <![CDATA[<]]> #{payment}
      </if>
      ORDER BY co.co_third_create_time DESC LIMIT ${start},${count}
   </select>
   <select id="countQueryByUid" resultType="java.lang.Long">
@@ -908,6 +913,9 @@
      </if>
      <!-- 订单来源 -->
      <if test="source != null">AND co.co_source_type = #{source}</if>
      <if test="payment != null">
         AND co.co_payment <![CDATA[<]]> #{payment}
      </if>
      ORDER BY co.co_third_create_time DESC LIMIT ${start},${count} ) A LEFT
      JOIN yeshi_ec_user u ON u.id = A.hb_uid
   </select>
@@ -944,6 +952,9 @@
         <foreach collection="listShopId" item="shopId" open=" and ("
            separator=" or " close=")">g.`cog_shop_id` =#{shopId}</foreach>
      </if>
      <if test="payment != null">
         AND co.co_payment <![CDATA[<]]> #{payment}
      </if>
      <if test="minTime != null">
         <!-- 高风险订单 -->
         AND co.`co_third_create_time`&gt;#{minTime} AND<![CDATA[ (co.`co_estimate`>=  ${money} OR co.`co_eIncome`> ${money})]]>
@@ -968,6 +979,9 @@
         <if test="keyType == 1 ">AND co.co_order_no = '${key}'</if>
         <if test="keyType == 2 ">AND hb.hb_uid = ${key}</if>
      </if>
      <if test="payment != null">
         AND co.co_payment <![CDATA[<]]> #{payment}
      </if>
      <!-- 订单来源 -->
      <if test="source != null">AND co.co_source_type = #{source}</if>
   </select>