Commit b145b71b by zhangxingmin

push

parent 6e4bc45a
package com.yd.csf.feign.request.appointment;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yd.common.dto.PageDto;
import lombok.Data;
import java.time.LocalDateTime;
......@@ -38,10 +39,12 @@ public class ApiAppointmentPageRequest extends PageDto {
/**
* 确定预约开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime startTime;
/**
* 确定预约结束时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime endTime;
}
......@@ -28,31 +28,34 @@
left join policyholder p on a.appointment_biz_id = p.appointment_biz_id and p.is_deleted = 0
left join insurant i on a.appointment_biz_id = i.appointment_biz_id and i.is_deleted = 0
<if test="request.status != null">
and a.status = #{request.status}
</if>
<where>
<if test="request.status != null">
and a.status = #{request.status}
</if>
<if test="request.appointmentNo != null and request.appointmentNo != ''">
and a.appointment_no like concat('%', #{request.appointmentNo}, '%')
</if>
<if test="request.appointmentNo != null and request.appointmentNo != ''">
and a.appointment_no like concat('%', #{request.appointmentNo}, '%')
</if>
<if test="request.customerNo != null and request.customerNo != ''">
and a.customer_no like concat('%', #{request.customerNo}, '%')
</if>
<if test="request.customerNo != null and request.customerNo != ''">
and a.customer_no like concat('%', #{request.customerNo}, '%')
</if>
<if test="request.productBizId != null and request.productBizId != ''">
and pp.product_biz_id = #{request.productBizId}
</if>
<if test="request.productBizId != null and request.productBizId != ''">
and pp.product_biz_id = #{request.productBizId}
</if>
<if test="request.startTime != null">
and a.confirm_appointment_time &gt;= #{request.startTime}
</if>
<if test="request.startTime != null">
and a.confirm_appointment_time &gt;= #{request.startTime}
</if>
<if test="request.endTime != null">
and a.confirm_appointment_time &lt;= #{request.endTime}
</if>
<if test="request.endTime != null">
and a.confirm_appointment_time &lt;= #{request.endTime}
</if>
and a.is_deleted = 0
and a.is_deleted = 0
</where>
order by a.create_time desc
</select>
<select id="getItineraryDto" resultType="com.yd.csf.service.dto.ItineraryDto">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment