cc il y a 3 semaines
Parent
commit
8e9280136b
36 fichiers modifiés avec 2 ajouts et 3838 suppressions
  1. 0 41
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/BizWhiteAppAccount.java
  2. 0 90
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsBankTrade.java
  3. 0 50
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsClassficPicture.java
  4. 0 48
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsCollectManufacturer.java
  5. 0 65
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsDict.java
  6. 0 71
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsFaceInfo.java
  7. 0 61
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsImportDataRecord.java
  8. 0 65
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsImportList.java
  9. 0 76
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsShareConfig.java
  10. 0 43
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsStorageExceptionData.java
  11. 0 68
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/JwMforensics215001046.java
  12. 0 74
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/ProcessImportList.java
  13. 0 52
      ai-server/src/main/java/com/zsjz/ai/module/eds/po/StorageErrorLog.java
  14. 1 67
      ai-server/src/main/java/com/zsjz/ai/module/eds/utils/LocalStorage.java
  15. 1 36
      ai-server/src/main/java/com/zsjz/ai/module/eds/xml/BcpEtlService.java
  16. 0 6
      ai-server/src/main/java/com/zsjz/ai/module/eds/xml/DataProcess.java
  17. 0 133
      ai-server/src/main/resources/mappers/eds/BaseInfoMapper.xml
  18. 0 62
      ai-server/src/main/resources/mappers/eds/BrowserMapper.xml
  19. 0 12
      ai-server/src/main/resources/mappers/eds/CaseEdsMapper.xml
  20. 0 445
      ai-server/src/main/resources/mappers/eds/ChatEdsMapper.xml
  21. 0 39
      ai-server/src/main/resources/mappers/eds/CheckItemMapper..xml
  22. 0 146
      ai-server/src/main/resources/mappers/eds/CommerceServiceMapper.xml
  23. 0 35
      ai-server/src/main/resources/mappers/eds/EdsBankTradeMapper.xml
  24. 0 42
      ai-server/src/main/resources/mappers/eds/EdsClassficPictureMapper.xml
  25. 0 149
      ai-server/src/main/resources/mappers/eds/EdsGroupMapper.xml
  26. 0 76
      ai-server/src/main/resources/mappers/eds/EdsMapper.xml
  27. 0 601
      ai-server/src/main/resources/mappers/eds/ElectronicDataMapper.xml
  28. 0 118
      ai-server/src/main/resources/mappers/eds/EmailMapper.xml
  29. 0 59
      ai-server/src/main/resources/mappers/eds/GeographyMapper.xml
  30. 0 54
      ai-server/src/main/resources/mappers/eds/InputMethodMapper..xml
  31. 0 157
      ai-server/src/main/resources/mappers/eds/MaterialInfoMapper.xml
  32. 0 128
      ai-server/src/main/resources/mappers/eds/MediaMapper.xml
  33. 0 35
      ai-server/src/main/resources/mappers/eds/NetworkMapper.xml
  34. 0 366
      ai-server/src/main/resources/mappers/eds/SocialApplicationMapper.xml
  35. 0 116
      ai-server/src/main/resources/mappers/eds/SocialRelationshipMapper.xml
  36. 0 152
      ai-server/src/main/resources/mappers/eds/SystemTraceMapper.xml

+ 0 - 41
ai-server/src/main/java/com/zsjz/ai/module/eds/po/BizWhiteAppAccount.java

@@ -1,41 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-/**
- * 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "biz_white_app_account")
-public class BizWhiteAppAccount {
-
-    @TableId(type = IdType.ASSIGN_ID)
-    private Integer id;
-
-    /**
-     * 账号
-     */
-    @TableField(value = "account")
-    private String account;
-
-    /**
-     * 说明
-     */
-    @TableField(value = "comment")
-    private String comment;
-
-    /**
-     * 账号类型
-     */
-    @TableField(value = "app_account_type")
-    private String appAccountType;
-
-
-}

+ 0 - 90
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsBankTrade.java

@@ -1,90 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-import java.math.BigDecimal;
-import java.time.LocalDateTime;
-
-/**
- * 短信-银行账单 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "eds_bank_trade")
-public class EdsBankTrade {
-
-    @TableId(type = IdType.ASSIGN_ID)
-    private Long id;
-
-    /**
-     * 采集id
-     */
-    @TableField(value = "collect_target_id")
-    private String collectTargetId;
-
-    /**
-     * 本机号码
-     */
-    @TableField(value = "msisdn")
-    private String msisdn;
-
-    /**
-     * 银行名称
-     */
-    @TableField(value = "bank_name")
-    private String bankName;
-
-    /**
-     * 银行卡号
-     */
-    @TableField(value = "bank_card_id")
-    private String bankCardId;
-
-    /**
-     * 银行卡类型
-     */
-    @TableField(value = "bank_card_type")
-    private String bankCardType;
-
-    /**
-     * 转账时间
-     */
-    @TableField(value = "transaction_time")
-    private LocalDateTime transactionTime;
-
-    /**
-     * 交易金额
-     */
-    @TableField(value = "transaction_amount")
-    private BigDecimal transactionAmount;
-
-    /**
-     * 交易类型2.支出;1.收入
-     */
-    @TableField(value = "transaction_type")
-    private Integer transactionType;
-
-    /**
-     * 余额
-     */
-    @TableField(value = "balance")
-    private BigDecimal balance;
-
-    /**
-     * 删除状态
-     */
-    @TableField(value = "delete_status")
-    private Integer deleteStatus;
-
-    private Long caseId;
-
-    private String md5;
-
-
-}

+ 0 - 50
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsClassficPicture.java

@@ -1,50 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-/**
- * 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "eds_classfic_picture")
-public class EdsClassficPicture {
-
-    /**
-     * 图片分类id
-     */
-    @TableId(type = IdType.ASSIGN_ID)
-    private Integer id;
-
-    /**
-     * 采集id
-     */
-    @TableField(value = "collect_target_id")
-    private String collectTargetId;
-
-    /**
-     * 文件hash值,默认算法MD5
-     */
-    @TableField(value = "hashcode")
-    private String hashcode;
-
-    /**
-     * 识别类型,1-人,2-车,3-枪,4-其他,5-涉黄,6-文字
-     */
-    @TableField(value = "sopt_type")
-    private Integer soptType;
-
-    /**
-     * 识别结果百分比
-     */
-    @TableField(value = "spot_result")
-    private String spotResult;
-
-
-}

+ 0 - 48
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsCollectManufacturer.java

@@ -1,48 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-/**
- * 采集厂商 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "eds_collect_manufacturer")
-public class EdsCollectManufacturer {
-
-    /**
-     * 厂商代码
-     */
-    @TableField(value = "orgcode")
-    private String orgcode;
-
-    /**
-     * 厂商名称
-     */
-    @TableField(value = "manufacturer")
-    private String manufacturer;
-
-    /**
-     * 简称
-     */
-    @TableField(value = "short_name")
-    private String shortName;
-
-    /**
-     * 数据量
-     */
-    @TableField(value = "data_count")
-    private Long dataCount;
-
-    /**
-     * 排序
-     */
-    @TableField(value = "sort")
-    private Integer sort;
-
-
-}

+ 0 - 65
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsDict.java

@@ -1,65 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-import java.time.LocalDateTime;
-
-/**
- * 创建时间 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "eds_dict")
-public class EdsDict {
-
-    /**
-     * 编码类型
-     */
-    @TableField(value = "bmlx")
-    private String bmlx;
-
-    /**
-     * 编码类型代码
-     */
-    @TableField(value = "bmlx_py")
-    private String bmlxPy;
-
-    @TableField(value = "bmsz")
-    private String bmsz;
-
-    /**
-     * 编码名称
-     */
-    @TableField(value = "bmmc")
-    private String bmmc;
-
-    /**
-     * 说明
-     */
-    @TableField(value = "remark")
-    private String remark;
-
-    /**
-     * 排序
-     */
-    @TableField(value = "sort")
-    private Integer sort;
-
-    /**
-     * 状态,1.正常 2.停用
-     */
-    @TableField(value = "state")
-    private Integer state;
-
-    @TableField(value = "create_time")
-    private LocalDateTime createTime;
-
-    @TableField(value = "update_time")
-    private LocalDateTime updateTime;
-
-
-}

+ 0 - 71
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsFaceInfo.java

@@ -1,71 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-/**
- * 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "eds_face_info")
-public class EdsFaceInfo {
-
-    @TableId(type = IdType.ASSIGN_ID)
-    private Integer id;
-
-    /**
-     * 图片md5唯一标识
-     */
-    @TableField(value = "hashcode")
-    private String hashcode;
-
-    /**
-     * 文件名
-     */
-    @TableField(value = "pic_name")
-    private String picName;
-
-    /**
-     * 性别
-     */
-    @TableField(value = "gender")
-    private Integer gender;
-
-    /**
-     * 年龄
-     */
-    @TableField(value = "age")
-    private Integer age;
-
-    /**
-     * 是否为活体 0 否 1 是
-     */
-    @TableField(value = "liveness")
-    private Integer liveness;
-
-    /**
-     * 人脸特征数组
-     */
-    @TableField(value = "face_feature")
-    private String faceFeature;
-
-    /**
-     * 采集id
-     */
-    @TableField(value = "collect_target_id")
-    private String collectTargetId;
-
-    /**
-     * 人脸位置坐标json
-     */
-    @TableField(value = "rect")
-    private String rect;
-
-
-}

+ 0 - 61
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsImportDataRecord.java

@@ -1,61 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.baomidou.mybatisplus.spring.activerecord.Model;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
-import java.time.LocalDateTime;
-
-/**
- * 导入电子数据包数据记录 实体类。
- *
- * @author zsjz
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-@TableName(value = "eds_import_data_record")
-public class EdsImportDataRecord extends Model<EdsImportDataRecord> {
-
-    /**
-     * 主键
-     */
-    @TableId(type = IdType.ASSIGN_ID)
-    private Integer id;
-
-    /**
-     * 记录数
-     */
-    @TableField(value = "record_number")
-    private Integer recordNumber;
-
-    /**
-     * 类型
-     */
-    @TableField(value = "type")
-    private Integer type;
-
-    /**
-     * 创建用户id
-     */
-    @TableField(value = "user_id")
-    private Integer userId;
-
-    /**
-     * 创建用户部门id
-     */
-    @TableField(value = "dept_id")
-    private String deptId;
-
-    /**
-     * 创建时间
-     */
-    @TableField(value = "create_date")
-    private LocalDateTime createDate;
-
-
-}

+ 0 - 65
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsImportList.java

@@ -1,65 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.time.LocalDateTime;
-
-@TableName("eds_import_list")
-@Data
-@NoArgsConstructor
-@AllArgsConstructor
-public class EdsImportList {
-    private Long id;
-    private Long caseId;
-    private Long userId;
-    //文件名称
-    private String filename;
-    //状态
-    //0 无状态
-    // 1上传中
-    //2上传完成
-    //3上传失败
-    private Integer status;
-    //子状态
-    //4解析中dfgsdfg
-    //5解析失败
-    //6解析完成
-    private Integer subStatus;
-    private Long size;
-    private String errorMessage;
-    private String edsPath;
-    //采集编号
-    private String edsCti;
-    //检材类型
-    private String materialType;
-    private String clientId;
-    private String productId;
-
-    //上传人
-    private String createName;
-    private String progress;
-
-    //上传时间
-    private LocalDateTime importTime;
-
-    public EdsImportList(Long id) {
-        this.id = id;
-    }
-
-    public EdsImportList(Long id, Long caseId, String ctId) {
-        this.id = id;
-        this.caseId = caseId;
-        this.edsCti = ctId;
-    }
-
-    public EdsImportList(Long id, Integer status, Integer subStatus, String progress, String errorMessage) {
-        this.id = id;
-        this.subStatus = subStatus;
-        this.status = status;
-        this.errorMessage = errorMessage;
-        this.progress = progress;
-    }
-}

+ 0 - 76
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsShareConfig.java

@@ -1,76 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-import java.time.LocalDateTime;
-
-/**
- * 电子数据分析配置 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "eds_share_config")
-public class EdsShareConfig {
-
-    /**
-     * 名称
-     */
-    @TableId(type = IdType.ASSIGN_ID)
-    private String name;
-
-    /**
-     * ip
-     */
-    @TableField(value = "ip")
-    private String ip;
-
-    /**
-     * 端口
-     */
-    @TableField(value = "port")
-    private Integer port;
-
-    /**
-     * 用户名
-     */
-    @TableField(value = "username")
-    private String username;
-
-    /**
-     * 密码
-     */
-    @TableField(value = "password")
-    private String password;
-
-    /**
-     * 子路径
-     */
-    @TableField(value = "sub_path")
-    private String subPath;
-
-    /**
-     * 备注
-     */
-    @TableField(value = "remark")
-    private String remark;
-
-    @TableField(value = "create_time")
-    private LocalDateTime createTime;
-
-    @TableField(value = "update_time")
-    private LocalDateTime updateTime;
-
-    /**
-     * 开启状态,1.开启 2.关闭
-     */
-    @TableField(value = "open_state")
-    private Integer openState;
-
-
-}

+ 0 - 43
ai-server/src/main/java/com/zsjz/ai/module/eds/po/EdsStorageExceptionData.java

@@ -1,43 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-import java.time.LocalDateTime;
-
-/**
- * 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "eds_storage_exception_data")
-public class EdsStorageExceptionData {
-
-    @TableId(type = IdType.ASSIGN_ID)
-    private Long id;
-
-    @TableField(value = "zip_filename")
-    private String zipFilename;
-
-    @TableField(value = "tb_name")
-    private String tbName;
-
-    @TableField(value = "field_name")
-    private String fieldName;
-
-    @TableField(value = "ex_data")
-    private String exData;
-
-    @TableField(value = "ex_message")
-    private String exMessage;
-
-    @TableField(value = "create_time")
-    private LocalDateTime createTime;
-
-
-}

+ 0 - 68
ai-server/src/main/java/com/zsjz/ai/module/eds/po/JwMforensics215001046.java

@@ -1,68 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-/**
- * 评论信息 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "jw_mforensics_215001046")
-public class JwMforensics215001046 {
-
-    /**
-     * 手机数据调查采集目标编号
-     */
-    @TableId(type = IdType.ASSIGN_ID)
-    private String sjsjdccjmbbh;
-
-    /**
-     * 评论ID
-     */
-    @TableField(value = "plid")
-    private String plid;
-
-    /**
-     * 评论人
-     */
-    @TableField(value = "plr")
-    private String plr;
-
-    /**
-     * 评论内容
-     */
-    @TableField(value = "plnr")
-    private String plnr;
-
-    /**
-     * 评论时间
-     */
-    @TableField(value = "plsj")
-    private Long plsj;
-
-    /**
-     * 评论类型
-     */
-    @TableField(value = "pllx")
-    private String pllx;
-
-    /**
-     * 删除状态
-     */
-    @TableField(value = "sczt")
-    private Integer sczt;
-
-    /**
-     * 删除时间
-     */
-    @TableField(value = "scsj")
-    private Long scsj;
-
-
-}

+ 0 - 74
ai-server/src/main/java/com/zsjz/ai/module/eds/po/ProcessImportList.java

@@ -1,74 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-/**
- * 导入列表 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "process_import_list")
-public class ProcessImportList {
-
-    @TableId(type = IdType.ASSIGN_ID)
-    private Integer id;
-
-    /**
-     * 文件名
-     */
-    @TableField(value = "filename")
-    private String filename;
-
-    /**
-     * 用户id
-     */
-    @TableField(value = "user_id")
-    private Integer userId;
-
-    /**
-     * 采集id
-     */
-    @TableField(value = "cid")
-    private String cid;
-
-    /**
-     * 错误信息
-     */
-    @TableField(value = "error_message")
-    private String errorMessage;
-
-    /**
-     * 0:eds,1:collection,2:失败,3:结束
-     */
-    @TableField(value = "status")
-    private Integer status;
-
-    /**
-     * 案件Id
-     */
-    @TableField(value = "caseId")
-    private Integer caseid;
-
-    /**
-     * 证件号码
-     */
-    @TableField(value = "id_number")
-    private String idNumber;
-
-    @TableField(value = "person_id")
-    private Integer personId;
-
-    /**
-     * 文件大小
-     */
-    @TableField(value = "fileSize")
-    private Long filesize;
-
-
-}

+ 0 - 52
ai-server/src/main/java/com/zsjz/ai/module/eds/po/StorageErrorLog.java

@@ -1,52 +0,0 @@
-package com.zsjz.ai.module.eds.po;
-
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-
-import java.time.LocalDateTime;
-
-/**
- * 记录入库异常表记录 实体类。
- *
- * @author zsjz
- */
-@Data
-@TableName(value = "storage_error_log")
-public class StorageErrorLog {
-
-    /**
-     * 主键
-     */
-    @TableId(type = IdType.ASSIGN_ID)
-    private Integer id;
-
-    /**
-     * 错误类型
-     */
-    @TableField(value = "type")
-    private String type;
-
-    /**
-     * 表名
-     */
-    @TableField(value = "table_name")
-    private String tableName;
-
-    /**
-     * cid
-     */
-    @TableField(value = "cid")
-    private String cid;
-
-    /**
-     * 记录时间
-     */
-    @TableField(value = "create_time")
-    private LocalDateTime createTime;
-
-
-}

+ 1 - 67
ai-server/src/main/java/com/zsjz/ai/module/eds/utils/LocalStorage.java

@@ -47,18 +47,6 @@ public class LocalStorage implements Storage {
 
     @Override
     public FileDTO upload(MediaTypeEnum mediaType, File src) {
-        /*Path dest = PathCnst.buildToday(mediaType.getPath()).resolve(src.getName());
-        String ur = visitUrl(mediaType, src.getName());
-        try (InputStream inputStream = FileUtil.getInputStream(src); OutputStream os = FileUtil.getOutputStream(dest)) {
-            int bytesRead;
-            byte[] buffer = new byte[8192];
-            while ((bytesRead = inputStream.read(buffer, 0, 8192)) != -1) {
-                os.write(buffer, 0, bytesRead);
-            }
-        } catch (IOException e) {
-            return null;
-        }
-        return new FileDTO(src.getName(), dest.toString(), ur);*/
         return null;
     }
 
@@ -78,7 +66,6 @@ public class LocalStorage implements Storage {
             String bcpPath = PathConst.RES_BCP + File.separator + caseId;
             String md5Cid = DigestUtil.md5Hex(cid);
             Path dest = PathConst.buildToday(bcpPath).resolve(md5Cid);
-            //Path dest = PathCnst.buildToday(mediaType.getPath() + File.separator + caseId);
             Path destFile = dest.resolve(src.getName());
             FileUtil.copy(src, destFile.toFile(), true);
             String ur = visitUrl(bcpPath, src.getName(), md5Cid);
@@ -97,50 +84,9 @@ public class LocalStorage implements Storage {
         return this.url + "/" + path;
     }
 
-
-    /**
-     * 目录检测,检测是否存在。若不存在,则自动创建目录。适用于使用本地磁盘进行存储,在本身tomcat中创建目录.有一下两种情况:
-     *
-     * @param path 要检测的目录,相对路径,如 jar/file/  创建到file文件,末尾一定加/     或者jar/file/a.jar创建到file文件夹
-     *             <p>
-     *             public void directoryInit(String path) {
-     *             if (path == null) {
-     *             return;
-     *             }
-     *             <p>
-     *             //windows取的路径是\,所以要将\替换为/
-     *             if (path.indexOf("\\") > 1) {
-     *             path = ReUtil.replaceAll(path, "\\\\", "/");
-     *             }
-     *             <p>
-     *             if (path.length() - path.lastIndexOf("/") > 1) {
-     *             //path最后是带了具体文件名的,把具体文件名过滤掉,只留文件/结尾
-     *             path = path.substring(0, path.lastIndexOf("/") + 1);
-     *             }
-     *             <p>
-     *             //如果目录或文件不存在,再进行创建目录的判断
-     *             if (!FileUtil.exists(path)) {
-     *             String[] ps = path.split("/");
-     *             <p>
-     *             String xiangdui = "";
-     *             //length-1,/最后面应该就是文件名了,所以要忽略最后一个
-     *             for (String p : ps) {
-     *             if (StrUtil.isNotBlank(p)) {
-     *             xiangdui = xiangdui + p + "/";
-     *             if (!FileUtil.exists(xiangdui)) {
-     *             File file = new File(xiangdui);
-     *             file.mkdir();
-     *             }
-     *             }
-     *             }
-     *             }
-     *             }
-     */
-
-
     @Override
     public boolean createFolder(String path) {
-        //directoryInit(path);
+
         return true;
     }
 
@@ -159,18 +105,6 @@ public class LocalStorage implements Storage {
 
     @Override
     public FileDTO upload(MediaTypeEnum mediaType, InputStream inputStream, String fileName) {
-       /* Path dest = PathCnst.buildToday(mediaType.getPath()).resolve(fileName);
-        String ur = visitUrl(mediaType, fileName);
-        try (OutputStream os = FileUtil.getOutputStream(dest)) {
-            int bytesRead;
-            byte[] buffer = new byte[8192];
-            while ((bytesRead = inputStream.read(buffer, 0, 8192)) != -1) {
-                os.write(buffer, 0, bytesRead);
-            }
-        } catch (IOException e) {
-            return null;
-        }
-        return new FileDTO(fileName, dest.toString(), ur);*/
         return null;
     }
 }

+ 1 - 36
ai-server/src/main/java/com/zsjz/ai/module/eds/xml/BcpEtlService.java

@@ -9,11 +9,8 @@ import com.zsjz.ai.common.model.dm.entity.FileInfo;
 import com.zsjz.ai.module.dm.mapper.FileInfoMapper;
 import com.zsjz.ai.module.eds.enums.PojoEnum;
 import com.zsjz.ai.module.eds.mapper.EdsImportMaterialMapper;
-import com.zsjz.ai.module.eds.po.EdsImportList;
-import com.zsjz.ai.module.eds.po.EdsImportMaterial;
 import com.zsjz.ai.module.eds.po.PojoFieldInfo;
 import com.zsjz.ai.module.eds.po.basic.WaMforensics010100;
-import com.zsjz.ai.module.eds.po.checkmaterial.WaMforensics160100;
 import com.zsjz.ai.module.eds.utils.Bcp;
 import com.zsjz.ai.module.eds.utils.EtlRedisKey;
 import com.zsjz.ai.module.eds.utils.PojoConstant;
@@ -26,7 +23,6 @@ import java.nio.file.Files;
 import java.nio.file.Path;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Optional;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Stream;
@@ -149,10 +145,6 @@ public class BcpEtlService {
         ExtraFileDTO efd = xmlMessage.getEfd();
 
 //        EdsImportList importList = messageOperations.readMessage("UNSTRUCTURED_DATA_STORAGE");
-        EdsImportList importList = new EdsImportList();
-        importList.setFilename(efd.getFileName());
-        importList.setEdsCti(efd.getCti());
-        importList.setCaseId(efd.getCaseId());
         // 增加图片分类消息
         for (DataInfo dataInfo : dataInfoList) {
             log.info("开始提取bcp数据:{}", dataInfo.getTableName());
@@ -222,34 +214,7 @@ public class BcpEtlService {
     }
 
 
-    /**
-     * 生成上传检材数据
-     *
-     * @param wm0101     基本信息表
-     * @param importList 上传列表
-     * @param xmlMessage 数据解析根类
-     */
-    private EdsImportMaterial generateImportMaterial(WaMforensics010100 wm0101, EdsImportList importList, Message xmlMessage) {
-        EdsImportMaterial importMaterial = new EdsImportMaterial();
-        // 设置基本信息
-        importMaterial.setPrincipalName(Optional.ofNullable(wm0101.getPrincipalName()).orElse(StrUtil.EMPTY));
-        importMaterial.setPoliceNo(Optional.ofNullable(wm0101.getPoliceNo()).orElse(StrUtil.EMPTY));
-        importMaterial.setInchargeWaDepartment(Optional.ofNullable(wm0101.getInchargeWaDepartment()).orElse(StrUtil.EMPTY));
-        importMaterial.setCaseType(Optional.ofNullable(wm0101.getCaseType()).orElse(StrUtil.EMPTY));
-        // 设置检材类型
-        String materialType = importList.getMaterialType();
-        if (StrUtil.isEmpty(materialType)) {
-            // 上传列表检材类型为空, 则查询数据包中是否有检材类型(wm1601)
-            List<WaMforensics160100> wm1601List = xmlMessage.getBcpDataByCls(PojoConstant.WM_160100_CLASS);
-            if (CollUtil.isEmpty(wm1601List) || StrUtil.isEmpty(materialType = wm1601List.get(0).getMaterialType())) {
-                materialType = "99";
-            }
-        }
-        importMaterial.setMaterialType(materialType);
-        // 入库时间
-        importMaterial.setImportTime(importList.getImportTime());
-        return importMaterial;
-    }
+
 
     public boolean verifyProcessStep(Integer num, String ctId, Long caseId) {
 

+ 0 - 6
ai-server/src/main/java/com/zsjz/ai/module/eds/xml/DataProcess.java

@@ -2,7 +2,6 @@ package com.zsjz.ai.module.eds.xml;
 
 
 import cn.hutool.core.collection.CollUtil;
-import cn.hutool.core.collection.CollectionUtil;
 import cn.hutool.core.io.file.FileNameUtil;
 import cn.hutool.core.util.ArrayUtil;
 import cn.hutool.core.util.ObjUtil;
@@ -19,21 +18,17 @@ import com.baomidou.mybatisplus.core.toolkit.MybatisBatchUtils;
 import com.baomidou.mybatisplus.core.toolkit.MybatisUtils;
 import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
 import com.google.common.collect.Lists;
-
 import com.zsjz.ai.common.utils.GlobalPool;
 import com.zsjz.ai.module.eds.anno.EdsFields;
 import com.zsjz.ai.module.eds.enums.FileTypeEnum;
 import com.zsjz.ai.module.eds.enums.MediaTypeEnum;
 import com.zsjz.ai.module.eds.mapper.EdsMediaFileMapper;
-import com.zsjz.ai.module.eds.po.EdsBankTrade;
 import com.zsjz.ai.module.eds.po.EdsMediaFile;
 import com.zsjz.ai.module.eds.po.FileFieldInfo;
 import com.zsjz.ai.module.eds.po.PojoFieldInfo;
-import com.zsjz.ai.module.eds.po.basic.WaMforensics010700;
 import com.zsjz.ai.module.eds.utils.*;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.collections4.ListUtils;
 import org.apache.ibatis.session.SqlSession;
 import org.apache.ibatis.session.SqlSessionFactory;
 import org.mybatis.spring.SqlSessionUtils;
@@ -47,7 +42,6 @@ import java.time.LocalDateTime;
 import java.util.*;
 import java.util.function.Consumer;
 import java.util.regex.Pattern;
-import java.util.stream.Collectors;
 
 /**
  * 每个数据集的处理对象。线程隔离。

+ 0 - 133
ai-server/src/main/resources/mappers/eds/BaseInfoMapper.xml

@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.BaseInfoMapper">
-
-    <select id="selectBaseInfo" resultType="com.zsjz.ai.module.eds.eds.dto.BaseInfoDto">
-        select case_no as caseNo, e3.bmmc as caseType, case_name as caseName, capture_time as captureTime,
-        a.manufacturer, a.materials_name as materialsName, a.model, principal_name as principalName,
-        police_no as policeNo, name, e2.bmmc as certificateType, certificate_code as certificateCode,
-        cert_issue_unit as certIssueUnit, cert_eeffect_date as certEeffectDate, cert_invalid_date as certInvalidDate,
-        sexcode, nation, birthday, registered_address as registeredAddress, user_photo as userPhoto,
-        a.collect_target_id as collectTargetId, b.materials_name as isCollectedMaterialsName,
-        b.manufacturer as isCollectedManufacturer, b.model as isCollectedModel, characteristic_desc as characteristicDesc,
-        c_disks as cDisks, c.materials_name as osName, e.bmmc as osType, os_name as osVersion,
-        crack_status as crackStatus, old_name as oldName, imei_esn_meid as imeiEsnMeid, mac,
-        bluetooth_mac as bluetoothMac, computer_name as computerName, description,
-        msisdn, d.imsi,d.iccid, center_number as centerNumber
-        from wa_mforensics_010100 a
-        left join wa_mforensics_010200 b on a.collect_target_id = b.collect_target_id and a.case_id = b.case_id
-        left join wa_mforensics_010202 c on a.collect_target_id = c.collect_target_id and a.case_id = c.case_id
-        left join wa_mforensics_010300 d on a.collect_target_id = d.collect_target_id and a.case_id = d.case_id
-        left join eds_dict e on e.bmlx_py = 'WACODE_0071_03' and e.bmsz = c.os_type
-        left join eds_dict e2 on e2.bmlx_py = 'GA_T_517_2004' and e2.bmsz = a.certificate_type
-        left join eds_dict e3 on e3.bmlx_py = 'WACODE_0086' and e3.bmsz = a.case_type
-        where a.case_id = #{caseId} and a.collect_target_id = #{cid}
-    </select>
-
-    <select id="getSystemAccount" resultType="com.zsjz.ai.module.eds.eds.dto.SyncAccountDto">
-        select collect_target_id as collectTargetId, COALESCE(NULLIF(account, ''), '未知') AS account, password
-        from wa_mforensics_011000
-        where case_id = #{caseId} and collect_target_id = #{cid} limit 1
-    </select>
-
-    <select id="getApplication" resultType="com.zsjz.ai.module.eds.eds.dto.ApplicationDto">
-        select software_name as softwareName, software_type as softwareType, software_version as softwareVersion,
-        sotfware_path as sotfwarePath, installl_time as installlTime, package_name as packageName, software_sign
-        as softwareSign, latest_mod_time as latestModTime, delete_status as deleteStatus, delete_time as deleteTime
-        from wa_mforensics_090300
-        where case_id = #{caseId} and collect_target_id = #{cid}
-    </select>
-
-    <select id="getOperationRecord" resultType="com.zsjz.ai.module.eds.eds.dto.OperationRecordDto">
-        select user_acttime as userActtime,
-        action_type as actionType,
-        delete_status as deleteStatus, delete_time as deleteTime
-        from wa_mforensics_011200
-        where case_id = #{caseId} and collect_target_id = #{cid}
-    </select>
-
-    <select id="getRelevancyPage" resultType="com.zsjz.ai.module.eds.eds.dto.RelevancePageDto">
-        select
-            bc.id as caseId,
-            bc.case_name,
-            if(bc.judge_status = 2,'',bc.case_code) as caseCode,
-            bc.charge_person,
-            bc.assistant,
-            ifnull(sct.name,'') as caseType,
-            bc.user_id,
-            su.username,
-            bc.is_recovery
-        from
-            bd_platform.bdpf_case bc
-            INNER JOIN bd_platform.bdpf_case_person_eds be ON be.case_id = bc.id
-            left join bd_platform.sys_user su on bc.user_id = su.user_id
-            left join bd_platform.sys_case_type sct  on bc.case_type = sct.type_id
-            where
-            be.eds_id=#{cid}
-            <if test="userIdList != null">
-                and bc.user_id in
-                <foreach collection="userIdList" open="(" item="id" separator="," close=")">
-                    #{id}
-                </foreach>
-            </if>
-            and is_del=0
-        union
-        select
-            bc.id as caseId,
-            bc.case_name,
-            if(bc.judge_status = 2,'',bc.case_code) as caseCode,
-            bc.charge_person,
-            bc.assistant,
-            ifnull(sct.name,'') as caseType,
-            bc.user_id,
-            su.username,
-            bc.is_recovery
-        from
-            bd_platform.bdpf_case_user_power bcup
-            left join bd_platform.bdpf_case bc on bcup.case_id = bc.id
-            INNER JOIN bd_platform.bdpf_case_person_eds be ON be.case_id = bc.id
-            left join bd_platform.sys_user su on bc.user_id = su.user_id
-            left join bd_platform.sys_case_type sct  on bc.case_type = sct.type_id
-        where
-            be.eds_id=#{cid}
-            and bcup.user_id = #{userId}
-            and is_del=0
-    </select>
-    <select id="getBdpfDict" resultType="com.zsjz.ai.module.eds.eds.dict.BdpfDict">
-        SELECT * from bd_platform.bdpf_dict where bmlx_py='WACODE_0086'
-    </select>
-    <select id="getCaseType" resultType="com.zsjz.ai.module.eds.eds.dict.BdpfDict">
-       select  type_id as bmsz,name as bmmc  from bd_platform.sys_case_type;
-    </select>
-
-    <select id="getUserUndertakerCosponsor" resultType="com.zsjz.ai.module.eds.eds.dto.BdpfCaseUndertakerCosponsor">
-        select
-            user_id as userId,
-            case_id as caseId,
-            status as status
-        from
-            bd_platform.bdpf_case_undertaker_cosponsor
-        where
-            case_id in
-            <foreach collection="caseIdList" open="(" item="caseId" separator="," close=")">
-                #{caseId}
-            </foreach>
-    </select>
-
-    <select id="getUserAllCaseIdList" resultType="java.lang.Integer">
-        SELECT
-            id as id
-        FROM
-            bd_platform.bdpf_case
-        WHERE
-            user_id = #{userId}
-        UNION
-        SELECT
-            case_id as id
-        FROM
-            bd_platform.bdpf_case_undertaker_cosponsor
-        WHERE
-            user_id = #{userId}
-    </select>
-
-</mapper>

+ 0 - 62
ai-server/src/main/resources/mappers/eds/BrowserMapper.xml

@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.BrowserMapper">
-
-    <!--账号密码-->
-    <select id="getBrowseAccount" resultType="com.zsjz.ai.module.eds.eds.dto.BrowseAccountDto">
-        select *
-        from wa_mforensics_050100
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-    </select>
-
-    <!--访问历史-->
-    <select id="getBrowseHistory" resultType="com.zsjz.ai.module.eds.eds.dto.BrowseHistoryDto">
-        select *
-        from wa_mforensics_050300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-        order by visit_time desc
-    </select>
-
-    <!--访问历史(数据统计点击)-->
-    <select id="getBrowseHistoryByStat" resultType="com.zsjz.ai.module.eds.eds.dto.BrowseHistoryDto">
-        select *
-        from wa_mforensics_050300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and locate(#{param.url}, url)
-        order by visit_time desc
-    </select>
-
-    <!--收藏夹-->
-    <select id="getBrowseFavorites" resultType="com.zsjz.ai.module.eds.eds.dto.BrowseFavoritesDto">
-        select *
-        from wa_mforensics_050200
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-        order by create_time desc
-    </select>
-
-    <!--cookie-->
-    <select id="getBrowseCookie" resultType="com.zsjz.ai.module.eds.eds.dto.BrowseCookieDto">
-        select *
-        from wa_mforensics_050400
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-    </select>
-
-    <!--搜索记录-->
-    <select id="getBrowseSearch" resultType="com.zsjz.ai.module.eds.eds.dto.BrowseSearchDto">
-        select *
-        from wa_mforensics_050600
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and contact_account_type = #{param.browseType}
-    </select>
-
-</mapper>

+ 0 - 12
ai-server/src/main/resources/mappers/eds/CaseEdsMapper.xml

@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.CaseEdsMapper">
-
-    <select id="countByCid" resultType="int">
-        select count(1)
-        from bd_platform.bdpf_case_person_eds bcpe
-        left join bd_platform.bdpf_case bc on bcpe.case_id = bc.id
-        where eds_id = #{collectTargetId} and bc.is_del = 0
-    </select>
-
-</mapper>

+ 0 - 445
ai-server/src/main/resources/mappers/eds/ChatEdsMapper.xml

@@ -1,445 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.ChatEdsMapper">
-
-    <select id="getAccountInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatAccountInfoDto">
-        select *
-        from wa_mforensics_020100
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and contact_account_type = #{param.contactAccountType} limit 1
-    </select>
-
-    <!--好友信息分组信息-->
-    <select id="getFriendGroup" resultType="com.zsjz.ai.module.eds.eds.dto.ChatFriendGroupDto">
-        select friend_group                                       as friendGroup,
-               count(1)                                           as friendGroupCount,
-               sum(case when delete_status = 1 then 1 else 0 end) as friendGroupDelCount
-        from wa_mforensics_020200
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and contact_account_type = #{param.contactAccountType}
-        group by friendGroup
-        order by friendGroupCount desc
-    </select>
-
-    <!--好友聊天分组信息-->
-    <select id="getFriendGroupMsg" resultType="com.zsjz.ai.module.eds.eds.dto.ChatFriendGroupDto">
-        select a.friend_group             as friendGroup,
-               sum(b.friendGroupCount)    as friendGroupCount,
-               sum(b.friendGroupDelCount) as friendGroupDelCount
-        from (select case_id,
-                     friend_account,
-                     account,
-                     collect_target_id,
-                     count(collect_target_id)                           AS friendGroupCount,
-                     sum(CASE WHEN delete_status = 1 THEN 1 ELSE 0 END) AS friendGroupDelCount
-              from wa_mforensics_020500
-              WHERE case_id = #{param.caseId}
-                and collect_target_id = #{param.collectTargetId}
-                and account = #{param.account}
-                and contact_account_type = #{param.contactAccountType}
-              group by friend_account,
-                       account,
-                       collect_target_id) as b
-                 left join (SELECT case_id, friend_group, collect_target_id, account, friend_account
-                            from wa_mforensics_020200
-                            where case_id = #{param.caseId}
-                              and collect_target_id = #{param.collectTargetId}
-                              and account = #{param.account}
-                              and contact_account_type = #{param.contactAccountType}) as a
-                           on a.case_id = b.case_id and a.collect_target_id = b.collect_target_id and
-                              a.account = b.account
-                               and a.friend_account = b.friend_account
-        group by friendGroup
-        order by friendGroupCount desc
-    </select>
-
-    <!--好友动态信息分组信息-->
-    <select id="getFriendDynamic" resultType="com.zsjz.ai.module.eds.eds.dto.ChatFriendGroupDto">
-        select a.friend_group             as friendGroup,
-               sum(b.friendGroupCount)    as friendGroupCount,
-               sum(b.friendGroupDelCount) as friendGroupDelCount
-        from (select case_id,
-                     friend_account,
-                     account,
-                     collect_target_id,
-                     count(delete_status)                               AS friendGroupCount,
-                     sum(CASE WHEN delete_status = 1 THEN 1 ELSE 0 END) AS friendGroupDelCount
-              from wa_mforensics_020700
-              WHERE case_id = #{param.caseId}
-                and collect_target_id = #{param.collectTargetId}
-                and account = #{param.account}
-                and contact_account_type = #{param.contactAccountType}
-              group by friend_account, account, collect_target_id, case_id) as b
-                 left join (SELECT case_id, friend_group, collect_target_id, account, friend_account
-                            from wa_mforensics_020200
-                            where case_id = #{param.caseId}
-                              and collect_target_id = #{param.collectTargetId}
-                              and account = #{param.account}
-                              and contact_account_type = #{param.contactAccountType}) as a
-                           on a.case_id = b.case_id and a.collect_target_id = b.collect_target_id and
-                              a.account = b.account and a.friend_account = b.friend_account
-        group by friendGroup
-    </select>
-
-    <!--好友信息列表-->
-    <select id="getFriendPage" resultType="com.zsjz.ai.module.eds.eds.dto.ChatFriendInfoDto">
-        select friend_id,friend_account,friend_nickname,friend_group,delete_status
-        from wa_mforensics_020200
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and contact_account_type = #{param.contactAccountType}
-        <choose>
-            <when test="param.friendGroup == '默认分组'">
-                and (friend_group is null or friend_group = #{param.friendGroup})
-            </when>
-            <otherwise>
-                and friend_group = #{param.friendGroup}
-            </otherwise>
-        </choose>
-    </select>
-
-    <!--好友聊天列表-->
-    <select id="getFriendMsgPage" resultType="com.zsjz.ai.module.eds.eds.dto.ChatFriendInfoDto">
-        select
-        a.friend_id, a.friend_account, a.friend_nickname, b.friend_group, b.delete_status, a.friendMsgCount,
-        a.friendMsgDelCount
-        from (
-        select
-        case_id, account, friend_id, friend_account, friend_nickname, collect_target_id, contact_account_type,
-        count(collect_target_id ) as friendMsgCount,
-        sum( CASE WHEN delete_status = 1 THEN 1 ELSE 0 END ) as friendMsgDelCount
-        from wa_mforensics_020500
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and contact_account_type = #{param.contactAccountType}
-        and friend_account is not null
-        GROUP BY account, friend_id, friend_account, friend_nickname, collect_target_id, contact_account_type
-        ) as a
-        left join (
-        select case_id, friend_group, delete_status, collect_target_id, friend_account, account
-        from wa_mforensics_020200
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and contact_account_type = #{param.contactAccountType}
-        <choose>
-            <when test="param.friendGroup == '默认分组'">
-                and (friend_group is null or friend_group = #{param.friendGroup})
-            </when>
-            <otherwise>
-                and friend_group = #{param.friendGroup}
-            </otherwise>
-        </choose>
-        ) as b
-        on a.case_id = b.case_id and a.collect_target_id = b.collect_target_id and a.account = b.account
-        and a.friend_account = b.friend_account
-        where
-        <choose>
-            <when test="param.friendGroup == '默认分组'">
-                b.friend_group is null or friend_group = #{param.friendGroup}
-            </when>
-            <otherwise>
-                b.friend_group is not null
-            </otherwise>
-        </choose>
-        order by friendMsgCount desc
-    </select>
-
-    <!--好友动态信息列表-->
-    <select id="getFriendDynamicPage" resultType="com.zsjz.ai.module.eds.eds.dto.ChatFriendInfoDto">
-        select
-        a.friend_account, a.friend_nickname, b.friend_group, b.delete_status, a.friendMsgCount, a.friendMsgDelCount
-        from (
-        select
-        case_id, account, friend_account, group_concat(DISTINCT friend_nickname) as friend_nickname,
-        collect_target_id, contact_account_type,
-        count(delete_status ) as friendMsgCount,
-        sum( CASE WHEN delete_status = 1 THEN 1 ELSE 0 END ) as friendMsgDelCount
-        from wa_mforensics_020700
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and contact_account_type = #{param.contactAccountType}
-        -- and friend_account is not null
-        GROUP BY friend_account, account, collect_target_id, contact_account_type
-        ) as a
-        left join (
-        select case_id, friend_group, delete_status, collect_target_id, friend_account, account
-        from wa_mforensics_020200
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and contact_account_type = #{param.contactAccountType}
-        <choose>
-            <when test="param.friendGroup == '默认分组'">
-                and (friend_group is null or friend_group = #{param.friendGroup})
-            </when>
-            <otherwise>
-                and friend_group = #{param.friendGroup}
-            </otherwise>
-        </choose>
-        ) as b
-        on a.case_id = b.case_id and a.collect_target_id = b.collect_target_id and a.account = b.account
-        and a.friend_account = b.friend_account
-        order by friendMsgCount desc
-    </select>
-
-    <!--好友信息详情表单-->
-    <select id="getFriendInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatFriendInfoDto">
-        select *
-        from wa_mforensics_020200
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and contact_account_type = #{param.contactAccountType}
-        <choose>
-            <when test="param.friendAccount == null">
-                and friend_account IS NULL
-            </when>
-            <otherwise>
-                and friend_account = #{param.friendAccount}
-            </otherwise>
-        </choose>
-        <choose>
-            <when test="param.friendGroup == '默认分组'">
-                and (friend_group is null or friend_group = #{param.friendGroup})
-            </when>
-            <otherwise>
-                and friend_group = #{param.friendGroup}
-            </otherwise>
-        </choose>
-        limit 1
-    </select>
-
-    <!--群组信息列表-->
-    <select id="getGroupPerson" resultType="com.zsjz.ai.module.eds.eds.dto.ChatGroupInfoDto">
-        select b.case_id,
-               b.group_num                                          as groupNum,
-               b.group_name                                         as groupName,
-               count(b.collect_target_id)                           as GroupCount,
-               sum(case when b.delete_status = 1 then 1 else 0 end) as groupDelCount
-        from wa_mforensics_020400 as b
-        where b.case_id = #{param.caseId}
-          and b.collect_target_id = #{param.collectTargetId}
-          and b.account = #{param.account}
-          and b.contact_account_type = #{param.contactAccountType}
-        group by groupNum, groupName
-        order by GroupCount desc
-    </select>
-
-    <!--群组聊天统计列表-->
-    <select id="getGroupMsg" resultType="com.zsjz.ai.module.eds.eds.dto.ChatGroupInfoDto">
-        select group_num                                          AS groupNum,
-               group_name                                         AS groupName,
-               count(collect_target_id)                           AS GroupCount,
-               sum(CASE WHEN delete_status = 1 THEN 1 ELSE 0 END) AS groupDelCount
-        from wa_mforensics_020600
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and contact_account_type = #{param.contactAccountType}
-          and account = #{param.account}
-        GROUP BY group_num, group_name
-        order by groupCount desc
-    </select>
-
-    <!--搜索记录-->
-    <select id="getSearchInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatSearchInfoDto">
-        select create_time, keyword, delete_status, delete_time
-        from wa_mforensics_020800
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and contact_account_type = #{param.contactAccountType}
-        order by create_time
-    </select>
-
-    <!--好友聊天记录-->
-    <select id="getMsgInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatMsgDto">
-        select
-        localAccount, friendAccount, friendNickname, content, localAction, mailSendTime, localNickName, mediaType,
-        deleteStatus
-        from (
-        select
-        account as localAccount,
-        friend_account as friendAccount,
-        friend_nickname as friendNickname,
-        content as content,
-        local_action as localAction,
-        mail_send_time as mailSendTime,
-        regis_nickname as localNickName,
-        media_type as mediaType,
-        delete_status as deleteStatus
-        from wa_mforensics_020500
-        WHERE case_id = #{param.caseId}
-        AND collect_target_id = #{param.collectTargetId}
-        AND account = #{param.account}
-        AND friend_account = #{param.friendAccount}
-        AND contact_account_type = #{param.contactAccountType}
-        <if test="param.startDateTime!=null">
-            and mail_send_time &gt;= #{param.startDateTime}
-        </if>
-        <if test="param.endDateTime != null">
-            and mail_send_time &lt;= #{param.endDateTime}
-        </if>
-        <if test="param.keyword != null and param.keyword != ''">
-            and locate(#{param.keyword},content)
-        </if>
-        <if test="param.mediaType != null">
-            and media_type = #{param.mediaType.code}
-        </if>
-        <if test="param.longitude != null">
-            <choose>
-                <when test="param.longitude == ''">
-                    and longitude is null
-                </when>
-                <otherwise>
-                    and longitude = #{param.longitude}
-                </otherwise>
-            </choose>
-        </if>
-        <if test="param.latitude != null">
-            <choose>
-                <when test="param.latitude == ''">
-                    and latitude is null
-                </when>
-                <otherwise>
-                    and latitude = #{param.latitude}
-                </otherwise>
-            </choose>
-        </if>
-        union all
-        select
-        account as localAccount,
-        friend_account as friendAccount,
-        friend_nickname as friendNickname,
-        content as content,
-        local_action as localAction,
-        mail_send_time as mailSendTime,
-        regis_nickname as localNickName,
-        media_type as mediaType,
-        delete_status as deleteStatus
-        from wa_mforensics_030400
-        WHERE case_id = #{param.caseId}
-        AND collect_target_id = #{param.collectTargetId}
-        AND account = #{param.account}
-        AND friend_account = #{param.friendAccount}
-        AND contact_account_type = #{param.contactAccountType}
-        <if test="param.startDateTime!=null">
-            and mail_send_time &gt;= #{param.startDateTime}
-        </if>
-        <if test="param.endDateTime != null">
-            and mail_send_time &lt;= #{param.endDateTime}
-        </if>
-        <if test="param.keyword != null and param.keyword != ''">
-            and locate(#{param.keyword},content)
-        </if>
-        <if test="param.mediaType != null">
-            and media_type = #{param.mediaType.code}
-        </if>
-        ) a
-        order by mailSendTime asc
-    </select>
-
-    <!--群组聊天聊天记录-->
-    <select id="getGroupMsgInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatMsgDto">
-        select
-        b.case_id,
-        b.friend_account as friendAccount,
-        b.account as localAccount,
-        b.friend_nickname as friendNickname,
-        b.content as content,
-        b.local_action as localAction,
-        b.mail_send_time as mailSendTime,
-        b.media_type as mediaType,
-        b.delete_status as deleteStatus
-        from wa_mforensics_020600 as b
-        where b.case_id = #{param.caseId} and b.collect_target_id = #{param.collectTargetId}
-        and b.account = #{param.account} and b.contact_account_type =
-        #{param.contactAccountType}
-        <if test="param.friendAccount!=null">
-            and b.group_num = #{param.friendAccount}
-        </if>
-        <if test="param.friendAccount==null">
-            and b.group_num is null
-        </if>
-        <if test="param.startDateTime!=null">
-            and mail_send_time &gt;= #{param.startDateTime}
-        </if>
-        <if test="param.endDateTime != null">
-            and mail_send_time &lt;= #{param.endDateTime}
-        </if>
-        <if test="param.keyword != null and param.keyword != ''">
-            and locate(#{param.keyword},content)
-        </if>
-        <if test="param.mediaType != null">
-            and media_type = #{param.mediaType.code}
-        </if>
-        <if test="param.longitude != null">
-            <choose>
-                <when test="param.longitude == ''">
-                    and longitude is null
-                </when>
-                <otherwise>
-                    and longitude = #{param.longitude}
-                </otherwise>
-            </choose>
-        </if>
-        <if test="param.latitude != null">
-            <choose>
-                <when test="param.latitude == ''">
-                    and latitude is null
-                </when>
-                <otherwise>
-                    and latitude = #{param.latitude}
-                </otherwise>
-            </choose>
-        </if>
-        order by mailSendTime asc
-    </select>
-
-    <!--群主信息-->
-    <select id="getChatGroupOwnerInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatGroupOwnerInfoDto">
-        select *
-        from wa_mforensics_020300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and contact_account_type = #{param.contactAccountType}
-          and group_num = #{param.groupNum} limit 1
-    </select>
-
-    <!--群成员信息-->
-    <select id="getChatGroupPersonInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatGroupPersonInfoDto">
-        select *
-        from wa_mforensics_020400
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and contact_account_type = #{param.contactAccountType}
-          and group_num = #{param.groupNum}
-    </select>
-
-    <!--动态信息-->
-    <select id="getDynamicInfo" resultType="com.zsjz.ai.module.eds.eds.dto.ChatDynamicInfoDto">
-        select *
-        from wa_mforensics_020700
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and contact_account_type = #{param.contactAccountType}
-        <if test="param.friendAccount == null">
-            and friend_account IS NULL
-        </if>
-        <if test="param.friendAccount != null">
-            AND friend_account = #{param.friendAccount}
-        </if>
-        order by mail_send_time desc
-    </select>
-
-</mapper>

+ 0 - 39
ai-server/src/main/resources/mappers/eds/CheckItemMapper..xml

@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.CheckItemMapper">
-
-    <select id="listHitTargetType" resultType="com.zsjz.ai.module.eds.po.EdsDirTreeCount">
-        SELECT `keys` as fullName, count(1) as hasNum
-        from wa_mforensics_777777
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and warning_json is not null
-          and data_view is not null
-          and source_json is not null
-        GROUP BY `keys`
-    </select>
-
-    <select id="listHitTargetDetail" resultType="com.zsjz.ai.module.eds.po.EdsDirTreeCount">
-        SELECT appgroup as fullName, count(1) as hasNum
-        from wa_mforensics_777777
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and warning_json is not null
-          and data_view is not null
-          and source_json is not null
-          and `keys` like CONCAT('%', '${key}', '%')
-        GROUP BY `appgroup`
-    </select>
-    <select id="listCheckItemDetail"
-            resultType="com.zsjz.ai.module.eds.po.check.WaMforensics777777">
-        SELECT key_value_group, warning_json, data_view, source_json
-        from wa_mforensics_777777
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and warning_json is not null
-          and data_view is not null
-          and source_json is not null
-          and appgroup = #{keyStr}
-          and `keys` like CONCAT('%', '${type}', '%')
-    </select>
-</mapper>

+ 0 - 146
ai-server/src/main/resources/mappers/eds/CommerceServiceMapper.xml

@@ -1,146 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.CommerceServiceMapper">
-
-    <select id="getAccount" resultType="com.zsjz.ai.module.eds.eds.dto.CommerceAccountDto">
-        select user_photo       as userPhoto,
-               account_id       as accountId,
-               account,
-               regis_nickname   as regisNickname,
-               password,
-               sexcode,
-               birthday,
-               age,
-               zodiac,
-               constallation,
-               reg_city         as regCity,
-               graduateschool,
-               occupation_name  as occupationName,
-               blood_type       as bloodType,
-               name,
-               sign_name        as signName,
-               personal_desc    as personalDesc,
-               remain_sum       as remainSum,
-               msisdn,
-               fixed_phone      as fixedPhone,
-               email_account    as emailAccount,
-               postal_address   as postalAddress,
-               postal_code      as postalCode,
-               certificate_type as certificateType,
-               certificate_code as certificateCode,
-               install_time     as installTime,
-               account_reg_date as accountRegDate,
-               last_login_time  as lastLoginTime,
-               latest_mod_time  as latestModTime,
-               delete_status    as deleteStatus,
-               delete_time      as deleteTime
-        from wa_mforensics_070100
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and (account = #{account} or account_id = #{account})
-          and network_app = #{type} limit 1
-    </select>
-
-    <select id="getTradeRecord" resultType="com.zsjz.ai.module.eds.eds.dto.CommerceTradeRecordDto">
-        select account_id      as accountId,
-               account,
-               regis_nickname  as regisNickname,
-               business_time   as businessTime,
-               money,
-               deal_status     as dealStatus,
-               relafulldesc,
-               os_product_id   as osProductId,
-               shop_id         as shopId,
-               company_address as companyAddress,
-               receiver_phone  as receiverPhone,
-               receiver_name   as receiverName,
-               delete_status   as deleteStatus,
-               delete_time     as deleteTime,
-               local_action    as localAction
-        from wa_mforensics_070400
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and network_app = #{type}
-        order by business_time desc
-    </select>
-
-    <select id="getSearchRecord" resultType="com.zsjz.ai.module.eds.eds.dto.SearchRecordDto">
-        select create_time as createTime, keyword, delete_status as deleteStatus, delete_time as deleteTime
-        from wa_mforensics_070500
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and network_app = #{type}
-        order by create_time desc
-    </select>
-
-    <select id="getGroupRedEnvelopeList" resultType="com.zsjz.ai.module.eds.eds.dto.GroupRedEnvelopeGroupInfoDto">
-        SELECT group_num                                          AS groupNum,
-               group_name                                         AS groupName,
-               count(collect_target_id)                           AS GroupCount,
-               sum(CASE WHEN delete_status = 1 THEN 1 ELSE 0 END) AS groupDelCount
-        FROM wa_mforensics_070700
-        WHERE case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.networkApp}
-          AND account = #{param.account}
-        GROUP BY group_num, group_name
-        ORDER BY groupCount DESC
-    </select>
-
-    <select id="getGroupRedEnvelopeRecordList" resultType="com.zsjz.ai.module.eds.eds.dto.GroupRedEnvelopeRecordDto">
-        select
-        group_num as groupNum,
-        group_name as groupName,
-        friend_account as sendAccount,
-        friend_nickname as sendNickname,
-        talk_id as talkId,
-        lucky_money_id as luckyMoneyId,
-        local_action as localAction,
-        title as title,
-        max_money as maxMoney,
-        money as money,
-        up_number as upNumber,
-        down_number as downNumber,
-        remark as remark,
-        delete_status as deleteStatus,
-        delete_time as deleteTime
-        from wa_mforensics_070700
-        WHERE
-        case_id = #{param.caseId} and collect_target_id = #{param.collectTargetId}
-        and network_app = #{param.networkApp}
-        and account = #{param.account}
-        and group_num = #{param.groupNum}
-        <if test="null != param.maxMoney and null != param.maxMoneySign">
-            <choose>
-                <when test="param.maxMoneySign == 0">
-                    and max_money &gt; #{param.maxMoney}
-                </when>
-                <when test="param.maxMoneySign == 1">
-                    and max_money = #{param.maxMoney}
-                </when>
-                <when test="param.maxMoneySign == 2">
-                    and max_money &lt; #{param.maxMoney}
-                </when>
-            </choose>
-        </if>
-        <if test="null != param.upNumber and null != param.upNumberSign">
-            <choose>
-                <when test="param.upNumberSign == 0">
-                    and up_number &gt; #{param.upNumber}
-                </when>
-                <when test="param.upNumberSign == 1">
-                    and up_number = #{param.upNumber}
-                </when>
-                <when test="param.upNumberSign == 2">
-                    and up_number &lt; #{param.upNumber}
-                </when>
-            </choose>
-        </if>
-        <if test="param.sendNameOrAccount != null">
-            and ( locate(#{param.sendNameOrAccount},friend_account) or
-            locate(#{param.sendNameOrAccount},friend_nickname))
-        </if>
-    </select>
-</mapper>

+ 0 - 35
ai-server/src/main/resources/mappers/eds/EdsBankTradeMapper.xml

@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.bcp.eds.mapper.EdsBankTradeMapper">
-
-    <select id="countTree" resultType="com.zsjz.ai.module.eds.bcp.eds.dto.EdsBankTradeCountDTO">
-
-        select bank_name                                            as bankName,
-               case_id                                              as caseId,
-               collect_target_id                                    as cti,
-               count(*)                                             as cs,
-               bank_card_id as bankCardId,
-            sum(IF(transaction_type = 1, transaction_amount, 0)) as incomeTotal,
-               sum(IF(transaction_type = 2, transaction_amount, 0)) as expendTotal
-        from eds_bank_trade
-        where   case_id=#{caseId} and collect_target_id in
-        <foreach collection="cti" item="c" open="(" separator="," close=")">
-            #{c}
-        </foreach>
-
-        group by bank_name, bank_card_id
-        union ALL
-        select "所有来源交易量"                                     as bankName,
-               case_id                                              as caseId,
-               collect_target_id                                    as cti,
-               count(*)                                             as cs,
-               "" as bankCardId,
-               sum(IF(transaction_type = 1, transaction_amount, 0)) as incomeTotal,
-               sum(IF(transaction_type = 2, transaction_amount, 0)) as expendTotal
-        from eds_bank_trade where case_id=#{caseId} and collect_target_id in
-        <foreach collection="cti" item="c" open="(" separator="," close=")">
-            #{c}
-        </foreach>
-    </select>
-</mapper>
-

+ 0 - 42
ai-server/src/main/resources/mappers/eds/EdsClassficPictureMapper.xml

@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.bcp.eds.mapper.EdsClassficPictureMapper">
-
-    <select id="listEdsMediaFilesByCollectTargetId" resultType="com.zsjz.ai.module.eds.po.EdsMediaFile"
-            parameterType="java.lang.String">
-        SELECT case_id,
-               collect_target_id,
-               create_time,
-               delete_status,
-               hashcode,
-               id,
-               mail_send_time,
-               media_name,
-               media_path,
-               media_small_path,
-               media_size,
-               media_small_path,
-               media_type,
-               mf_orgcodes,
-               suffix_name,
-               tb_name
-        FROM eds_media_file
-        WHERE collect_target_id = #{collectTargetId,jdbcType=VARCHAR}
-          AND media_type = '02'
-    </select>
-
-    <insert id="insertEdsClassFicPicts">
-        insert into eds_classfic_picture (collect_target_id,hashcode,sopt_type,spot_result) values
-        <foreach collection="list" separator="," item="item" index="index">
-            (#{item.collectTargetId,jdbcType=VARCHAR},#{item.hashcode,jdbcType=VARCHAR},#{item.soptType,jdbcType=INTEGER},#{item.spotResult,jdbcType=VARCHAR})
-        </foreach>
-    </insert>
-
-    <select id="listEdsMediaFileToCarSpot" resultType="com.zsjz.ai.module.eds.po.EdsMediaFile">
-        SELECT em.collect_target_id, em.media_name, em.media_path, em.hashcode,em.media_small_path
-        FROM eds_media_file em
-        WHERE em.collect_target_id = #{collectTargetId,jdbcType=VARCHAR}
-          and em.media_type = '02'
-          and em.hashcode IN (SELECT DISTINCT ecp.hashcode FROM eds_classfic_picture ecp WHERE ecp.sopt_type = 2)
-    </select>
-</mapper>

+ 0 - 149
ai-server/src/main/resources/mappers/eds/EdsGroupMapper.xml

@@ -1,149 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.EdsGroupMapper">
-
-    <!--查询当前对象下所有群-->
-    <select id="selectGroupInfo" resultType="com.zsjz.ai.module.eds.eds.dto.GroupInfoDto">
-        select contact_account_type, distinct account, group_num, group_name
-        from wa_mforensics_020300
-        where
-        <if test="mutualType!='111111'">
-            contact_account_type = #{mutualType} and
-        </if>
-        collect_target_id in
-        <foreach collection="cids" open="(" close=")" item="cid" separator=",">
-            #{cid}
-        </foreach>
-        and case_id = #{caseId}
-    </select>
-
-    <!--查询当前对象下的账号-->
-    <select id="selectAccount" resultType="string">
-        select distinct account from wa_mforensics_020100
-        where case_id = #{caseId} and contact_account_type = #{mutualType} and collect_target_id in
-        <foreach collection="cids" open="(" close=")" item="cid" separator=",">
-            #{cid}
-        </foreach>
-    </select>
-
-    <!--查询当前对象所有入群最小时间-->
-    <select id="selectGroupMinTime" resultType="com.zsjz.ai.module.eds.eds.dto.GroupInfoDto">
-        select account,group_num ,min(enter_time) as enterTime from wa_mforensics_020400
-        where case_id = #{caseId} and contact_account_type = #{mutualType} and collect_target_id in
-        <foreach collection="cids" open="(" close=")" item="cid" separator=",">
-            #{cid}
-        </foreach>
-        and friend_account in
-        <foreach collection="accounts" open="(" close=")" item="account" separator=",">
-            #{account}
-        </foreach>
-        group by account,group_num,group_name
-    </select>
-
-    <!--查询群组和人员信息-->
-    <select id="selectGroupAndMemberInfo" resultType="com.zsjz.ai.module.eds.eds.dto.GroupMemberInfoDto">
-        SELECT
-            wa0203.collect_target_id as collectTargetId,
-            wa0203.group_num,
-            ifnull(wa0203.group_name,'未知群组') as groupName,
-            wa0203.contact_account_type,
-            wa0203.account,
-            wa0201.regis_nickname as regisNickname
-        FROM wa_mforensics_020300 wa0203
-        LEFT JOIN wa_mforensics_020100 wa0201 on wa0203.account = wa0201.account and
-        wa0201.case_id = wa0203.case_id and
-        wa0201.collect_target_id = wa0203.collect_target_id and
-        wa0201.contact_account_type = wa0203.contact_account_type
-        WHERE
-        wa0203.case_id = #{caseId} AND
-        wa0203.collect_target_id in
-        <foreach collection="cids" open="(" close=")" item="cid" separator=",">
-            #{cid}
-        </foreach>
-        <if test="mutualType!='111111'">
-            and wa0203.contact_account_type = #{mutualType}
-        </if>
-        <if test="groupNum!=null ">
-            and wa0203.group_num in
-            <foreach collection="groupNum" open="(" close=")" item="num" separator=",">
-                #{num}
-            </foreach>
-        </if>
-        order by wa0203.id desc
-    </select>
-
-    <select id="queryGroupNumByName" resultType="java.lang.String">
-        select DISTINCT group_num
-        FROM wa_mforensics_020300
-        WHERE case_id = #{param.caseId} AND
-        collect_target_id in
-        <foreach collection="cids" open="(" close=")" item="cid" separator=",">
-            #{cid}
-        </foreach>
-        <if test="param.groupName == '未知群组' and param.groupName != null and param.groupName != ''">
-            and group_name is null
-        </if>
-        <if test="param.groupName != '未知群组' and param.groupName != null and param.groupName != ''">
-            and group_name like concat('%',#{param.groupName},'%')
-        </if>
-    </select>
-
-    <select id="getMemberChatMsgList" resultType="com.zsjz.ai.module.eds.eds.vo.ContactGroupMemberMsgDetailVO">
-        SELECT distinct
-        wa0206.id,
-        wa0206.account as account,
-        wa0206.friend_account as friendAccount,
-        wa0206.friend_nickname as friendNickname,
-        wa0206.friend_account as localAccount,
-        wa0206.friend_nickname as localNickname,
-        wa0206.content as content,
-        wa0206.mail_send_time as mailSendTime,
-        wa0206.local_action as localAction,
-        wa0206.delete_status as deleteStatus,
-        wa0206.media_type as mediaType,
-        wa0206.dual_time as dualTime,
-        wa0206.mainfile as mainfile,
-        DATE_FORMAT( wa0206.mail_send_time, '%Y-%m-%d' ) AS sendDate,
-        (
-        CASE
-        DATE_FORMAT( wa0206.mail_send_time, '%w' )
-        WHEN 0 THEN
-        '星期天'
-        WHEN 1 THEN
-        '星期一'
-        WHEN 2 THEN
-        '星期二'
-        WHEN 3 THEN
-        '星期三'
-        WHEN 4 THEN
-        '星期四'
-        WHEN 5 THEN
-        '星期五'
-        WHEN 6 THEN
-        '星期六'
-        END
-        ) AS WEEK,
-        wa0206.talk_id as talkId
-        FROM wa_mforensics_020600 wa0206
-        WHERE wa0206.case_id = #{param.caseId}
-        and wa0206.collect_target_id = #{cid}
-        and wa0206.contact_account_type = #{param.appType}
-        and wa0206.group_num = #{param.groupNumber}
-        <!--        and wa0206.friend_account is not null-->
-        <!--        and wa0206.media_type is not null-->
-        and DATE_FORMAT( wa0206.mail_send_time, '%Y' ) != '1970'
-        <if test="param.groupFriendAccount != null and param.groupFriendAccount != ''">
-            and wa0206.friend_account like concat('%',#{param.groupFriendAccount},'%')
-        </if>
-        <if test="param.memberAccount != null and param.memberAccount != ''">
-            and wa0206.friend_account = #{param.memberAccount}
-        </if>
-        <if test="param.friendNickname != null and param.friendNickname != ''">
-            and wa0206.friend_nickname like concat('%',#{param.friendNickname},'%')
-        </if>
-        <if test="param.content != null and param.content != ''">
-            and wa0206.content like concat('%',#{param.content},'%')
-        </if>
-    </select>
-
-</mapper>

+ 0 - 76
ai-server/src/main/resources/mappers/eds/EdsMapper.xml

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.EdsMapper">
-
-    <select id="countByCid" resultType="java.lang.Integer">
-        select count(collect_target_id)
-        from wa_mforensics_010100
-        where collect_target_id = #{ctId}
-          and case_id = #{caseId}
-    </select>
-
-
-    <select id="viewCallRecord" resultType="map">
-        SELECT
-        DISTINCT
-        eil.case_id,
-        eil.filename,
-        eil.eds_cti,
-        COALESCE ( wa05.phone_number_type, 'unknown' ) AS phone_number_type,
-        wa06.msisdn,
-        wa06.relationship_account,
-        wa06.relationship_name,
-        wa06.call_status,
-        ( CASE wa06.call_status WHEN 0 THEN '未接' WHEN 1 THEN '接通' ELSE '其他' END ) AS call_status_content,
-        wa06.local_action,
-        ( CASE wa06.local_action WHEN 1 THEN '接收' WHEN 2 THEN '发送' ELSE '其他' END ) AS local_action_content,
-        wa06.start_time,
-        wa06.end_time,
-        wa06.dual_time,
-        wa06.delete_status,
-        ( CASE wa06.delete_status WHEN 0 THEN '未删除' ELSE '已删除' END ) AS delete_status_content,
-        wa06.delete_time,
-        wa06.intercept_state,
-        ( CASE wa06.intercept_state WHEN 0 THEN '未拦截' ELSE '已拦截' END ) AS intercept_state_content,
-        wa06.district_code,
-        wa06.xlsc,
-        wa06.md5
-        FROM
-        wa_mforensics_010600 wa06
-        LEFT JOIN (
-        SELECT
-        GROUP_CONCAT( DISTINCT COALESCE ( phone_number_type, '未知' ) SEPARATOR ',' ) AS phone_number_type,
-        collect_target_id
-        FROM
-        wa_mforensics_010500
-        WHERE
-        relationship_account = #{param.selfPhone}  AND case_id = #{param.caseId}
-        GROUP BY
-        collect_target_id
-        ) AS wa05 ON wa06.collect_target_id = wa05.collect_target_id
-        LEFT JOIN eds_import_list eil ON eil.eds_cti = wa06.collect_target_id
-        WHERE
-        wa06.msisdn = #{param.selfPhone}  AND wa06.case_id = #{param.caseId} AND eil.case_id = #{param.caseId}
-        LIMIT #{limit} OFFSET #{offset};
-    </select>
-
-
-    <select id="viewCallRecordCount" resultType="int">
-        SELECT COUNT(*)
-        FROM wa_mforensics_010600 wa06  LEFT JOIN eds_import_list eil ON eil.eds_cti = wa06.collect_target_id
-        WHERE eil.case_id = #{param.caseId} AND wa06.msisdn = #{param.selfPhone}
-    </select>
-
-
-    <select id="getPhoneNumberType" resultType="java.lang.String">
-        SELECT COALESCE(wa05.phone_number_type, '未知') AS phone_number_type
-        FROM wa_mforensics_010600 wa06
-                 LEFT JOIN wa_mforensics_010500 wa05 ON wa05.collect_target_id = wa06.collect_target_id
-                 LEFT JOIN eds_import_list eil ON eil.eds_cti = wa06.collect_target_id
-        WHERE wa05.case_id = #{param.caseId}
-          AND wa05.relationship_account = #{param.selfPhone}
-          AND (
-            wa06.msisdn = #{param.selfPhone} OR wa06.relationship_account = #{param.selfPhone})
-        GROUP BY phone_number_type
-    </select>
-</mapper>

+ 0 - 601
ai-server/src/main/resources/mappers/eds/ElectronicDataMapper.xml

@@ -1,601 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.ElectronicDataMapper">
-    <select id="selectLatestConnectUsbTop10"
-            resultType="com.zsjz.ai.module.eds.eds.dto.LatestConnectUsbDto">
-        select id, materials_name as name
-        from wa_mforensics_080500
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-        order by last_time limit 10
-    </select>
-
-    <select id="selectSmsTop10" resultType="com.zsjz.ai.module.eds.eds.dto.PhoneStatDto">
-        select distinct relationship_account as phone, relationship_name as name, count(1) as num
-        from wa_mforensics_010700
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-        group by relationship_account, relationship_name
-        order by num desc limit 10
-    </select>
-
-    <select id="selectCallNumTop10" resultType="com.zsjz.ai.module.eds.eds.dto.PhoneStatDto">
-        select relationship_account as phone, relationship_name as name, count(1) as num
-        from wa_mforensics_010600
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-        group by relationship_account, relationship_name
-        order by num desc limit 10
-    </select>
-
-    <select id="selectCallTimeTop10" resultType="com.zsjz.ai.module.eds.eds.dto.PhoneStatDto">
-        select relationship_account as phone, relationship_name as name, sum(dual_time) as num
-        from wa_mforensics_010600
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-        group by relationship_account, relationship_name
-        order by num desc limit 10
-    </select>
-
-    <select id="selectWeChatTop10" resultType="com.zsjz.ai.module.eds.eds.dto.AccountStatDto">
-        select account                                as selfAccount,
-               friend_account                         as account,
-               group_concat(distinct friend_nickname) as name,
-               count(1)                               as num
-        from wa_mforensics_020500
-        where case_id = #{caseId}
-          and contact_account_type = '1030036'
-          and account is not null
-          and collect_target_id = #{cid}
-        group by friend_account, friend_nickname, account
-        order by num desc
-    </select>
-
-    <select id="selectQQTop10" resultType="com.zsjz.ai.module.eds.eds.dto.AccountStatDto">
-        select account                                as selfAccount,
-               friend_account                         as account,
-               group_concat(distinct friend_nickname) as name,
-               count(1)                               as num
-        from wa_mforensics_020500
-        where case_id = #{caseId}
-          and contact_account_type = '1030001'
-          and account is not null
-          and collect_target_id = #{cid}
-        group by account, friend_account, friend_nickname
-        order by num desc
-    </select>
-
-    <select id="selectEmailTop10" resultType="com.zsjz.ai.module.eds.eds.dto.AccountStatEmailDto">
-        select account as selfAccount , `from`, `to`, cc, bcc, count(1) as num
-        from wa_mforensics_040300
-        where case_id = #{caseId} and collect_target_id = #{cid}
-        and account is not null
-        group by selfAccount, `from`, `to`, cc, bcc order by num desc
-
-        <!--
-        select self as selfAccount, contcat as account, count(1) as num from(
-        select collect_target_id, account as self,
-        case when `from` = account then `to` else `from` end as contcat from(
-        select distinct * from(
-            select id, collect_target_id, account, `from`, `to` from wa_mforensics_040300
-            where  collect_target_id = #{cid}
-            union all
-                select id, collect_target_id, account, `from`,
-                /* 将bcc 和cc 拆分成多行记录并合并去重统计*/
-                substring_index(substring_index(a.cc,',',b.help_topic_id + 1),',' ,- 1) as `to`
-                from wa_mforensics_040300 a JOIN mysql.help_topic b ON b.help_topic_id &lt; (length(a.cc) - length(REPLACE (a.cc, ',', '')) + 1)
-                where cc is not null and collect_target_id = #{cid}
-            union all
-                select id, collect_target_id, account, `from`, substring_index(
-                substring_index(a.bcc, ',', b.help_topic_id + 1),',' ,- 1) as `to`
-                from wa_mforensics_040300 a JOIN mysql.help_topic b ON b.help_topic_id &lt; (
-                length(a.bcc) - length(REPLACE (a.bcc, ',', '')) + 1)
-                where bcc is not null and collect_target_id = #{cid}
-        )a)t)t2
-        where collect_target_id = #{cid} and self is not null and contcat is not null and contcat != ''
-        group by contcat,self order by num desc
-        -->
-    </select>
-
-
-    <select id="selectWeChatAccount" resultType="com.zsjz.ai.module.eds.eds.dto.AccountListDto">
-        select distinct account
-        from wa_mforensics_020100
-        where case_id = #{caseId}
-          and CONTACT_ACCOUNT_TYPE = '1030036'
-          and account is not null
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="selectQQAccount" resultType="com.zsjz.ai.module.eds.eds.dto.AccountListDto">
-        select distinct account
-        from wa_mforensics_020100
-        where case_id = #{caseId}
-          and CONTACT_ACCOUNT_TYPE = '1030001'
-          and account is not null
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="selectEmailAccount" resultType="com.zsjz.ai.module.eds.eds.dto.AccountListDto">
-        select distinct account
-        from wa_mforensics_040100
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="selectTradeAccount" resultType="com.zsjz.ai.module.eds.eds.dto.TradeAccountDto">
-        select account,
-               concat_ws(',', regis_nickname)                         as name,
-               sum(case local_action when '01' then money else 0 end) as revenue,
-               sum(case local_action when '02' then money else 0 end) as pay,
-               sum(case delete_status when 1 then 1 else 0 end)       as deleteNum,
-               count(1)                                               as total
-        from wa_mforensics_070400
-        where collect_target_id = #{cid}
-          and network_app = #{type}
-        group by account, regis_nickname
-    </select>
-
-    <select id="selectBankInfo" resultType="com.zsjz.ai.module.eds.eds.dto.TradeAccountDto">
-        select bank_card_id                                                         as account,
-               concat_ws(',', bank_name)                                            as name,
-               sum(case transaction_type when 1 then transaction_amount else 0 end) as revenue,
-               sum(case transaction_type when 2 then transaction_amount else 0 end) as pay,
-               sum(case delete_status when 1 then 1 else 0 end)                     as deleteNum,
-               count(1)                                                             as total
-        from eds_bank_trade
-        where collect_target_id = #{cid}
-        group by bank_card_id, bank_name
-    </select>
-
-    <select id="selectTradeDetail" resultType="com.zsjz.ai.module.eds.eds.dto.TradeDetailDto">
-        select
-        account as selfAccount,
-        case when friend_account is null then friend_nickname else concat_ws('(',friend_account,friend_nickname,')') end
-        as account, d.bmmc AS status,
-        case local_action when '01' then '收入' when '02' then '支出' else '其他' end as type,
-        business_time as time, money, delete_status as deleteStatus
-        from wa_mforensics_070400 a
-        left join eds_dict d on d.bmlx_py = 'DS_TRADE_STATUS' and deal_status = to_number(d.bmsz,'99999')
-        where collect_target_id = #{cid}
-        and network_app = #{type}
-        <if test="param != null and param.account != null and param.account != ''">
-            and account = #{param.account}
-        </if>
-        <if test="tradeType != null and tradeType != ''">
-            and local_action = #{tradeType}
-        </if>
-        <if test="deleteStatus != null and deleteStatus != ''">
-            and a.delete_status = #{deleteStatus}
-        </if>
-        <if test="param != null and param.startTime != null ">
-            and business_time &gt;= #{param.startTime}
-        </if>
-        <if test="param != null and param.endTime != null ">
-            and business_time &lt;= #{param.endTime}
-        </if>
-        <if test="param != null and param.moneyMin != null ">
-            and money &gt;= #{param.moneyMin}
-        </if>
-        <if test="param != null and param.moneyMax != null ">
-            and money &lt;= #{param.moneyMax}
-        </if>
-        order by business_time desc
-    </select>
-
-    <select id="selectCallDetail" resultType="com.zsjz.ai.module.eds.eds.dto.CallDetailDto">
-        select msisdn as msisdn,relationship_account as relationshipAccount, start_time as startTime,ifnull(dual_time,0)
-        as `dual`,
-        call_status as callStatus, local_action as localAction, delete_status as deleteStatus
-        from wa_mforensics_010600
-        where case_id = #{param.caseId} and relationship_account is not null
-        and collect_target_id = #{param.collectTargetId}
-        <if test="param.friendAccount != null and param.friendAccount != ''">
-            and relationship_account = #{param.friendAccount}
-        </if>
-        <if test="param.account != null and param.account != ''">
-            and msisdn = #{param.account}
-        </if>
-        <if test="param.startDateTime!=null">
-            and start_time &gt;= #{param.startDateTime}
-        </if>
-        <if test="param.endDateTime != null">
-            and start_time &lt;= #{param.endDateTime}
-        </if>
-        order by start_time desc
-    </select>
-
-    <select id="selectSmsDetail" resultType="com.zsjz.ai.module.eds.eds.dto.SmsDetailDto">
-        select msisdn as msisdn,relationship_account as relationshipAccount, mail_send_time as mailSendTime,
-        mail_view_status
-        as mailViewStatus, local_action as localAction, content, delete_status as deleteStatus
-        from wa_mforensics_010700
-        where case_id = #{param.caseId} and relationship_account is not null
-        and collect_target_id = #{param.collectTargetId}
-        <if test="param.account != null and param.account != ''">
-            and msisdn = #{param.account}
-        </if>
-        <if test="param.friendName != null">
-            and relationship_name = #{param.friendName}
-        </if>
-        <if test="param.friendName == null">
-            and relationship_name is NULL
-        </if>
-        <if test="param.friendAccount != null and param.friendAccount != ''">
-            and relationship_account = #{param.friendAccount}
-        </if>
-        <if test="param.startDateTime!=null">
-            and mail_send_time &gt;= #{param.startDateTime}
-        </if>
-        <if test="param.endDateTime != null">
-            and mail_send_time &lt;= #{param.endDateTime}
-        </if>
-        <if test="param.keyword != null and param.keyword != ''">
-            and locate(#{param.keyword},content)
-        </if>
-        order by mail_send_time asc
-    </select>
-
-    <select id="selectBankTradeDetail" resultType="com.zsjz.ai.module.eds.eds.dto.BankTradeDto">
-        select bank_card_id as bankCardId, bank_name as bankName,
-        case transaction_type when 2 then '支出' when 1 then '收入' else '其他' end as transactionType,
-        transaction_time as transactionTime, transaction_amount as transactionAmount,
-        delete_status as deleteStatus from eds_bank_trade
-        where collect_target_id = #{cid}
-        <if test="param !=null and param.account != null and param.account != ''">
-            and bank_card_id = #{param.account}
-        </if>
-        <if test="tradeType != null and tradeType != ''">
-            and transaction_type = #{tradeType}
-        </if>
-        <if test="deleteStatus != null and deleteStatus != ''">
-            and delete_status = #{deleteStatus}
-        </if>
-        <if test="param != null and param.startTime != null ">
-            and transaction_time &gt;= #{param.startTime}
-        </if>
-        <if test="param != null and param.endTime != null ">
-            and transaction_time &lt;= #{param.endTime}
-        </if>
-        <if test="param != null and param.moneyMin != null ">
-            and transaction_amount &gt;= #{param.moneyMin}
-        </if>
-        <if test="param != null and param.moneyMax != null ">
-            and transaction_amount &lt;= #{param.moneyMax}
-        </if>
-    </select>
-    <select id="selectContactsList" resultType="com.zsjz.ai.module.eds.eds.dto.ContactsDto">
-        select relationship_name as name, relationship_account as relationshipAccount, a.delete_status as deleteStatus
-        from wa_mforensics_010500 a left join
-        (select distinct collect_target_id, sequence_name, relationship_name from wa_mforensics_010400) as b
-        on a.collect_target_id = b.collect_target_id
-        and a.sequence_name = b.sequence_name
-        where a.phone_value_type = '01'
-        and a.collect_target_id = #{cid}
-        <if test="keyword != null and keyword != ''">
-            and (relationship_name like CONCAT('%','${keyword}','%') or replace(relationship_account, ' ','') like
-            CONCAT('%','${keyword}','%'))
-        </if>
-    </select>
-
-    <select id="statContacts" resultType="com.zsjz.ai.module.eds.eds.dto.ContactsStatDto">
-        select count(1) as total, sum(case delete_status when 1 then 1 else 0 end) as delNumber
-        from wa_mforensics_010500
-        where phone_value_type = '01'
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="selectAccountList" resultType="com.zsjz.ai.module.eds.eds.dto.AccountDto">
-        select accountId,
-               accountType,
-               account,
-               name,
-               password,
-               lastLoginTime,
-               lastUpdateTime,
-               deleteStatus,
-               deleteTime
-        from (select accountId,
-                     d.bmmc as accountType,
-                     account,
-                     name,
-                     password,
-                     lastLoginTime,
-                     lastUpdateTime,
-                     deleteStatus,
-                     deleteTime
-              from (select account_id           as accountId,
-                           contact_account_type as accountType,
-                           account              as account,
-                           regis_nickname       as name,
-                           password,
-                           last_login_time      as lastLoginTime,
-                           latest_mod_time      as lastUpdateTime,
-                           delete_status        as deleteStatus,
-                           delete_time          as deleteTime
-                    from wa_mforensics_020100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}
-                    union all
-                    select account_id           as accountId,
-                           contact_account_type as accountType,
-                           account              as account,
-                           regis_nickname       as name,
-                           password,
-                           last_login_time      as lastLoginTime,
-                           latest_mod_time      as lastUpdateTime,
-                           delete_status        as deleteStatus,
-                           delete_time          as deleteTime
-                    from wa_mforensics_030100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}
-                    union all
-                    select ''              as accountId,
-                           mail_tool_type  as accountType,
-                           account         as account,
-                           regis_nickname  as name,
-                           password,
-                           last_login_time as lastLoginTime,
-                           latest_mod_time as lastUpdateTime,
-                           delete_status   as deleteStatus,
-                           delete_time     as deleteTime
-                    from wa_mforensics_040100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}
-                    union all
-                    select account_id      as accountId,
-                           network_app     as accountType,
-                           account         as account,
-                           regis_nickname  as name,
-                           password,
-                           last_login_time as lastLoginTime,
-                           latest_mod_time as lastUpdateTime,
-                           delete_status   as deleteStatus,
-                           delete_time     as deleteTime
-                    from wa_mforensics_060100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}
-                    union all
-                    select account_id       as accountId,
-                           reg_account_type as accountType,
-                           account          as account,
-                           regis_nickname   as name,
-                           password,
-                           last_login_time  as lastLoginTime,
-                           latest_mod_time  as lastUpdateTime,
-                           delete_status    as deleteStatus,
-                           delete_time      as deleteTime
-                    from wa_mforensics_070100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}
-                    union all
-                    select account_id      as accountId,
-                           network_app     as accountType,
-                           account         as account,
-                           regis_nickname  as name,
-                           password,
-                           last_login_time as lastLoginTime,
-                           latest_mod_time as lastUpdateTime,
-                           delete_status   as deleteStatus,
-                           delete_time     as deleteTime
-                    from wa_mforensics_110100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}
-                    union all
-                    select account_id      as accountId,
-                           network_app     as accountType,
-                           account         as account,
-                           regis_nickname  as name,
-                           password,
-                           last_login_time as lastLoginTime,
-                           latest_mod_time as lastUpdateTime,
-                           delete_status   as deleteStatus,
-                           delete_time     as deleteTime
-                    from wa_mforensics_120100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}
-                    union all
-                    select null          as accountId,
-                           browse_type   as accountType,
-                           account       as account,
-                           null          as name,
-                           password,
-                           null          as lastLoginTime,
-                           null          as lastUpdateTime,
-                           delete_status as deleteStatus,
-                           delete_time   as deleteTime
-                    from wa_mforensics_050100
-                    where case_id = #{caseId}
-                      and collect_target_id = #{cid}) t
-                       left join eds_dict d on d.bmlx_py = 'WACODE_0163' and t.accountType = d.bmsz
-              union all
-              select null          as accountid,
-                     software_name as accounttype,
-                     user_name     as account,
-                     null          as name,
-                     password,
-                     null          as lastLoginTime,
-                     null          as lastUpdateTime,
-                     delete_status as deleteStatus,
-                     delete_time   as deleteTime
-              from wa_mforensics_090100
-              where case_id = #{caseId}
-                and collect_target_id = #{cid}) t
-        where accountId is not null
-           or account is not null
-           or name is not null
-    </select>
-
-    <select id="selectWebsiteTop10" resultType="com.zsjz.ai.module.eds.eds.dto.WebsiteDto">
-        select SUBSTRING_INDEX(url, '/', 3) as url, sum(ifnull(visits, 1)) as num
-        from wa_mforensics_050300
-        where case_id = #{caseId}
-          and url is not null
-          and collect_target_id = #{cid}
-        group by SUBSTRING_INDEX(url, '/', 3)
-        order by num desc limit 10
-    </select>
-
-    <select id="selectContacts" resultType="com.zsjz.ai.module.eds.eds.dto.ContactsDto">
-        select sequence_name     as sequenceName,
-               relationship_name as relationshipName,
-               delete_status     as deleteStatus,
-               delete_time       as deleteTime
-        from wa_mforensics_010400
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="selectContactsDetail"
-            resultType="com.zsjz.ai.module.eds.eds.dto.ContactsDetailDto">
-        select sequence_name as sequenceName, phone_value_type as phoneValueType,
-        group_concat(relationship_account) as relationshipAccount
-        from wa_mforensics_010500
-        where case_id = #{caseId} and collect_target_id = #{cid}
-        and sequence_name in
-        <foreach collection="ids" item="id" index="index" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-        group by sequence_name, phone_value_type
-    </select>
-
-    <select id="smsStat" resultType="com.zsjz.ai.module.eds.eds.dto.ContactCountDto">
-        select relationship_name                                as name,
-               relationship_account                             as phone,
-               count(1)                                         as total,
-               sum(case delete_status when 1 then 1 else 0 end) as delNum
-        from wa_mforensics_010700
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and relationship_account is not null
-        group by relationship_name, relationship_account
-        order by total desc
-    </select>
-
-    <select id="callStat" resultType="com.zsjz.ai.module.eds.eds.dto.ContactCountDto">
-        select relationship_name                                as name,
-               relationship_account                             as phone,
-               count(1)                                         as total,
-               sum(case delete_status when 1 then 1 else 0 end) as delNum
-        from wa_mforensics_010600
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and relationship_account is not null
-        group by relationship_name, relationship_account
-        order by total desc
-    </select>
-
-    <select id="selectTraceInfoByActionType" resultType="com.zsjz.ai.module.eds.eds.vo.StatInfo">
-        select id, mime_name as name
-        from wa_mforensics_170200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and action_type = #{actionType}
-        order by user_acttime desc limit 10
-    </select>
-
-    <select id="selectDownloadSoftwareTop10" resultType="com.zsjz.ai.module.eds.eds.vo.StatInfo">
-        select ifnull(ifnull(ed.bmmc, t1.network_app), '未知软件') as name, t1.num
-        from (select network_app, count(1) as num
-              from wa_mforensics_110200
-              where case_id = #{caseId}
-                and collect_target_id = #{cid}
-              group by network_app
-              order by num desc limit 10) as t1
-                 left join eds_dict as ed on ed.bmlx_py = 'WACODE_0163' and ed.bmsz = t1.network_app
-    </select>
-
-    <select id="getRecentlyAccessedFile"
-            resultType="com.zsjz.ai.module.eds.eds.dto.AccessedFileDto">
-        select account as name, mime_name as fileName, user_acttime as time
-        from wa_mforensics_170200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and mime_name in (select mime_name from wa_mforensics_170200 where id=${id}
-          and action_type = #{actionType})
-    </select>
-
-    <select id="getHotDownSoft"
-            resultType="com.zsjz.ai.module.eds.eds.dto.HotDownSoftDto">
-        select network_app,account,file_name,media_type,url,'下载' as actionType,start_time,end_time
-        from wa_mforensics_110200
-        where case_id = #{caseId} and collect_target_id = #{cid} and action_type = '29'
-        <if test="name == '未知软件'">
-            and network_app is null
-        </if>
-        <if test="name != '未知软件'">
-            and network_app in (select bmsz from eds_dict where bmmc=#{name})
-        </if>
-    </select>
-
-    <select id="getRecentlyLinkUSB"
-            resultType="com.zsjz.ai.module.eds.eds.dto.LatestConnectUsbDto">
-        select materials_name as name, first_time, last_time, update_time, description
-        from wa_mforensics_080500
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and materials_name = #{name}
-    </select>
-
-    <select id="selectCallAndSmsDetail"
-            resultType="com.zsjz.ai.module.eds.eds.dto.CallAndSmsDetailDto">
-        select
-        a.msisdn,
-        a.relationshipAccount,
-        a.startTime,
-        a.mailViewStatus,
-        a.`dual`,
-        a.callStatus,
-        a.localAction,
-        a.content,
-        a.deleteStatus,
-        a.appType
-        from (
-        select msisdn as msisdn,relationship_account as relationshipAccount, mail_send_time as startTime,
-        mail_view_status
-        as mailViewStatus,0 as `dual`,0 as callStatus,local_action as localAction, content, delete_status as
-        deleteStatus,'0000000-SMS' as appType
-        from wa_mforensics_010700
-        where case_id = #{param.caseId} and relationship_account is not null
-        and collect_target_id = #{param.collectTargetId}
-        <if test="param.account != null and param.account != ''">
-            and msisdn = #{param.account}
-        </if>
-        <if test="param.friendAccount != null and param.friendAccount != ''">
-            and relationship_account = #{param.friendAccount}
-        </if>
-        <if test="param.startDateTime!=null">
-            and mail_send_time &gt;= #{param.startDateTime}
-        </if>
-        <if test="param.endDateTime != null">
-            and mail_send_time &lt;= #{param.endDateTime}
-        </if>
-        <if test="param.keyword != null and param.keyword != ''">
-            and locate(#{param.keyword},content)
-        </if>
-        <if test="param.keyword == null and param.keyword == ''">
-            union
-            select msisdn as msisdn,relationship_account as relationshipAccount, start_time as startTime,0
-            as mailViewStatus,ifnull(dual_time,0) as `dual`,
-            call_status as callStatus, local_action as localAction,'' as content, delete_status as
-            deleteStatus,'0000000-CALL' as appType
-            from wa_mforensics_010600
-            where case_id = #{param.caseId} and relationship_account is not null
-            and collect_target_id = #{param.collectTargetId}
-            <if test="param.friendAccount != null and param.friendAccount != ''">
-                and relationship_account = #{param.friendAccount}
-            </if>
-            <if test="param.account != null and param.account != ''">
-                and msisdn = #{param.account}
-            </if>
-            <if test="param.startDateTime!=null">
-                and start_time &gt;= #{param.startDateTime}
-            </if>
-            <if test="param.endDateTime != null">
-                and start_time &lt;= #{param.endDateTime}
-            </if>
-        </if>
-        ) a
-        order by a.startTime asc
-    </select>
-</mapper>

+ 0 - 118
ai-server/src/main/resources/mappers/eds/EmailMapper.xml

@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.EmailMapper">
-
-    <!--邮箱账号基本信息-->
-    <select id="getAccountInfo" resultType="com.zsjz.ai.module.eds.eds.dto.EmailAccountDto">
-        select *
-        from wa_mforensics_040100
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and mail_tool_type = #{param.mailToolType} limit 1
-    </select>
-
-    <!--好友信息分组信息-->
-    <select id="getFriendGroup" resultType="com.zsjz.ai.module.eds.eds.dto.EmailFriendGroupDto">
-        select friend_group                                       as friendGroup,
-               count(delete_status)                               as friendGroupCount,
-               sum(case when delete_status = 1 then 1 else 0 end) as friendGroupDelCount
-        from wa_mforensics_040200
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and mail_tool_type = #{param.mailToolType}
-        group by friendGroup
-    </select>
-
-    <!--联系人信息列表-->
-    <select id="getFriendPage" resultType="com.zsjz.ai.module.eds.eds.dto.EmailFriendInfoDto">
-        select friend_account,friend_nickname,friend_group,delete_status
-        from wa_mforensics_040200
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and mail_tool_type =
-        #{param.mailToolType}
-        <choose>
-            <when test="param.friendGroup == '默认分组'">
-                and (friend_group is null or friend_group = #{param.friendGroup})
-            </when>
-            <otherwise>
-                and friend_group = #{param.friendGroup}
-            </otherwise>
-        </choose>
-    </select>
-
-    <!--联系人信息详情表单-->
-    <select id="getFriendInfo" resultType="com.zsjz.ai.module.eds.eds.dto.EmailFriendInfoDto">
-        select *
-        from wa_mforensics_040200
-        where case_id = #{param.caseId}
-        and collect_target_id = #{param.collectTargetId}
-        and account = #{param.account}
-        and mail_tool_type =
-        #{param.mailToolType}
-        and friend_account = #{param.friendAccount}
-        <choose>
-            <when test="param.friendGroup == '默认分组'">
-                and (friend_group is null or friend_group = #{param.friendGroup})
-            </when>
-            <otherwise>
-                and friend_group = #{param.friendGroup}
-            </otherwise>
-        </choose>
-        limit 1
-    </select>
-
-    <select id="getEmailRecord" resultType="com.zsjz.ai.module.eds.eds.dto.EmailRecordDto">
-        select mail_save_folder                                   as mailSaveFolder,
-               count(collect_target_id)                           as emailCount,
-               sum(case when delete_status = 1 then 1 else 0 end) as emailDelCount
-        from wa_mforensics_040300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and mail_tool_type = #{param.mailToolType}
-        group by mail_save_folder
-    </select>
-
-    <!--查询邮件详情-->
-    <select id="getEmailRecordInfo" resultType="com.zsjz.ai.module.eds.eds.dto.EmailRecordInfoDto">
-        select *
-        from wa_mforensics_040300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and mail_tool_type = #{param.mailToolType}
-          and mail_save_folder = #{param.mailSaveFolder}
-        order by mail_send_time desc
-    </select>
-
-    <select id="getEmailRecordInfoByStat" resultType="com.zsjz.ai.module.eds.eds.dto.EmailRecordInfoDto">
-        select *
-        from wa_mforensics_040300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and (
-            `from` = #{param.relationshipAccount}
-                or `to` = #{param.relationshipAccount}
-                or locate(#{param.relationshipAccount}, cc)
-                or locate(#{param.relationshipAccount}, bcc)
-            )
-        order by mail_send_time desc
-    </select>
-
-    <!--搜索记录-->
-    <select id="getEmailSearchInfo" resultType="com.zsjz.ai.module.eds.eds.dto.EmailSearchInfoDto">
-        select create_time, keyword, delete_status, delete_time
-        from wa_mforensics_040500
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and mail_tool_type = #{param.mailToolType}
-        order by create_time
-    </select>
-
-</mapper>

+ 0 - 59
ai-server/src/main/resources/mappers/eds/GeographyMapper.xml

@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.GeographyMapper">
-
-    <!--账号信息-->
-    <select id="getAccountInfo" resultType="com.zsjz.ai.module.eds.eds.dto.GeographyAccountDto">
-        select *
-        from wa_mforensics_060100
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType} limit 1
-    </select>
-
-    <!--定位信息-->
-    <select id="getGeographyLocation" resultType="com.zsjz.ai.module.eds.eds.dto.GeographyLocationDto">
-        select *
-        from wa_mforensics_060200
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-    </select>
-
-    <!--导航信息-->
-    <select id="getGeographyNavigation" resultType="com.zsjz.ai.module.eds.eds.dto.GeographyNavigationDto">
-        select *
-        from wa_mforensics_060300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-    </select>
-
-    <!--收藏信息-->
-    <select id="getGeographyFavorites" resultType="com.zsjz.ai.module.eds.eds.dto.GeographyFavoritesDto">
-        select *
-        from wa_mforensics_060500
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-    </select>
-
-    <!--搜索信息-->
-    <select id="getGeographySearch" resultType="com.zsjz.ai.module.eds.eds.dto.GeographySearchDto">
-        select *
-        from wa_mforensics_060400
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-    </select>
-
-    <select id="getHotelInfo"
-            resultType="com.zsjz.ai.module.eds.eds.dto.GeographyHotelDto">
-        select *
-        from wa_mforensics_060800
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.browseType}
-    </select>
-
-</mapper>

+ 0 - 54
ai-server/src/main/resources/mappers/eds/InputMethodMapper..xml

@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.InputMethodMapper">
-
-    <select id="queryAccountDetail" resultType="com.zsjz.ai.module.eds.eds.dto.InputMethodAccountDto">
-        select wa12.collect_target_id,
-               wa12.account_id,
-               wa12.account,
-               regis_nickname,
-               password,
-               install_time,
-               area,
-               city_code,
-               fixed_phone,
-               msisdn,
-               email_account,
-               certificate_type,
-               certificate_code,
-               age,
-               postal_address,
-               postal_code,
-               occupation_name,
-               wa12.name,
-               reg_city,
-               graduateschool,
-               zodiac,
-               ifnull(ifnull(ed.bmmc, wa12.network_app), 'Unknown') as networkApp,
-               constallation,
-               birthday,
-               hash_type,
-               account_reg_date,
-               last_login_time,
-               latest_mod_time,
-               delete_time,
-               wa12.delete_status                                   as deleteStatus,
-               wa12.sexcode                                         as sexcode
-        from wa_mforensics_120100 wa12
-                 left join eds_dict as ed on ed.bmlx_py = 'WACODE_0163' and ed.bmsz = wa12.network_app
-        where wa12.case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.inputMethodType}
-          and account = #{param.account} limit 1
-    </select>
-
-    <select id="getLexiconInfo" resultType="com.zsjz.ai.module.eds.eds.dto.InputMethodLexiconDto">
-        select keyword, times, delete_status as deleteStatus, delete_time
-        from wa_mforensics_120200
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and network_app = #{param.inputMethodType}
-          and account = #{param.account}
-    </select>
-
-</mapper>

+ 0 - 157
ai-server/src/main/resources/mappers/eds/MaterialInfoMapper.xml

@@ -1,157 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.MaterialInfoMapper">
-    <!--    <select id="page" resultType="com.zsjz.ai.module.eds.eds.dto.MaterialInfoPageDto">-->
-    <!--        select wm0101.collect_target_id as collectTargetId,-->
-    <!--        wm0101.name,-->
-    <!--        il.filename as fileName,-->
-    <!--        il.size as fileSize,-->
-    <!--        COALESCE(wm1601.materials_name,'') as materialsName,-->
-    <!--        COALESCE(wm1601.model,'') as model,-->
-    <!--        COALESCE(ed.bmmc,wm1601.material_type,'') as materialTypeName,-->
-    <!--        wm0101.principal_name as principalName,-->
-    <!--        COALESCE(dept.name,wm0101.incharge_wa_department) as deptName,-->
-    <!--        wm0101.case_name as caseName,-->
-    <!--        wm0101.materials_name as collectMaterialsName,-->
-    <!--        wm0101.manufacturer,-->
-    <!--        il.import_time as importTime,-->
-    <!--        wm0101.capture_time as captureTime,-->
-    <!--        COALESCE(wm1601.material_type,'01') as materialType,-->
-    <!--        il.user_file_id as userFileId,-->
-    <!--        il.file_id as fileId,-->
-    <!--        il.user_Id as userId-->
-    <!--        from wa_mforensics_010100 as wm0101-->
-    <!--        left join bd_platform.sys_dept as dept on wm0101.incharge_wa_department = dept.org_code-->
-    <!--        left join wa_mforensics_160100 as wm1601 using(collect_target_id)-->
-    <!--        left join eds_dict as ed on ed.bmlx_py = 'WACODE_0191' and wm1601.material_type = ed.bmsz-->
-    <!--        left join eds_import_list as il using(collect_target_id)-->
-    <!--        <where>-->
-    <!--            il.status = '27'-->
-    <!--            <if test="userIdList != null">-->
-    <!--                and il.user_id in-->
-    <!--                <foreach collection="userIdList" open="(" close=")" item="id" separator=",">-->
-    <!--                    #{id}-->
-    <!--                </foreach>-->
-    <!--            </if>-->
-    <!--            <if test="paramDto.searchContent!=null and paramDto.searchContent!=''">-->
-    <!--                and (locate(#{paramDto.searchContent},wm0101.collect_target_id)-->
-    <!--                or locate(#{paramDto.searchContent},wm0101.name)-->
-    <!--                or locate(#{paramDto.searchContent},il.filename)-->
-    <!--                or locate(#{paramDto.searchContent},wm1601.materials_name)-->
-    <!--                or locate(#{paramDto.searchContent},wm1601.model)-->
-    <!--                or locate(#{paramDto.searchContent},wm0101.principal_name)-->
-    <!--                or locate(#{paramDto.searchContent},wm0101.case_name)-->
-    <!--                or locate(#{paramDto.searchContent},wm0101.materials_name)-->
-    <!--                or locate(#{paramDto.searchContent},wm0101.manufacturer)-->
-    <!--                or locate(#{paramDto.searchContent},(case when ed.bmmc is not null then ed.bmmc else wm1601.material_type end))-->
-    <!--                or locate(#{paramDto.searchContent},(case when dept.name is not null then dept.name else wm0101.incharge_wa_department end)))-->
-    <!--            </if>-->
-    <!--            <if test="paramDto.importTimeB!=null">-->
-    <!--                and il.import_time &gt;= #{paramDto.importTimeB}-->
-    <!--            </if>-->
-    <!--            <if test="paramDto.importTimeE!=null">-->
-    <!--                and il.import_time &lt;= #{paramDto.importTimeE}-->
-    <!--            </if>-->
-    <!--        </where>-->
-    <!--    </select>-->
-
-    <select id="page" resultType="com.zsjz.ai.module.eds.po.EdsImportList">
-        select * from eds_import_list
-        <where>
-            case_id = #{paramDto.caseId}
-
-            <if test="paramDto.filename != null">
-                and locate(#{paramDto.filename},filename)
-            </if>
-
-            <if test="paramDto.status != null">
-                and status = #{paramDto.status}
-            </if>
-
-            <if test="page != null and page.current != -1">
-                LIMIT #{page.current} * #{page.limit} , #{page.limit}
-            </if>
-        </where>
-    </select>
-
-
-    <select id="getDirListByCid" resultType="com.zsjz.ai.module.eds.po.EdsDirTreeCount">
-        select dt.id,
-               dt.full_name,
-               dt.parent_id,
-               dt.tree_level,
-               min(dict.bmmc)     as appTypeName,
-               sum(dtc.total_num) as totalNum,
-               sum(dtc.del_num)   AS delNum,
-               dtc.app_type,
-               dtc.dt_id,
-               dtc.account
-        from eds_dir_tree as dt
-                 left join eds_dir_tree_count as dtc on dt.id = dtc.dt_id
-                 left join eds_dict as dict on dict.bmlx_py = 'WACODE_0163' and dtc.app_type = dict.bmsz
-        where (dtc.case_id = #{caseId} and dtc.collect_target_id = #{collectTargetId})
-           or dt.tree_level = -1
-        GROUP BY dt.id, dt.full_name, dt.parent_id, dt.tree_level, dtc.app_type, dtc.account
-        order by dt.sort
-    </select>
-
-    <delete id="deleteDataByCid">
-        delete
-        from ${tbName}
-        where collect_target_id = #{collectTargetId} and case_id = #{caseId}
-    </delete>
-
-    <select id="findTablesWithCti" resultType="map">
-        SELECT c.TABLE_NAME AS tableName
-        FROM information_schema.COLUMNS c
-        JOIN information_schema.TABLES t
-        ON c.TABLE_SCHEMA = t.TABLE_SCHEMA AND c.TABLE_NAME = t.TABLE_NAME
-        WHERE c.TABLE_SCHEMA = 'clue_analysis_jw'
-          AND c.COLUMN_NAME IN ('collect_target_id', 'case_id')
-          AND t.TABLE_TYPE = 'BASE TABLE'
-        GROUP BY c.TABLE_NAME
-        HAVING COUNT(DISTINCT c.COLUMN_NAME) = 2;
-    </select>
-
-    <delete id="deleteMultiTableDataByCid">
-        <foreach collection="tbNameSet" item="tbName" separator=";">
-            delete from ${tbName}
-            where ${columnName} = #{collectTargetId} and case_id = #{caseId}
-        </foreach>
-    </delete>
-
-    <delete id="deleteEdsImportListByCid">
-        delete
-        from eds_import_list
-        where eds_cti = #{collectTargetId}
-    </delete>
-
-
-    <select id="getWx091000" resultType="com.zsjz.ai.module.eds.eds.vo.ExtendFileVO">
-        select file_name, file_size, storage_location, file_path, create_time
-        from wa_xly_091000
-        where collect_target_id = #{collectTargetId}
-    </select>
-
-    <select id="getWx091100" resultType="com.zsjz.ai.module.eds.eds.vo.ExtendFileVO">
-        select file_name, file_size, storage_location, file_path, create_time
-        from wa_xly_091100
-        where collect_target_id = #{collectTargetId}
-    </select>
-
-    <select id="getFilenameByCid" resultType="java.lang.String">
-        select filename
-        from eds_import_list
-        where collect_target_id = #{collectTargetId}
-    </select>
-
-
-    <select id="getErrorBcpList" resultType="com.zsjz.ai.module.eds.po.basic.WaMforensics010100">
-        SELECT wa.case_id, wa.collect_target_id
-        FROM wa_mforensics_010100 wa
-        LEFT JOIN excel_file ef ON wa.case_id = ef.case_id AND wa.collect_target_id = ef.collect_target_id
-        WHERE ef.collect_target_id IS NULL  AND wa.collect_target_id IS NOT NULL
-    </select>
-
-
-</mapper>

+ 0 - 128
ai-server/src/main/resources/mappers/eds/MediaMapper.xml

@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.MediaMapper">
-
-    <sql id="merge_media_table">
-        <trim prefixOverrides="union all">
-            <if test="mediaTypeParam.standardMediaType != null">
-                select ${standard_col}
-                from eds_media_file
-                where case_id = #{param.caseId} and collect_target_id = #{param.collectTargetId} and media_type = #{mediaTypeParam.standardMediaType}
-            </if>
-            <if test="mediaTypeParam.customMediaTbName != null">
-                union all select ${custom_col}
-                from ${mediaTypeParam.customMediaTbName}
-                where case_id = #{param.caseId} and collect_target_id = #{param.collectTargetId}
-            </if>
-        </trim>
-    </sql>
-
-    <sql id="get_media_type">
-        select
-        (case when length(suffix_name) then suffix_name else '其他类型' end) as suffixName,
-        count(1) as suffixCount,
-        sum(case when delete_status = 1 then 1 else 0 end) as suffixDelCount
-        from (
-        <include refid="merge_media_table">
-            <property name="standard_col" value="media_name,suffix_name,delete_status,media_small_path"/>
-            <property name="custom_col" value="file_name as media_name,mime_type as suffix_name,delete_status"/>
-        </include>
-        ) as t
-        ${keyword_where}
-        group by suffix_name
-        order by suffixCount desc
-    </sql>
-
-    <sql id="get_media_detail">
-        <bind name="standard_media_type"
-              value="@com.zsjz.ai.module.eds.bcp.model.enums.CustomMediaTableEnum@getStandardMediaTypeByName(mediaTypeParam.customMediaTbName)"/>
-        select
-        (case when length(media_name) then media_name else 'Uknown' end) as mediaName,
-        storage_location,
-        media_path,
-        media_small_path,
-        media_type,
-        create_time,
-        delete_status,
-        media_size,
-        (case when length(suffix_name) then suffix_name else 'Other' end) as suffixName
-        from (
-        <include refid="merge_media_table">
-            <property name="standard_col" value="media_name,3 as storage_location,media_small_path ,media_path,
-                                                            media_type,create_time,delete_status,
-                                                            media_size,suffix_name"/>
-            <property name="custom_col" value="file_name as media_name,storage_location,file_path as media_path,
-                                                          '${standard_media_type}' as media_type,create_time,delete_status,
-                                                          file_size as media_size,mime_type as suffix_name"/>
-        </include>
-        ) as t
-        <if test="param.suffixName != '全部'">
-            <choose>
-                <when test="param.suffixName == null or param.suffixName =='' or param.suffixName == '其他类型'">
-                    where suffix_name is null or suffix_name = '' ${keyword_where}
-                </when>
-                <otherwise>
-                    where suffix_name = #{param.suffixName} ${keyword_where}
-                </otherwise>
-            </choose>
-        </if>
-    </sql>
-
-    <select id="getMediaType" resultType="com.zsjz.ai.module.eds.eds.dto.MediaTypeCountDto">
-        <include refid="get_media_type">
-            <property name="keyword_where" value=""/>
-        </include>
-    </select>
-
-    <select id="getMediaDetail" resultType="com.zsjz.ai.module.eds.po.EdsMediaFile">
-        <include refid="get_media_detail">
-            <property name="keyword_where" value=""/>
-        </include>
-    </select>
-    <select id="getMediaTypeByKeyword" resultType="com.zsjz.ai.module.eds.eds.dto.MediaTypeCountDto">
-        <include refid="get_media_type">
-            <property name="keyword_where" value="where locate(#{keyword},t.media_name)"/>
-        </include>
-    </select>
-    <select id="getMediaDetailByKeyword" resultType="com.zsjz.ai.module.eds.po.EdsMediaFile">
-        <include refid="get_media_detail">
-            <property name="keyword_where" value="and locate(#{keyword},t.media_name)"/>
-        </include>
-    </select>
-    <select id="isClassifyComplete" resultType="com.zsjz.ai.module.eds.po.EdsMediaFile">
-        SELECT collect_target_id, hashcode
-        FROM eds_classfic_picture
-        WHERE case_id = #{caseId}
-          and collect_target_id = #{collectTargetId,jdbcType=VARCHAR} LIMIT 1;
-    </select>
-    <select id="pictureClassificationQuery" resultType="com.zsjz.ai.module.eds.po.EdsMediaFile">
-        SELECT DISTINCT
-        em.collect_target_id,
-        em.media_path,
-        em.hashcode,em.create_time,em.delete_status,em.media_size,em.media_name,em.suffix_name,em.media_small_path
-        FROM eds_media_file em
-        WHERE
-        em.case_id = #{param.caseId}
-        and em.media_type = '02'
-        and em.collect_target_id = #{param.collectTargetId}
-        <if test="param.suffixName != '111111' and param.suffixName != 'other'">
-            and em.suffix_name = #{param.suffixName}
-        </if>
-        <if test="param.suffixName == 'other'">
-            and em.suffix_name not in ('jpg','png','jpeg','ai','fpx')
-        </if>
-        <if test="param.mediaType != '111111'">
-            and em.hashcode IN
-            (SELECT DISTINCT ecp.hashcode FROM eds_classfic_picture ecp WHERE
-            ecp.collect_target_id = #{param.collectTargetId}
-            and ecp.sopt_type = #{param.mediaType,jdbcType=VARCHAR}
-            <if test="param.mediaType != 4">
-                and ecp.spot_result >= 50
-            </if>
-            <if test="param.mediaType == 4">
-                or ecp.spot_result &lt; 50
-            </if>
-            )
-        </if>
-    </select>
-</mapper>

+ 0 - 35
ai-server/src/main/resources/mappers/eds/NetworkMapper.xml

@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.NetworkMapper">
-
-    <!--账号基本信息-->
-    <select id="getAccountInfo" resultType="com.zsjz.ai.module.eds.eds.dto.NetworkAccountDto">
-        select *
-        from wa_mforensics_110100
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and network_app = #{param.networkApp} limit 1
-    </select>
-
-    <!--联系人信息列表-->
-    <select id="getNetworkFile" resultType="com.zsjz.ai.module.eds.eds.dto.NetworkFileDto">
-        select *
-        from wa_mforensics_110300
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and network_app = #{param.networkApp}
-    </select>
-
-    <!--联系人信息列表-->
-    <select id="getNetworkRecord" resultType="com.zsjz.ai.module.eds.eds.dto.NetworkRecordDto">
-        select *
-        from wa_mforensics_110200
-        where case_id = #{param.caseId}
-          and collect_target_id = #{param.collectTargetId}
-          and account = #{param.account}
-          and network_app = #{param.networkApp}
-    </select>
-
-</mapper>

+ 0 - 366
ai-server/src/main/resources/mappers/eds/SocialApplicationMapper.xml

@@ -1,366 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.SocialApplicationMapper">
-
-
-    <select id="selectAccount" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationAccountDto">
-        select a.case_id,
-               user_photo              as userPhoto,
-               account_id              as accountId,
-               account,
-               regis_nickname          as regisNickname,
-               password,
-               fans_counter            as fansCounter,
-               follow_counter          as followCounter,
-               message_counter         as messageCounter,
-               prevacy_message_counter as prevacyMessageCounter,
-               url,
-               certificate_content     as certificateContent,
-               sexcode,
-               birthday,
-               age,
-               zodiac,
-               constallation,
-               reg_city                as regCity,
-               graduateschool,
-               occupation_name         as occupationName,
-               blood_type              as bloodType,
-               name,
-               sign_name               as signName,
-               personal_desc           as personalDesc,
-               msisdn,
-               fixed_phone             as fixedPhone,
-               email_account           as emailAccount,
-               postal_address          as postalAddress,
-               postal_code             as postalCode,
-               d.bmmc                  as certificateType,
-               certificate_code        as certificateCode,
-               install_time            as installTime,
-               account_reg_date        as accountRegDate,
-               last_login_time         as lastLoginTime,
-               latest_mod_time         as latestModTime,
-               delete_status           as deleteStatus,
-               delete_time             as deleteTime
-        from wa_mforensics_030100 a
-                 left join eds_dict d on d.bmlx_py = 'GA_T_517_2004' and d.bmsz = certificate_type
-        where a.case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and contact_account_type = #{type} limit 1
-    </select>
-
-    <select id="groupStat" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationGroupStatDto">
-        select friend_group                                     as name,
-               count(1)                                         as num,
-               sum(case delete_status when 1 then 1 else 0 end) as deleteNum
-        from wa_mforensics_030200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and contact_account_type = #{type}
-        group by friend_group
-    </select>
-
-    <select id="getDefaultGroupFiendList" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationFriend">
-        select friend_account       as friendAccount,
-               max(friend_nickname) as friendNickname,
-               max(user_photo)      as userPhoto,
-               max(delete_status)   as deleteStatus
-        from wa_mforensics_030200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and contact_account_type = #{type}
-          and (friend_group = '默认分组' or friend_group is null)
-        group by friend_account
-        order by friendNickname
-    </select>
-
-    <select id="getGroupFiendList" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationFriend">
-        select friend_account       as friendAccount,
-               max(friend_nickname) as friendNickname,
-               max(user_photo)      as userPhoto,
-               max(delete_status)   as deleteStatus
-        from wa_mforensics_030200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and contact_account_type = #{type}
-          and friend_group = #{groupName}
-        group by friend_account
-        order by friendNickname
-    </select>
-
-    <select id="getFriendAccount" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationFriendAccountDto">
-        select user_photo          as userPhoto,
-               friend_id           as friendId,
-               friend_account      as friendAccount,
-               friend_nickname     as friendNickname,
-               fans_counter        as fansCounter,
-               follow_counter      as followCounter,
-               friend_remark       as friendRemark,
-               message_counter     as messageCounter,
-               url,
-               certificate_content as certificateContent,
-               sexcode,
-               birthday,
-               age,
-               zodiac,
-               constallation,
-               reg_city            as regCity,
-               graduateschool,
-               occupation_name     as occupationName,
-               blood_type          as bloodType,
-               name,
-               sign_name           as signName,
-               personal_desc       as personalDesc,
-               msisdn,
-               fixed_phone         as fixedPhone,
-               email_account       as emailAccount,
-               postal_address      as postalAddress,
-               postal_code         as postalCode,
-               certificate_type    as certificateType,
-               certificate_code    as certificateCode,
-               account_reg_date    as accountRegDate,
-               last_login_time     as lastLoginTime,
-               latest_mod_time     as latestModTime,
-               delete_status       as deleteStatus,
-               delete_time         as deleteTime
-        from wa_mforensics_030200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and contact_account_type = #{type}
-          and friend_account = #{friendAccount} limit 1
-    </select>
-
-    <select id="blogGroupStat" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationGroupStatDto">
-        select count(1)                          num,
-               friend_group                   as name,
-               sum(delete_status)             as deleteNum,
-               count(distinct friend_account) as personNum
-        from (select a.friend_account, friend_group, a.delete_status
-              from wa_mforensics_030300 a
-                       left join(select collect_target_id, account, friend_account, max(friend_group) as friend_group
-                                 from wa_mforensics_030200
-                                 where case_id = #{caseId}
-                                   and collect_target_id = #{cid}
-                                   and account = #{account}
-                                   and contact_account_type = #{type}
-                                 group by collect_target_id, account, friend_account) b
-                                on a.collect_target_id = b.collect_target_id
-                                    and a.account = b.account
-                                    and a.friend_account = b.friend_account
-              where case_id = #{caseId}
-                and a.collect_target_id = #{cid}
-                and a.account = #{account}
-                and a.contact_account_type = #{type}) t
-        group by t.friend_group
-        order by num desc
-    </select>
-
-    <select id="getBlogDefaultGroupFiendList" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationFriendStat">
-        select count(1)                num,
-               friend_account       as friendAccount,
-               sum(delete_status)   as deleteNum,
-               max(friend_nickname) as friendNickname,
-               max(user_photo)      as userPhoto
-        from (select a.friend_account, a.friend_nickname, friend_group, a.delete_status, b.user_photo
-              from wa_mforensics_030300 a
-                       left join(select collect_target_id,
-                                        account,
-                                        friend_account,
-                                        max(friend_group) as friend_group,
-                                        max(user_photo)   as user_photo
-                                 from wa_mforensics_030200
-                                 where case_id = #{caseId}
-                                   and collect_target_id = #{cid}
-                                   and account = #{account}
-                                   and contact_account_type = #{type}
-                                 group by collect_target_id, account, friend_account) b
-                                on a.collect_target_id = b.collect_target_id
-                                    and a.account = b.account
-                                    and a.friend_account = b.friend_account
-              where case_id = #{caseId}
-                and a.collect_target_id = #{cid}
-                and a.account = #{account}
-                and a.contact_account_type = #{type}
-                and (b.friend_group = '默认分组' or b.friend_group is null)) t
-        group by t.friend_account
-        order by num desc
-    </select>
-
-    <select id="getBlogGroupFiendList" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationFriendStat">
-        select count(1)                num,
-               friend_account       as friendAccount,
-               sum(delete_status)   as deleteNum,
-               max(friend_nickname) as friendNickname,
-               max(user_photo)      as userPhoto
-        from (select a.friend_account,
-                     a.friend_nickname,
-                     friend_group,
-                     a.delete_status,
-                     b.user_photo
-              from wa_mforensics_030300 a
-                       left join(select collect_target_id,
-                                        account,
-                                        friend_account,
-                                        max(friend_group) as friend_group,
-                                        max(user_photo)   as user_photo
-                                 from wa_mforensics_030200
-                                 where case_id = #{caseId}
-                                   and collect_target_id = #{cid}
-                                   and account = #{account}
-                                   and contact_account_type = #{type}
-                                 group by collect_target_id, account, friend_account) b
-                                on a.collect_target_id = b.collect_target_id and a.account = b.account
-                                    and a.friend_account = b.friend_account
-              where case_id = #{caseId}
-                and a.collect_target_id = #{cid}
-                and a.account = #{account}
-                and a.contact_account_type = #{type}
-                and friend_group = #{groupName}) t
-        group by t.friend_account
-        order by num desc
-    </select>
-
-    <select id="selectBlogList" resultType="com.zsjz.ai.module.eds.eds.dto.BlogDto">
-        select mail_send_time        as mailSendTime,
-               weibo_message         as weiboMessage,
-               weibo_reply_counter   as
-                                        weiboReplyCounter,
-               weibo_retweet_counter as weiboRetweetCounter,
-               weibo_like_counter    as
-                                        weiboLikeCounter,
-               copy_from             as copyFrom,
-               city_code             as cityCode,
-               company_address       as companyAddress,
-               delete_status         as deleteStatus,
-               delete_time           as deleteTime,
-               friend_nickname       as friendNickName
-        from wa_mforensics_030300
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and contact_account_type = #{type}
-          and friend_account = #{friendAccount}
-    </select>
-
-    <select id="privateLetterGroupStat" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationGroupStatDto">
-        select count(1)                          num,
-               friend_group                   as name,
-               sum(delete_status)             as deleteNum,
-               count(distinct friend_account) as personNum
-        from (select a.friend_account, friend_group, a.delete_status
-              from wa_mforensics_030400 a
-                       left join(select collect_target_id, account, friend_account, max(friend_group) as friend_group
-                                 from wa_mforensics_030200
-                                 where case_id = #{caseId}
-                                   and collect_target_id = #{cid}
-                                   and account = #{account}
-                                   and contact_account_type = #{type}
-                                 group by collect_target_id, account, friend_account) b
-                                on a.collect_target_id = b.collect_target_id
-                                    and a.account = b.account
-                                    and a.friend_account = b.friend_account
-              where case_id = #{caseId}
-                and a.collect_target_id = #{cid}
-                and a.account = #{account}
-                and a.contact_account_type = #{type}) t
-        group by t.friend_group
-        order by num desc
-    </select>
-
-    <select id="getPrivateLetterDefaultGroupFiendList" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationFriendStat">
-        select count(1)                num,
-               friend_account       as friendAccount,
-               sum(delete_status)   as deleteNum,
-               max(friend_nickname) as friendNickname,
-               max(user_photo)      as userPhoto
-        from (select a.friend_account, a.friend_nickname, friend_group, a.delete_status, b.user_photo
-              from wa_mforensics_030400 a
-                       left join(select collect_target_id,
-                                        account,
-                                        friend_account,
-                                        max(friend_group) as friend_group,
-                                        max(user_photo)   as user_photo
-                                 from wa_mforensics_030200
-                                 where case_id = #{caseId}
-                                   and collect_target_id = #{cid}
-                                   and account = #{account}
-                                   and contact_account_type = #{type}
-                                 group by collect_target_id, account, friend_account) b
-                                on a.collect_target_id = b.collect_target_id and a.account = b.account
-                                    and a.friend_account = b.friend_account
-              where case_id = #{caseId}
-                and a.collect_target_id = #{cid}
-                and a.account = #{account}
-                and a.contact_account_type = #{type}
-                and (b.friend_group = '默认分组' or b.friend_group is null)) t
-        group by t.friend_account
-        order by num desc
-    </select>
-
-    <select id="getPrivateLetterGroupFiendList" resultType="com.zsjz.ai.module.eds.eds.dto.SocialApplicationFriendStat">
-        select count(1)                num,
-               friend_account       as friendAccount,
-               sum(delete_status)   as deleteNum,
-               max(friend_nickname) as friendNickname,
-               max(user_photo)      as userPhoto
-        from (select a.friend_account, a.friend_nickname, friend_group, a.delete_status, b.user_photo
-              from wa_mforensics_030400 a
-                       left join(select collect_target_id,
-                                        account,
-                                        friend_account,
-                                        max(friend_group) as friend_group,
-                                        max(user_photo)   as user_photo
-                                 from wa_mforensics_030200
-                                 where case_id = #{caseId}
-                                   and collect_target_id = #{cid}
-                                   and account = #{account}
-                                   and contact_account_type = #{type}
-                                 group by collect_target_id, account, friend_account) b
-                                on a.collect_target_id = b.collect_target_id and a.account = b.account
-                                    and a.friend_account = b.friend_account
-              where case_id = #{caseId}
-                and a.collect_target_id = #{cid}
-                and a.account = #{account}
-                and a.contact_account_type = #{type}
-                and friend_group = #{groupName}) t
-        group by t.friend_account
-        order by num desc
-    </select>
-
-    <select id="getPrivateLetterList" resultType="com.zsjz.ai.module.eds.eds.dto.PrivateLetterDto">
-        select mail_send_time as mailSendTime, content, local_action as localAction,
-        delete_status as deleteStatus, delete_time as deleteTime,regis_nickname,friend_nickname
-        from wa_mforensics_030400
-        where case_id = #{caseId}
-        and collect_target_id = #{param.collectTargetId} and account = #{param.account} and contact_account_type =
-        #{param.contactAccountType}
-        and friend_account = #{param.friendAccount}
-        <if test="param.startDateTime!=null">
-            and mail_send_time &gt;= #{param.startDateTime}
-        </if>
-        <if test="param.endDateTime != null">
-            and mail_send_time &lt;= #{param.endDateTime}
-        </if>
-        <if test="param.keyword != null and param.keyword != ''">
-            and locate(#{param.keyword},content)
-        </if>
-        <if test="param.mediaType != null">
-            and media_type = #{param.mediaType.code}
-        </if>
-    </select>
-
-    <select id="getSearchRecord" resultType="com.zsjz.ai.module.eds.eds.dto.SearchRecordDto">
-        select create_time as createTime, keyword, delete_status as deleteStatus, delete_time as deleteTime
-        from wa_mforensics_030500
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and account = #{account}
-          and contact_account_type = #{type}
-        order by create_time desc
-    </select>
-
-</mapper>

+ 0 - 116
ai-server/src/main/resources/mappers/eds/SocialRelationshipMapper.xml

@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.SocialRelationshipMapper">
-
-    <select id="countWm0205" resultType="int">
-        select count(collect_target_id)
-        from wa_mforensics_020500 as t1
-        where
-        case_id = #{caseId}
-        and collect_target_id = #{collectTargetId}
-        and contact_account_type in (${appType})
-        <if test="param.startDate!=null">
-            and t1.mail_send_time &gt;= #{param.startDate}
-        </if>
-        <if test="param.endDate!=null">
-            and date(t1.mail_send_time) &lt;= #{param.endDate}
-        </if>
-    </select>
-
-    <select id="selectPhoneMutualData" resultType="com.zsjz.ai.module.eds.po.msg.WaMforensics020500">
-        select distinct id,#{person.personId} as personId,#{person.name} as
-        regisNickname,msisdn,relationship_account,mail_send_time,
-        msisdn as account,relationship_account as friendAccount,
-        content,local_action,relationship_name as friendNickname,
-        CASE #{param.chatMsgParam.contactAccountType}
-        WHEN '0000000-CALL' THEN 'wm0106'
-        WHEN '0000000-SMS' THEN 'wm0107' end as contactAccountType
-        from wa_mforensics_010700
-        where
-        case_id = #{caseId}
-        and collect_target_id = #{cid}
-        and msisdn = #{param.chatMsgParam.account}
-        and relationship_account = #{param.chatMsgParam.friendAccount}
-        <if test="param.chatMsgParam.startDateTime != null">
-            and mail_send_time >= #{param.chatMsgParam.startDateTime}
-        </if>
-        <if test="param.chatMsgParam.endDateTime != null">
-            and mail_send_time &lt;= #{param.chatMsgParam.endDateTime}
-        </if>
-        <if test="param.chatMsgParam.keyword!=null and param.chatMsgParam.keyword!=''">
-            and locate(#{param.chatMsgParam.keyword},content)
-        </if>
-    </select>
-
-    <select id="selectAppMutualData" resultType="com.zsjz.ai.module.eds.po.msg.WaMforensics020500">
-        select
-        id,
-        #{person.personId} as personId,
-        contact_account_type,
-        account,
-        regis_nickname,
-        friend_account,
-        friend_nickname,
-        content,
-        mail_send_time,
-        local_action,
-        delete_status,
-        delete_time,
-        media_type
-        from wa_mforensics_020500
-        where
-        case_id = #{caseId}
-        and collect_target_id = #{cid}
-        and account = #{param.chatMsgParam.account}
-        and friend_account = #{param.chatMsgParam.friendAccount}
-        and contact_account_type=#{param.chatMsgParam.contactAccountType}
-        <if test="param.chatMsgParam.startDateTime != null">
-            and mail_send_time >= #{param.chatMsgParam.startDateTime}
-        </if>
-        <if test="param.chatMsgParam.endDateTime != null">
-            and mail_send_time &lt;= #{param.chatMsgParam.endDateTime}
-        </if>
-        <if test="param.chatMsgParam.keyword!=null and param.chatMsgParam.keyword!=''">
-            and locate(#{param.chatMsgParam.keyword},content)
-        </if>
-        <if test="param.chatMsgParam != null and param.chatMsgParam.mediaType!=null">
-            and media_type = #{param.chatMsgParam.mediaType.code}
-        </if>
-        union all
-        select
-        id,
-        #{person.personId} as personId,
-        contact_account_type,
-        account,
-        regis_nickname,
-        friend_account,
-        friend_nickname,
-        content,
-        mail_send_time,
-        local_action,
-        delete_status,
-        delete_time,
-        media_type
-        from
-        wa_mforensics_030400
-        where
-        case_id = #{caseId}
-        and collect_target_id = #{cid}
-        and account = #{param.chatMsgParam.account}
-        and friend_account = #{param.chatMsgParam.friendAccount}
-        and contact_account_type=#{param.chatMsgParam.contactAccountType}
-        <if test="param.chatMsgParam.startDateTime != null">
-            and mail_send_time >= #{param.chatMsgParam.startDateTime}
-        </if>
-        <if test="param.chatMsgParam.endDateTime != null">
-            and mail_send_time &lt;= #{param.chatMsgParam.endDateTime}
-        </if>
-        <if test="param.chatMsgParam.keyword!=null and param.chatMsgParam.keyword!=''">
-            and locate(#{param.chatMsgParam.keyword},content)
-        </if>
-        <if test="param.chatMsgParam != null and param.chatMsgParam.mediaType!=null">
-            and media_type = #{param.chatMsgParam.mediaType.code}
-        </if>
-    </select>
-
-</mapper>

+ 0 - 152
ai-server/src/main/resources/mappers/eds/SystemTraceMapper.xml

@@ -1,152 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zsjz.ai.module.eds.eds.mapper.SystemTraceMapper">
-
-
-    <select id="getCalendar" resultType="com.zsjz.ai.module.eds.eds.dto.CalendarDto">
-        select title,
-               start_time      as startTime,
-               end_time        as endTime,
-               event_place     as eventPlace,
-               description,
-               create_time     as createTime,
-               latest_mod_time as latestModTime,
-               delete_status   as deleteStatus,
-               delete_time     as deleteTime
-        from wa_mforensics_010900
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="getAlarmClock" resultType="com.zsjz.ai.module.eds.eds.dto.AlarmClockDto">
-        select title,
-               alarm_time      as alarmTime,
-               d.bmmc          as `repeat`,
-               a.delete_status as deleteStatus,
-               delete_time     as deleteTime
-        from wa_mforensics_011100 a
-                 left join eds_dict d
-                           on d.bmlx_py = 'DS_REPEAT_FREQUENCY' and d.bmsz = a.`repeat`
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="deviceConnectRecord" resultType="com.zsjz.ai.module.eds.eds.dto.DeviceConnectRecordDto">
-        select check_guid    as checkGuid,
-               action_type   as actionType,
-               create_Time   as createTime,
-               device_type   as deviceType,
-               device_name   as deviceName,
-               mac,
-               ip_address    as ipAddress,
-               delete_status as deleteStatus,
-               delete_time   as deleteTime
-        from wa_mforensics_080600
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-
-    </select>
-    <select id="getUsbConnectRecord" resultType="com.zsjz.ai.module.eds.eds.dto.UsbConnectRecordDto">
-        select device_guid as deviceGuid, materials_name as materialsName, sag, device_id as deviceId,
-        manufacturer, first_time as firstTime, last_time as lastTime, description, device_type as deviceType,
-        delete_status as deleteStatus, delete_time as deleteTime
-        from wa_mforensics_080500
-        where
-        case_id = #{caseId}
-        and collect_target_id = #{cid}
-        <if test="id != null and id != ''">
-            and id = #{id}
-        </if>
-    </select>
-
-    <select id="getUsbConnectRecordByStat" resultType="com.zsjz.ai.module.eds.eds.dto.UsbConnectRecordDto">
-        select device_guid    as deviceGuid,
-               materials_name as materialsName,
-               sag,
-               device_id      as deviceId,
-               manufacturer,
-               first_time     as firstTime,
-               last_time      as lastTime,
-               description,
-               device_type    as deviceType,
-               delete_status  as deleteStatus,
-               delete_time    as deleteTime
-        from wa_mforensics_080500
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and materials_name = #{materialsName}
-    </select>
-
-    <select id="getBluetoothRecord" resultType="com.zsjz.ai.module.eds.eds.dto.BluetoothRecordDto">
-        select friend_bluetooth_mac as friendBluetoothMac,
-               materials_name       as materialsName,
-               friend_remark        as friendRemark,
-               d.bmmc               as bluetoothType,
-               last_time            as lastTime,
-               visit_time           as visitTime,
-               a.delete_status      as deleteStatus,
-               delete_time          as deleteTime
-        from wa_mforensics_080200 a
-                 left join eds_dict d on d.bmlx_py = 'DS_BLUETOOTH_TYPE' and d.bmsz = a.bluetooth_type
-        where a.case_id = #{caseId}
-          and collect_target_id = #{cid}
-    </select>
-
-    <select id="getWifiConnectRecord" resultType="com.zsjz.ai.module.eds.eds.dto.WifiConnectRecordDto">
-        select ssid,
-               city_code       as cityCode,
-               operator_net    as operatorNet,
-               access_type     as accessType,
-               ip_address      as ipAddress,
-               d.bmmc          as encryptAlgorithm,
-               password,
-               ap_mac          as apMac,
-               a.delete_status as deleteStatus,
-               delete_time     as deleteTime
-        from wa_mforensics_080100 a
-                 left join eds_dict d on d.bmlx_py = 'WACODE_0071_17' and d.bmsz = a.encrypt_algorithm
-        where a.case_id = #{caseId}
-          and collect_target_id = #{cid}
-    </select>
-    <select id="getBaseStationConnectRecord" resultType="com.zsjz.ai.module.eds.eds.dto.BaseStationConnectRecordDto">
-        select mcc,
-               mnc,
-               ecgi,
-               lac,
-               cellId,
-               sid,
-               nid,
-               base_station_id as baseStationId,
-               city_code       as cityCode,
-               company_address as companyAddress,
-               longitude,
-               latitude,
-               above_sealevel  as aboveSealevel,
-               start_time      as
-                                  startTime,
-               end_time        as endTime,
-               delete_status   as deleteStatus,
-               delete_time     as deleteTime
-        from wa_mforensics_080400
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-    </select>
-    <select id="getAccessFileRecord" resultType="com.zsjz.ai.module.eds.eds.vo.AccessFileRecordVO">
-        select mime_name as mimeName, max(user_acttime) as userActtime, count(collect_target_id) as num
-        from wa_mforensics_170200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and action_type = '75'
-        group by mimeName
-        order by userActtime desc
-    </select>
-    <select id="getUseSoftwareRecord" resultType="com.zsjz.ai.module.eds.eds.vo.UseSoftwareRecordVO">
-        select mime_name as mimeName, max(user_acttime) as userActtime, count(collect_target_id) as num
-        from wa_mforensics_170200
-        where case_id = #{caseId}
-          and collect_target_id = #{cid}
-          and action_type = '73'
-        group by mimeName
-        order by num desc
-    </select>
-</mapper>