|
|
|
@@ -38,6 +38,7 @@ |
|
|
|
<result column="apply_status" jdbcType="INTEGER" property="applyStatus"/> |
|
|
|
<result column="bank_name" jdbcType="VARCHAR" property="bankName"/> |
|
|
|
<result column="rent_shop_type" jdbcType="INTEGER" property="rentShopType"/> |
|
|
|
<result column="way" jdbcType="INTEGER" property="way"/> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
@@ -46,9 +47,10 @@ |
|
|
|
`tenant_id`,`filepath`,`status`,`contract_number`,`deposit`,`pay_date`,`is_del`,`merchant_name`, |
|
|
|
`brand`,`business_id`,`shop_type`,`shop_id`,`updatetime`,`createtime`,`link_person`,`link_phone`, |
|
|
|
`pay_account`,`filename`,`lease`,`type`,`revenue`,`adjust_ratio`,`adjust_period`,`pay_ratio`, |
|
|
|
`start_date`,`end_date`,`apply_status`,`bank_name`,`rent_shop_type` |
|
|
|
`start_date`,`end_date`,`apply_status`,`bank_name`,`rent_shop_type`,`way` |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
where 1 = 1 |
|
|
|
<if test=" null != id ">and `id` = #{id}</if> |
|
|
|
@@ -81,6 +83,7 @@ |
|
|
|
<if test=" null != startDate ">and `start_date` = #{startDate}</if> |
|
|
|
<if test=" null != endDate ">and `end_date` = #{endDate}</if> |
|
|
|
<if test=" null != rentShopType ">and `rent_shop_type` = #{rentShopType}</if> |
|
|
|
<if test=" null != way ">and `way` = #{way}</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
@@ -104,7 +107,7 @@ |
|
|
|
rc.lease,rc.filepath,rc.filename,rc.pay_account payAccount,rc.sign_date signDate,rc.merchant_id merchantId,rc.type, |
|
|
|
rc.start_date startDate,rc.end_date endDate,br.`name` brandName,rc.apply_status applyStatus,rc.bank_name |
|
|
|
bankName, |
|
|
|
rc.rent_shop_type rentShopType |
|
|
|
rc.rent_shop_type rentShopType,rc.way |
|
|
|
from wx_rent_contract rc |
|
|
|
left join wx_shop s on rc.shop_id=s.id |
|
|
|
left join wx_mall_floor f on s.floor=f.id |
|
|
|
@@ -118,6 +121,7 @@ |
|
|
|
<if test=" null != shopId ">and rc.`shop_id` = #{shopId}</if> |
|
|
|
<if test=" null != type ">and rc.`type` = #{type}</if> |
|
|
|
<if test=" null != rentShopType ">and rc.`rent_shop_type` = #{rentShopType}</if> |
|
|
|
<if test=" null != way ">and rc.`way` = #{way}</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
order by rc.id desc |
|
|
|
|