This commit is contained in:
sxu 2024-12-18 16:43:33 +08:00
parent c8dd8523ba
commit e02140f55d
1 changed files with 2 additions and 0 deletions

View File

@ -273,6 +273,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
hh.rent_over_user, hh.rent_over_user,
hh.rent_over_time, hh.rent_over_time,
hh.change_cost as changeCost, hh.change_cost as changeCost,
hh.relief_cost as reliefCost,
CASE CASE
WHEN DATE(hh.rent_over_time) = DATE(hh.pre_outbound_time) THEN 1 WHEN DATE(hh.rent_over_time) = DATE(hh.pre_outbound_time) THEN 1
ELSE TIMESTAMPDIFF(DAY, hh.pre_outbound_time, hh.rent_over_time) + 1 ELSE TIMESTAMPDIFF(DAY, hh.pre_outbound_time, hh.rent_over_time) + 1
@ -295,6 +296,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
hh.num, hh.num,
mt.manage_type, mt.manage_type,
mt.lease_price as dayLeasePrice, mt.lease_price as dayLeasePrice,
hh.relief_cost as reliefCost,
CASE CASE
WHEN DATE(hh.relief_start_time) = DATE(hh.relief_end_time) THEN 1 WHEN DATE(hh.relief_start_time) = DATE(hh.relief_end_time) THEN 1
ELSE TIMESTAMPDIFF(DAY, hh.relief_start_time, hh.relief_end_time) + 1 ELSE TIMESTAMPDIFF(DAY, hh.relief_start_time, hh.relief_end_time) + 1