|
|
|
@@ -8,6 +8,7 @@ |
|
|
|
<id property="id" column="id" jdbcType="BIGINT"/> |
|
|
|
<result property="tenantId" column="tenant_id" jdbcType="VARCHAR"/> |
|
|
|
<result property="parentTenantId" column="parent_tenant_id" jdbcType="VARCHAR"/> |
|
|
|
<result property="fromOrderId" column="from_order_id" jdbcType="BIGINT"/> |
|
|
|
<result property="orderNo" column="order_no" jdbcType="VARCHAR"/> |
|
|
|
<result property="orderMoney" column="order_money" jdbcType="DECIMAL"/> |
|
|
|
<result property="cusName" column="cus_name" jdbcType="VARCHAR"/> |
|
|
|
@@ -31,7 +32,7 @@ |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
id,tenant_id,parent_tenant_id, |
|
|
|
order_no,order_money,cus_name, |
|
|
|
from_order_id,order_no,order_money,cus_name, |
|
|
|
real_cus_name,cus_phone,cus_address, |
|
|
|
cus_card,lottery_num,lottery_count, |
|
|
|
anniversary_lottery_num,create_by,merchant_id,business_id, |
|
|
|
@@ -66,6 +67,10 @@ |
|
|
|
and `cus_phone` = #{cusPhone} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != fromOrderId "> |
|
|
|
and `from_order_id` = #{fromOrderId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != orderNo and orderNo != '' "> |
|
|
|
and `order_no` like concat('%', #{orderNo},'%') |
|
|
|
</if> |
|
|
|
|