|
|
@ -13,6 +13,7 @@ |
|
|
daa.tid as userPhone, |
|
|
daa.tid as userPhone, |
|
|
dao.mi_id, |
|
|
dao.mi_id, |
|
|
IFNULL(dami.`name`,dami.nick_name) as miName, |
|
|
IFNULL(dami.`name`,dami.nick_name) as miName, |
|
|
|
|
|
dao.name, |
|
|
dao.settlement_amount |
|
|
dao.settlement_amount |
|
|
from da_order as dao |
|
|
from da_order as dao |
|
|
LEFT JOIN da_order_item as doi on doi.order_id=dao.id and doi.is_delete=0 |
|
|
LEFT JOIN da_order_item as doi on doi.order_id=dao.id and doi.is_delete=0 |
|
|
@ -22,6 +23,9 @@ |
|
|
<if test="queryParam.orderCode != null and queryParam.orderCode != '' "> |
|
|
<if test="queryParam.orderCode != null and queryParam.orderCode != '' "> |
|
|
AND dao.order_code LIKE CONCAT('%', TRIM(#{queryParam.orderCode}), '%') |
|
|
AND dao.order_code LIKE CONCAT('%', TRIM(#{queryParam.orderCode}), '%') |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="queryParam.name != null and queryParam.name != '' "> |
|
|
|
|
|
AND dao.name LIKE CONCAT('%', TRIM(#{queryParam.name}), '%') |
|
|
|
|
|
</if> |
|
|
<if test="queryParam.orderTimeFrom != null and queryParam.orderTimeTo != null"> |
|
|
<if test="queryParam.orderTimeFrom != null and queryParam.orderTimeTo != null"> |
|
|
and dao.create_time BETWEEN #{queryParam.orderTimeFrom} and #{queryParam.orderTimeTo} |
|
|
and dao.create_time BETWEEN #{queryParam.orderTimeFrom} and #{queryParam.orderTimeTo} |
|
|
</if> |
|
|
</if> |
|
|
|