Commit 121169fd by 王祖波

销售线索创建时间排序

parent 56b84f22
......@@ -50,6 +50,11 @@ public class InteractRecordQDTO extends BasePageInfo {
private Integer filterNull;
/**
* 排序字段
*/
private String orderBy;
/**
* 开始时间-创建时间
*/
private Date startTime;
......@@ -116,6 +121,14 @@ public class InteractRecordQDTO extends BasePageInfo {
this.filterNull = filterNull;
}
public String getOrderBy() {
return orderBy;
}
public void setOrderBy(String orderBy) {
this.orderBy = orderBy;
}
public Date getStartTime() {
return startTime;
}
......
......@@ -53,6 +53,11 @@ public class InteractRecordQO extends BasePageInfo {
private Integer filterNull;
/**
* 排序字段
*/
private String orderBy;
/**
* 线索来源
* @see com.gic.haoban.manage.api.enums.content.InteractRecordChannelSourceType
*/
......
......@@ -329,7 +329,12 @@
</foreach>
</if>
</where>
order by last_access_time desc, id desc
<if test="orderBy != null and orderBy != ''">
ORDER BY ${orderBy} DESC,id DESC
</if>
<if test="orderBy == null or orderBy == ''">
ORDER BY last_access_time DESC, id DESC
</if>
</select>
<select id="staticsClerkInteractRecordNew" resultType="com.gic.haoban.manage.service.pojo.bo.content.PotentialCustomerStaticsBO">
......
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