Commit 8ab8bb3b by zhangxingmin

push

parent c0ca24a8
......@@ -3,6 +3,8 @@ package com.yd.csf.feign.request.appointmentfile;
import com.yd.common.dto.PageDto;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* 预约附件信息分页查询入参
*/
......@@ -10,6 +12,12 @@ import lombok.Data;
public class ApiAppointmentFilePageRequest extends PageDto {
/**
* 预约信息主表唯一业务ID
*/
@NotBlank(message = "预约信息主表唯一业务ID不能为空")
private String appointmentBizId;
/**
* 文件名
*/
private String fileName;
......
......@@ -6,11 +6,12 @@
select af.* from appointment_file af
<where>
<if test="request.fileName != null and request.fileName != ''">
and af.file_name like concat('%', #{request.fileName}, '%')
</if>
and af.is_deleted = 0
and af.appointment_biz_id = #{request.appointmentBizId} and af.is_deleted = 0
</where>
</select>
</mapper>
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