feat:【crm 系统】线索查询时,增加 times 范围查询
This commit is contained in:
@@ -7,6 +7,11 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 线索分页 Request VO")
|
@Schema(description = "管理后台 - 线索分页 Request VO")
|
||||||
@Data
|
@Data
|
||||||
@@ -42,4 +47,8 @@ public class CrmCluePageReqVO extends PageParam {
|
|||||||
@Schema(description = "跟进状态", example = "true")
|
@Schema(description = "跟进状态", example = "true")
|
||||||
private Boolean followUpStatus;
|
private Boolean followUpStatus;
|
||||||
|
|
||||||
|
@Schema(description = "创建时间", example = "[2023-01-01 00:00:00, 2023-01-31 23:59:59]")
|
||||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
|
private LocalDateTime[] createTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ public interface CrmClueMapper extends BaseMapperX<CrmClueDO> {
|
|||||||
.eqIfPresent(CrmClueDO::getLevel, pageReqVO.getLevel())
|
.eqIfPresent(CrmClueDO::getLevel, pageReqVO.getLevel())
|
||||||
.eqIfPresent(CrmClueDO::getSource, pageReqVO.getSource())
|
.eqIfPresent(CrmClueDO::getSource, pageReqVO.getSource())
|
||||||
.eqIfPresent(CrmClueDO::getFollowUpStatus, pageReqVO.getFollowUpStatus())
|
.eqIfPresent(CrmClueDO::getFollowUpStatus, pageReqVO.getFollowUpStatus())
|
||||||
|
.betweenIfPresent(CrmClueDO::getCreateTime, pageReqVO.getCreateTime())
|
||||||
.orderByDesc(CrmClueDO::getId);
|
.orderByDesc(CrmClueDO::getId);
|
||||||
return selectJoinPage(pageReqVO, CrmClueDO.class, query);
|
return selectJoinPage(pageReqVO, CrmClueDO.class, query);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user