|
|
|
@@ -18,12 +18,12 @@ |
|
|
|
<result column="receipt_num" jdbcType="VARCHAR" property="receiptNum" /> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
<result column="owe" jdbcType="DECIMAL" property="owe" /> |
|
|
|
|
|
|
|
<result column="pay_status" jdbcType="Integer" property="payStatus" /> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`shop_id`,`user_area`,`price`,`need_pay`,`receive_pay`,`pay`,`receive_period`,`receive_date`,`pay_date`,`createtime`,`expired_day`,`pay_way`,`receipt_num`,`tenant_id`,`owe` |
|
|
|
`id`,`shop_id`,`user_area`,`price`,`need_pay`,`receive_pay`,`pay`,`receive_period`,`receive_date`,`pay_date`,`createtime`,`expired_day`,`pay_way`,`receipt_num`,`tenant_id`,`owe`,`pay_status` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -61,7 +61,7 @@ |
|
|
|
select br.id,br.shop_id shopId,br.user_area userArea,br.price,br.need_pay needPay,br.receive_pay receivePay, |
|
|
|
br.pay,br.receive_period receivePeriod,br.receive_date receiveDate,br.pay_date payDate,br.createtime, |
|
|
|
br.expired_day expiredDay,br.pay_way payWay,br.receipt_num receiptNum,m.`name` merchantName, |
|
|
|
s.build_area buildArea,s.operation_area operationArea,s.shop_number shopNumber,br.owe |
|
|
|
s.build_area buildArea,s.operation_area operationArea,s.shop_number shopNumber,br.owe,br.pay_status payStatus |
|
|
|
from wx_bill_rent br left join wx_merchant_shop ms on br.shop_id=ms.shop_id and ms.is_del=0 |
|
|
|
inner join wx_merchant m on ms.merchant_id=m.id |
|
|
|
inner join wx_shop s on ms.shop_id=s.id |
|
|
|
@@ -81,6 +81,9 @@ |
|
|
|
<if test=" null != payWay "> and br.`pay_way` = #{payWay} </if> |
|
|
|
<if test=" null != receiptNum "> and br.`receipt_num` = #{receiptNum} </if> |
|
|
|
<if test=" null != tenantId "> and br.`tenant_id` = #{tenantId} </if> |
|
|
|
<if test=" null != shopNumber "> and br.`shop_number` = #{shopNumber} </if> |
|
|
|
<if test=" null != payStatus "> and br.`pay_status` = #{payStatus} </if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and br.id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
|