新增下载录音需求
parent
5a2bb30da2
commit
7d024e2ae9
@ -1,34 +0,0 @@
|
||||
package com.baiye.modules.report.dao;
|
||||
|
||||
import com.baiye.modules.report.entity.ReportTask;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wjt
|
||||
* @date 2021/12/13
|
||||
*/
|
||||
@Repository
|
||||
public interface ReportDayRepository extends JpaRepository<ReportTask, Long>, JpaSpecificationExecutor<ReportTask> {
|
||||
/**
|
||||
* 通过任务id 查询所有的日报
|
||||
*
|
||||
* @param taskId
|
||||
* @return
|
||||
*/
|
||||
List<ReportTask> findAllByTaskId(Long taskId);
|
||||
|
||||
/**
|
||||
* 通过条件查询记录
|
||||
* @param beginTime
|
||||
* @param endTime
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@Query(value = "select * from tb_report_task d where (d.create_time between ?1 and ?2) and (coalesce (?3,null) is null or d.task_id in (?3))", nativeQuery = true)
|
||||
List<ReportTask> selectAllByCondition(String beginTime, String endTime, List<Long> ids);
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
package com.baiye.modules.report.dao;
|
||||
|
||||
import com.baiye.modules.report.entity.ReportOrganize;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wujingtao
|
||||
* @date 2022/01/11
|
||||
*/
|
||||
@Repository
|
||||
public interface ReportOrganizeRepository extends JpaRepository<ReportOrganize, Long>, JpaSpecificationExecutor<ReportOrganize> {
|
||||
/**
|
||||
* 通过条件查询记录
|
||||
*
|
||||
* @param beginTime
|
||||
* @param endTime
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@Query(value = "select * from tb_report_organize d where (d.create_time between ?1 and ?2) and (coalesce (?3,null) is null or d.organize_id in (?3))", nativeQuery = true)
|
||||
List<ReportOrganize> selectAllByCondition(String beginTime, String endTime, List<Long> ids);
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
package com.baiye.modules.report.entity;
|
||||
|
||||
import cn.hutool.core.date.DatePattern;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wujingtao
|
||||
* @date 2022/01/11
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "tb_report_organize")
|
||||
@EntityListeners(AuditingEntityListener.class)
|
||||
public class ReportOrganize implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 9034474268733855182L;
|
||||
@Id
|
||||
@Column(name = "id")
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private String organizeName;
|
||||
private Long organizeId;
|
||||
private Integer turnOnNum;
|
||||
private Double turnOnRate;
|
||||
private Double usrRate;
|
||||
private Integer totalNum;
|
||||
private Integer usrNum;
|
||||
@CreatedDate
|
||||
@Column(name = "create_time")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
package com.baiye.modules.report.entity;
|
||||
|
||||
import cn.hutool.core.date.DatePattern;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wjt
|
||||
* @date 2021/12/09
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "tb_report_task")
|
||||
@EntityListeners(AuditingEntityListener.class)
|
||||
public class ReportTask implements Serializable {
|
||||
private static final long serialVersionUID = 4019826389911404260L;
|
||||
@Id
|
||||
@Column(name = "id")
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private String taskName;
|
||||
private Long taskId;
|
||||
private Integer turnOnNum;
|
||||
private Double turnOnRate;
|
||||
private Double usrRate;
|
||||
private Integer usrNum;
|
||||
private Integer totalNum;
|
||||
@CreatedDate
|
||||
@Column(name = "create_time")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package com.baiye.modules.report.entity.vo;
|
||||
|
||||
import com.baiye.modules.report.entity.ReportOrganize;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wujingtao
|
||||
* @date 2022/01/11
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeInfosVO implements Serializable {
|
||||
private static final long serialVersionUID = 133887339450743290L;
|
||||
private Long organizationId;
|
||||
private String organizationName;
|
||||
private List<ReportOrganize> data;
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package com.baiye.modules.report.entity.vo;
|
||||
|
||||
import com.baiye.modules.report.entity.ReportTask;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wujingtao
|
||||
* @date 2021/12/28
|
||||
*/
|
||||
@Data
|
||||
public class TaskInfosVO implements Serializable {
|
||||
private static final long serialVersionUID = 1546722887341864964L;
|
||||
private Long taskId;
|
||||
private String taskName;
|
||||
private List<ReportTask> data;
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.baiye.modules.telemarkting.entity.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wujingtao
|
||||
* @date 2022/01/19
|
||||
*/
|
||||
@Data
|
||||
public class CallRecordsVO {
|
||||
/**
|
||||
* 通话话单id
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* 线索id
|
||||
*/
|
||||
private Long clueId;
|
||||
/**
|
||||
* 成员id
|
||||
*/
|
||||
private Long memberId;
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
private Date createTime;
|
||||
/**
|
||||
* 通话时长
|
||||
*/
|
||||
private Integer duration;
|
||||
/**
|
||||
* 录音地址
|
||||
*/
|
||||
private String recordFileDownloadUrl;
|
||||
}
|
Loading…
Reference in New Issue