|
@@ -115,8 +115,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
left join company_user cu on a.company_user_id = cu.user_id
|
|
left join company_user cu on a.company_user_id = cu.user_id
|
|
|
left join company c on a.company_id = c.company_id
|
|
left join company c on a.company_id = c.company_id
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="finishTimeStart != null and finishTimeEnd != null">and finish_time between #{finishTimeStart} and #{finishTimeEnd}</if>
|
|
|
|
|
- <if test="payStartTime != null and payEndTime != null">and pay_time between #{payStartTime} and #{payEndTime}</if>
|
|
|
|
|
<if test="liveId != null "> and live_id = #{liveId}</if>
|
|
<if test="liveId != null "> and live_id = #{liveId}</if>
|
|
|
<if test="storeId != null "> and store_id = #{storeId}</if>
|
|
<if test="storeId != null "> and store_id = #{storeId}</if>
|
|
|
<if test="orderCode != null and orderCode != ''"> and a.order_code = #{orderCode}</if>
|
|
<if test="orderCode != null and orderCode != ''"> and a.order_code = #{orderCode}</if>
|
|
@@ -147,7 +145,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="verifyCode != null and verifyCode != ''"> and verify_code = #{verifyCode}</if>
|
|
<if test="verifyCode != null and verifyCode != ''"> and verify_code = #{verifyCode}</if>
|
|
|
<if test="shippingType != null "> and shipping_type = #{shippingType}</if>
|
|
<if test="shippingType != null "> and shipping_type = #{shippingType}</if>
|
|
|
<if test="isChannel != null and isChannel != ''"> and is_channel = #{isChannel}</if>
|
|
<if test="isChannel != null and isChannel != ''"> and is_channel = #{isChannel}</if>
|
|
|
- <if test="finishTime != null ">and a.finish_time >= #{finishTime} and a.finish_time < date_add(#{finishTime}, interval 1 day)</if>
|
|
|
|
|
<if test="deliveryTime != null and deliveryTime != ''"> and a.delivery_time = #{deliveryTime}</if>
|
|
<if test="deliveryTime != null and deliveryTime != ''"> and a.delivery_time = #{deliveryTime}</if>
|
|
|
<if test="tuiMoney != null "> and tui_money = #{tuiMoney}</if>
|
|
<if test="tuiMoney != null "> and tui_money = #{tuiMoney}</if>
|
|
|
<if test="tuiMoneyStatus != null "> and tui_money_status = #{tuiMoneyStatus}</if>
|
|
<if test="tuiMoneyStatus != null "> and tui_money_status = #{tuiMoneyStatus}</if>
|
|
@@ -167,9 +164,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deliveryType != null and deliveryType != ''"> and delivery_type = #{deliveryType}</if>
|
|
<if test="deliveryType != null and deliveryType != ''"> and delivery_type = #{deliveryType}</if>
|
|
|
<if test="deliveryPayMoney != null "> and delivery_pay_money = #{deliveryPayMoney}</if>
|
|
<if test="deliveryPayMoney != null "> and delivery_pay_money = #{deliveryPayMoney}</if>
|
|
|
<if test="deliveryImportTime != null "> and delivery_import_time = #{deliveryImportTime}</if>
|
|
<if test="deliveryImportTime != null "> and delivery_import_time = #{deliveryImportTime}</if>
|
|
|
- <if test="deliverySendTime != null "> and delivery_send_time = #{deliverySendTime}</if>
|
|
|
|
|
- <if test="deliverySendTimeStart != null and deliverySendTimeEnd !=null ">
|
|
|
|
|
- and delivery_send_time between #{deliverySendTimeStart} and #{deliverySendTimeStart}
|
|
|
|
|
|
|
+ <if test="deliverySendTimeStart != null and deliverySendTimeEnd != null and deliverySendTimeStart != '' and deliverySendTimeEnd!= ''">
|
|
|
|
|
+ and a.delivery_send_time between CONCAT(#{deliverySendTimeStart}, ' 00:00:00') and CONCAT(#{deliverySendTimeEnd}, ' 23:59:59')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="payTimeStart != null and payTimeEnd != null and payTimeStart!='' and payTimeEnd!=''">
|
|
|
|
|
+ and a.pay_time between CONCAT(#{payTimeStart}, ' 00:00:00') and CONCAT(#{payTimeEnd}, ' 23:59:59')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="finishTimeStart != null and finishTimeEnd != null and finishTimeStart != '' and finishTimeEnd!=''">
|
|
|
|
|
+ and a.finish_time between CONCAT(#{finishTimeStart}, ' 00:00:00') and CONCAT(#{finishTimeEnd}, ' 23:59:59')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="isAfterSales != null "> and is_after_sales = #{isAfterSales}</if>
|
|
<if test="isAfterSales != null "> and is_after_sales = #{isAfterSales}</if>
|
|
|
<if test="deptId != null "> and cu.dept_id = #{deptId}</if>
|
|
<if test="deptId != null "> and cu.dept_id = #{deptId}</if>
|
|
@@ -184,7 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="backIntegral != null "> and back_integral = #{backIntegral}</if>
|
|
<if test="backIntegral != null "> and back_integral = #{backIntegral}</if>
|
|
|
<if test="isEditMoney != null "> and is_edit_money = #{isEditMoney}</if>
|
|
<if test="isEditMoney != null "> and is_edit_money = #{isEditMoney}</if>
|
|
|
<if test="orderName != null "> and order_name = #{orderName}</if>
|
|
<if test="orderName != null "> and order_name = #{orderName}</if>
|
|
|
- <if test="companyUserName != null "> and cu.user_name like concat(#{companyUserName},'%')</if>
|
|
|
|
|
|
|
+ <if test="companyUserName != null and companyUserName != ''"> and cu.user_name like concat(#{companyUserName},'%')</if>
|
|
|
</where>
|
|
</where>
|
|
|
order by a.create_time desc
|
|
order by a.create_time desc
|
|
|
</select>
|
|
</select>
|