This commit is contained in:
齐天大圣 2024-10-31 10:20:48 +08:00
parent f9edc8af57
commit 2c68d58198
2 changed files with 17 additions and 4 deletions

View File

@ -220,7 +220,7 @@ export function getDicts(dictType) {
export function getStaffByStorId() {
return request({
url: '/business/allOrderInfo/getStaffByStorId',
method: 'get'
method: 'post'
})
}

View File

@ -870,12 +870,25 @@
all_order_info ai
LEFT JOIN mt_user mu ON ai.user_id = mu.id
LEFT JOIN merchant_config mc on mc.id = ai.m_id
<where>
where
<if test="obj.storeId != null and obj.storeId != ''">
ai.store_id = #{obj.storeId}
</if>
</where>
<if test="obj.storeId != null and obj.storeId != ''">
and ai.store_id = #{obj.storeId}
</if>
<if test="obj.orderNo != null and obj.orderNo != ''">
and ai.order_no like concat('%', #{obj.orderNo}, '%')
</if>
<if test="obj.payType != null and obj.payType != ''">
and ai.pay_type = #{obj.payType}
</if>
<if test="obj.type != null and obj.type != ''">
and ai.type = #{obj.type}
</if>
<if test="obj.payChannel != null and obj.payChannel != ''">
and ai.pay_channel = #{obj.payChannel}
</if>
ORDER BY ai.create_time DESC
</select>
<select id="orderStatistics" resultType="java.util.Map">