|
@@ -795,6 +795,44 @@
|
|
|
ITEM_SALES_ORDERID = #{0}
|
|
|
ORDER BY ITEM_ID DESC
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectOrderNum" parameterType="Order" resultType="Integer">
|
|
|
+ SELECT
|
|
|
+ count(O.SALES_ORDERID)
|
|
|
+ FROM
|
|
|
+ TB_IAMBERRY_SHOP_SALES_ORDER O
|
|
|
+ LEFT JOIN TB_IAMBERRY_USER_USERINFO U ON O.SALES_OPENID = U.USER_OPENID
|
|
|
+ WHERE
|
|
|
+ O.SALES_ORDER_TYPE = 1
|
|
|
+ AND O.SALES_STATUS != 1
|
|
|
+ AND O.SALES_STATUS != 0
|
|
|
+ <if test="salesStatus != null and salesStatus != -1">
|
|
|
+ AND O.SALES_STATUS = #{salesStatus}
|
|
|
+ </if>
|
|
|
+ <if test="salesOrderid != null and salesOrderid!=''">
|
|
|
+ AND O.SALES_ORDERID = #{salesOrderid}
|
|
|
+ </if>
|
|
|
+ <if test="beginDate != null and beginDate!=''">
|
|
|
+ AND O.sales_create_date >= #{beginDate}
|
|
|
+ </if>
|
|
|
+ <if test="endDate != null and endDate!=''">
|
|
|
+ AND O.sales_create_date <= #{endDate}
|
|
|
+ </if>
|
|
|
+ ORDER BY O.SALES_CREATE_DATE DESC
|
|
|
+ LIMIT ${page.recordBegin},${page.pageSize}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 根据orderId修改订单状态 -->
|
|
|
+ <update id="updateOrderByPola" parameterType="Order">
|
|
|
+ UPDATE
|
|
|
+ TB_IAMBERRY_SHOP_SALES_ORDER
|
|
|
+ SET
|
|
|
+ <if test="salesUserRemark != null and salesUserRemark != ''">
|
|
|
+ sales_user_remark = #{salesUserRemark}
|
|
|
+ </if>
|
|
|
+ WHERE
|
|
|
+ SALES_ORDERID = #{salesOrderid}
|
|
|
+ </update>
|
|
|
<!-- 菠萝派接口调用,其他接口请勿使用 - end -->
|
|
|
|
|
|
<select id="selectNumberBacklog" resultType="NumberBacklogDto">
|