This commit is contained in:
parent
e1bd7a2e14
commit
33b7aa480d
|
|
@ -32,6 +32,11 @@ public class MaLeaseVo extends MaLeaseInfo {
|
|||
@ApiModelProperty(value = "租赁需求状态名称")
|
||||
private String leaseStatusName;
|
||||
|
||||
/**
|
||||
* 预估租期(天)
|
||||
*/
|
||||
private Integer leaseDay;
|
||||
|
||||
@ApiModelProperty(value = "装备一级类目Id")
|
||||
private String firstId;
|
||||
|
||||
|
|
|
|||
|
|
@ -246,7 +246,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
b2.name as cityName,
|
||||
m.area_code as areaCode,
|
||||
b.name as areaName,
|
||||
m.address as address
|
||||
m.address as address,
|
||||
CASE
|
||||
WHEN DATE(m.lease_end_time) = DATE(m.lease_start_time) THEN 1
|
||||
ELSE TIMESTAMPDIFF(DAY, m.lease_start_time, m.lease_end_time) + 1
|
||||
END AS leaseDay
|
||||
FROM
|
||||
ma_lease_info m
|
||||
LEFT JOIN base_address b ON b.code = m.area_code
|
||||
|
|
@ -272,12 +276,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="startTime != '' and startTime == 'DESC'">
|
||||
,m.start_time DESC
|
||||
</if>
|
||||
<!--<if test="rentDay != null and rentDay == 'ASC'">
|
||||
,m.lease_day
|
||||
<if test="rentDay != null and rentDay == 'ASC'">
|
||||
,leaseDay
|
||||
</if>
|
||||
<if test="rentDay != null and rentDay == 'DESC'">
|
||||
,m.lease_day DESC
|
||||
</if>-->
|
||||
,leaseDay DESC
|
||||
</if>
|
||||
<if test="endTime != '' and endTime == 'ASC'">
|
||||
,m.end_time
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue