|
|
|
@@ -116,6 +116,7 @@ |
|
|
|
<result column="bus_discount_ratio" property="busDiscountRatio"/> |
|
|
|
<result column="bus_discount_time" property="busDiscountTime"/> |
|
|
|
|
|
|
|
<result column="end_contract_time" jdbcType="TIMESTAMP" property="endContractTime"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
@@ -128,7 +129,7 @@ |
|
|
|
`deposit`,cashtype_content_lsit,cashtype_lsit,`pay_date`,`is_del`,`merchant_name`, |
|
|
|
`brand`,`business_id`,`shop_type`,`shop_type_str`,`updatetime`,`createtime`,`link_person`,`link_phone`,`link_address`, |
|
|
|
`pay_account`,`filename`,`lease`,`type`,`revenue`,`revenue_ratio`,`revenue_year`,`revenue_ratio_way`,`revenue_ratio_set`,`adjust_ratio`,`adjust_period`,`pay_ratio`, |
|
|
|
`start_date`,`end_date`,`shop_name`,`from_id`, |
|
|
|
`start_date`,`end_date`,`shop_name`,`from_id`,`end_contract_time`, |
|
|
|
`apply_status`,`bank_name`,`rent_shop_type`,`fix_start_date`,`fix_end_date`, |
|
|
|
`business_type`,`rent_info`, `file_names`,price_unit,rent_price,other_rent_price_info,`subject_name`,rent_start_type, |
|
|
|
`rent_input_way`,`adjust_ratio_way`,`operation_type`,late_pay_ratio,late_pay_day,bus_discount_ratio,bus_discount_time |
|
|
|
@@ -495,7 +496,7 @@ |
|
|
|
rc.`deposit`,rc.cashtype_content_lsit,rc.cashtype_lsit,rc.`pay_date`,rc.`is_del`,rc.`merchant_name`, |
|
|
|
rc.`brand`,rc.`business_id`,rc.`shop_type`,rc.`shop_type_str`,rc.`updatetime`,rc.`createtime`,rc.`link_person`,rc.`link_phone`,rc.`link_address`, |
|
|
|
rc.`pay_account`,rc.`filename`,rc.`lease`,rc.`type`,rc.`revenue`,rc.`revenue_ratio`,rc.`revenue_year`,rc.`revenue_ratio_way`,rc.`revenue_ratio_set`,rc.`adjust_ratio`,rc.`adjust_period`,rc.`pay_ratio`, |
|
|
|
rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`, |
|
|
|
rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`,`rc.end_contract_time`, |
|
|
|
rc.`apply_status`,rc.`bank_name`,rc.`rent_shop_type`,rc.`fix_start_date`,rc.`fix_end_date`, |
|
|
|
rc.`business_type`,rc.`rent_info`, rc.`file_names`,rc.price_unit,rent_price,rc.other_rent_price_info,rc.`subject_name`,rc.rent_start_type, |
|
|
|
rc.`rent_input_way`,rc.`adjust_ratio_way`,rc.`operation_type`,rc.late_pay_ratio,rc.late_pay_day,rc.bus_discount_ratio,rc.bus_discount_time |
|
|
|
@@ -520,7 +521,7 @@ |
|
|
|
rc.`deposit`,rc.cashtype_content_lsit,rc.cashtype_lsit,rc.`pay_date`,rc.`is_del`,rc.`merchant_name`, |
|
|
|
rc.`brand`,rc.`business_id`,rc.`shop_type`,rc.`shop_type_str`,rc.`updatetime`,rc.`createtime`,rc.`link_person`,rc.`link_phone`,rc.`link_address`, |
|
|
|
rc.`pay_account`,rc.`filename`,rc.`lease`,rc.`type`,rc.`revenue`,rc.`revenue_ratio`,rc.`revenue_year`,rc.`revenue_ratio_way`,rc.`revenue_ratio_set`,rc.`adjust_ratio`,rc.`adjust_period`,rc.`pay_ratio`, |
|
|
|
rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`, |
|
|
|
rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`,rc.`end_contract_time`, |
|
|
|
rc.`apply_status`,rc.`bank_name`,rc.`rent_shop_type`,rc.`fix_start_date`,rc.`fix_end_date`, |
|
|
|
rc.`business_type`,rc.`rent_info`, rc.`file_names`,rc.price_unit,rent_price,rc.other_rent_price_info,rc.`subject_name`,rc.rent_start_type, |
|
|
|
rc.`rent_input_way`,rc.`adjust_ratio_way`,rc.`operation_type`,rc.late_pay_ratio,rc.late_pay_day,rc.bus_discount_ratio,rc.bus_discount_time |
|
|
|
@@ -556,5 +557,16 @@ |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id = "setEndContractTime" parameterType="com.iformall.domain.po.WxRentContract" > |
|
|
|
update wx_rent_contract set end_contract_time = #{endContractTime} where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id = "findToEndContractList" parameterType="com.iformall.domain.po.WxRentContract" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<include refid="allColumns"/> |
|
|
|
from wx_rent_contract |
|
|
|
where `tenant_id` = #{tenantId} and status = 3 and end_contract_time <= now(); |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |
|
|
|
|