cc hace 3 semanas
padre
commit
d128a4c642
Se han modificado 33 ficheros con 399 adiciones y 0 borrados
  1. 107 0
      .po_tmp.txt
  2. 189 0
      .zcode/plans/plan-sess_27fb358e-54eb-42fc-9f0f-263aa300716d.md
  3. 103 0
      .zcode/plans/plan-sess_2af5ba7c-b799-4d4c-b620-11f0eb23ba34.md
  4. BIN
      gui-test-screenshots/button-radius-crop.png
  5. BIN
      gui-test-screenshots/button-radius.png
  6. BIN
      gui-test-screenshots/charset-01-gallery.png
  7. BIN
      gui-test-screenshots/charset-02-tooltip.png
  8. BIN
      gui-test-screenshots/hover-01-gallery.png
  9. BIN
      gui-test-screenshots/hover-02-tooltip.png
  10. BIN
      gui-test-screenshots/import-select-expanded.png
  11. BIN
      gui-test-screenshots/import-select-files.png
  12. BIN
      gui-test-screenshots/other-01-gallery.png
  13. BIN
      gui-test-screenshots/page-size-dropdown.png
  14. BIN
      gui-test-screenshots/pagination-footer.png
  15. BIN
      gui-test-screenshots/screen-initial.png
  16. BIN
      gui-test-screenshots/ui-01-data-page.png
  17. BIN
      gui-test-screenshots/ui-charset-01-upload.png
  18. BIN
      gui-test-screenshots/ui-charset-02-catalog.png
  19. BIN
      gui-test-screenshots/ui-edge-01-data.png
  20. BIN
      gui-test-screenshots/ui-edge-02-case-open.png
  21. BIN
      gui-test-screenshots/ui-edge-03-type-dialog.png
  22. BIN
      gui-test-screenshots/ui-edge-04-upload-page.png
  23. BIN
      gui-test-screenshots/ui-edge-05-uploading.png
  24. BIN
      gui-test-screenshots/ui-edge-07-data-two-packages.png
  25. BIN
      gui-test-screenshots/ui-edge-08-upload-result.png
  26. BIN
      gui-test-screenshots/ui-edge-09-data-tree.png
  27. BIN
      gui-test-screenshots/ui-edge-10-duplicate.png
  28. BIN
      gui-test-screenshots/ui-edge-11-nonzip.png
  29. BIN
      gui-test-screenshots/ui-edge-12-eds-catalog.png
  30. BIN
      gui-test-screenshots/ui-fix-01-upload.png
  31. BIN
      gui-test-screenshots/ui-fix-02-catalog.png
  32. BIN
      gui-test-screenshots/upload-overall-progress.png
  33. BIN
      gui-test-screenshots/upload-single-progress.png

+ 107 - 0
.po_tmp.txt

@@ -0,0 +1,107 @@
+010100
+010200
+010201
+010202
+010300
+010400
+010500
+010600
+010700
+010800
+010900
+011000
+011100
+011200
+020100
+020200
+020300
+020400
+020500
+020600
+020700
+020800
+030100
+030200
+030300
+030400
+030500
+040100
+040200
+040300
+040400
+040500
+050100
+050200
+050300
+050400
+050500
+050600
+050700
+060100
+060200
+060300
+060400
+060500
+060600
+060700
+060800
+070100
+070200
+070300
+070400
+070500
+070600
+070700
+070800
+080100
+080200
+080300
+080400
+080500
+080600
+080700
+090100
+090200
+090300
+090400
+090500
+090600
+110100
+110200
+110300
+110400
+120100
+120200
+130100
+130200
+140100
+140200
+140300
+140400
+150100
+160100
+160200
+160300
+160400
+160500
+170100
+170200
+170300
+170400
+170500
+170600
+170700
+170800
+170900
+171000
+171100
+171200
+171300
+180100
+180200
+180300
+180400
+Ext616
+Ext621
+Ext625
+Ext627

+ 189 - 0
.zcode/plans/plan-sess_27fb358e-54eb-42fc-9f0f-263aa300716d.md

@@ -0,0 +1,189 @@
+# 迁移 xly-file 的 com.xly.eds.controller 到 zsjz-ai(含完整新旧接口表)
+
+## 1. 新旧接口对照表(全量 112 个)
+
+地址规则:去掉 `/electronic`;`/edsGroup`→`/eds/group`;`/socialRelationship`→`/eds/socialRelationship`;`/materialInfo`→`/eds/materialInfo`;`/pices` 不迁移。下列新地址均相对于后端上下文 `/js/a`。
+
+| # | 模块 | 方法 | 原地址 | 新地址 |
+|---:|---|---|---|---|
+| 1 | 账号 | GET | /electronic/account/list/{cid} | /eds/account/list/{cid} |
+| 2 | 基本信息 | GET | /electronic/baseInfo/caseInfo/{cid} | /eds/baseInfo/caseInfo/{cid} |
+| 3 | 基本信息 | GET | /electronic/baseInfo/systemAccount/{cid} | /eds/baseInfo/systemAccount/{cid} |
+| 4 | 基本信息 | GET | /electronic/baseInfo/application/{cid} | /eds/baseInfo/application/{cid} |
+| 5 | 基本信息 | GET | /electronic/baseInfo/operationRecord/{cid} | /eds/baseInfo/operationRecord/{cid} |
+| 6 | 基本信息 | GET | /electronic/baseInfo/getRelevancyPage/{cid} | 不迁移(@Deprecated,依赖 bd_platform) |
+| 7 | 浏览器 | GET | /electronic/browser/getBrowseAccount/{collectTargetId}/{browseType} | /eds/browser/getBrowseAccount/{collectTargetId}/{browseType} |
+| 8 | 浏览器 | GET | /electronic/browser/getBrowseHistory/{collectTargetId}/{browseType} | /eds/browser/getBrowseHistory/{collectTargetId}/{browseType} |
+| 9 | 浏览器 | GET | /electronic/browser/getBrowseHistoryByStat/{collectTargetId} | /eds/browser/getBrowseHistoryByStat/{collectTargetId} |
+| 10 | 浏览器 | GET | /electronic/browser/getBrowseFavorites/{collectTargetId}/{browseType} | /eds/browser/getBrowseFavorites/{collectTargetId}/{browseType} |
+| 11 | 浏览器 | GET | /electronic/browser/getBrowseCookie/{collectTargetId}/{browseType} | /eds/browser/getBrowseCookie/{collectTargetId}/{browseType} |
+| 12 | 浏览器 | GET | /electronic/browser/getBrowseSearch/{collectTargetId}/{browseType} | /eds/browser/getBrowseSearch/{collectTargetId}/{browseType} |
+| 13 | 即时通信 | POST | /electronic/chat/getAccountInfo | /eds/chat/getAccountInfo |
+| 14 | 即时通信 | POST | /electronic/chat/getFriendInfoGroup | /eds/chat/getFriendInfoGroup |
+| 15 | 即时通信 | POST | /electronic/chat/getFriendMsgGroup | /eds/chat/getFriendMsgGroup |
+| 16 | 即时通信 | POST | /electronic/chat/getFriendDynamicGroup | /eds/chat/getFriendDynamicGroup |
+| 17 | 即时通信 | POST | /electronic/chat/getFriendInfoList | /eds/chat/getFriendInfoList |
+| 18 | 即时通信 | POST | /electronic/chat/getFriendMsgList | /eds/chat/getFriendMsgList |
+| 19 | 即时通信 | POST | /electronic/chat/getFriendDynamicList | /eds/chat/getFriendDynamicList |
+| 20 | 即时通信 | POST | /electronic/chat/getFriendInfo | /eds/chat/getFriendInfo |
+| 21 | 即时通信 | POST | /electronic/chat/getGroupInfoList | /eds/chat/getGroupInfoList |
+| 22 | 即时通信 | POST | /electronic/chat/getGroupMsgList | /eds/chat/getGroupMsgList |
+| 23 | 即时通信 | POST | /electronic/chat/getGroupPersonInfo | /eds/chat/getGroupPersonInfo |
+| 24 | 即时通信 | POST | /electronic/chat/getMsgInfo | /eds/chat/getMsgInfo |
+| 25 | 即时通信 | POST | /electronic/chat/getDynamicInfo | /eds/chat/getDynamicInfo |
+| 26 | 即时通信 | POST | /electronic/chat/getSearchInfo | /eds/chat/getSearchInfo |
+| 27 | 检查项 | GET | /electronic/checkItem/getHitTargetType | 不迁移(缺 wa_mforensics_777777) |
+| 28 | 检查项 | GET | /electronic/checkItem/getCheckItemTree | 不迁移(缺 wa_mforensics_777777) |
+| 29 | 检查项 | GET | /electronic/checkItem/getCheckItemDetail | 不迁移(缺 wa_mforensics_777777) |
+| 30 | 电商 | GET | /electronic/commerce/account/{cid}/{type}/{account} | /eds/commerce/account/{cid}/{type}/{account} |
+| 31 | 电商 | GET | /electronic/commerce/tradeRecord/{cid}/{type}/{account} | /eds/commerce/tradeRecord/{cid}/{type}/{account} |
+| 32 | 电商 | GET | /electronic/commerce/searchRecord/{cid}/{type}/{account} | /eds/commerce/searchRecord/{cid}/{type}/{account} |
+| 33 | 电商 | POST | /electronic/commerce/getGroupRedEnvelopeList | /eds/commerce/getGroupRedEnvelopeList |
+| 34 | 电商 | POST | /electronic/commerce/getGroupRedEnvelopeInfo | /eds/commerce/getGroupRedEnvelopeInfo |
+| 35 | 通话短信 | GET | /electronic/callSms/contacts/{cid} | /eds/callSms/contacts/{cid} |
+| 36 | 通话短信 | GET | /electronic/callSms/smsStat/{cid} | /eds/callSms/smsStat/{cid} |
+| 37 | 通话短信 | GET | /electronic/callSms/callStat/{cid} | /eds/callSms/callStat/{cid} |
+| 38 | 通话短信 | POST | /electronic/callSms/smsDetail | /eds/callSms/smsDetail |
+| 39 | 通话短信 | POST | /electronic/callSms/callDetail | /eds/callSms/callDetail |
+| 40 | 通话短信 | POST | /electronic/callSms/callAndSmsDetail | /eds/callSms/callAndSmsDetail |
+| 41 | 数据统计 | GET | /electronic/dataStat/latestConnectUsb/{cid} | /eds/dataStat/latestConnectUsb/{cid} |
+| 42 | 数据统计 | GET | /electronic/dataStat/smsTop10/{cid} | /eds/dataStat/smsTop10/{cid} |
+| 43 | 数据统计 | GET | /electronic/dataStat/callNumTop10/{cid} | /eds/dataStat/callNumTop10/{cid} |
+| 44 | 数据统计 | GET | /electronic/dataStat/callTimeTop10/{cid} | /eds/dataStat/callTimeTop10/{cid} |
+| 45 | 数据统计 | GET | /electronic/dataStat/QQTop10/{cid} | /eds/dataStat/QQTop10/{cid} |
+| 46 | 数据统计 | GET | /electronic/dataStat/weChatTop10/{cid} | /eds/dataStat/weChatTop10/{cid} |
+| 47 | 数据统计 | GET | /electronic/dataStat/emailTop10/{cid} | /eds/dataStat/emailTop10/{cid} |
+| 48 | 数据统计 | GET | /electronic/dataStat/websiteTop10/{cid} | /eds/dataStat/websiteTop10/{cid} |
+| 49 | 数据统计 | GET | /electronic/dataStat/nonPhone/{cid} | /eds/dataStat/nonPhone/{cid} |
+| 50 | 数据统计 | GET | /electronic/dataStat/getRecentlyAccessedFile/{cid}/{id} | /eds/dataStat/getRecentlyAccessedFile/{cid}/{id} |
+| 51 | 数据统计 | GET | /electronic/dataStat/getRecentlyAccessedSoft/{cid}/{id} | /eds/dataStat/getRecentlyAccessedSoft/{cid}/{id} |
+| 52 | 数据统计 | GET | /electronic/dataStat/getHotDownSoft/{cid}/{name} | /eds/dataStat/getHotDownSoft/{cid}/{name} |
+| 53 | 数据统计 | GET | /electronic/dataStat/getRecentlyLinkUSB/{cid}/{name} | /eds/dataStat/getRecentlyLinkUSB/{cid}/{name} |
+| 54 | 银行交易 | POST | /electronic/bankTrade/jinjiCount | 不迁移(缺 eds_bank_trade) |
+| 55 | 银行交易 | POST | /electronic/bankTrade/jinjiXinxi | 不迁移(缺 eds_bank_trade) |
+| 56 | 银行交易 | POST | /electronic/bankTrade/dingwei | /eds/bankTrade/dingwei |
+| 57 | 银行交易 | GET | /electronic/bankTrade/edsList?caseId= | /eds/bankTrade/edsList(caseId 从会话取) |
+| 58 | 图片分类 | POST | /pices/test | 不迁移(依赖 demo.exe/main.exe + ES) |
+| 59 | 共群分析 | POST | /edsGroup/edsGroupList | /eds/group/edsGroupList |
+| 60 | 共群分析 | POST | /edsGroup/memberMsgContext | /eds/group/memberMsgContext |
+| 61 | 共群分析 | POST | /edsGroup/memberMsgPageChange | /eds/group/memberMsgPageChange |
+| 62 | 邮件 | GET | /electronic/email/getAccountInfo/{collectTargetId}/{mailToolType}/{account} | /eds/email/getAccountInfo/{collectTargetId}/{mailToolType}/{account} |
+| 63 | 邮件 | GET | /electronic/email/getFriendGroup/{collectTargetId}/{mailToolType}/{account} | /eds/email/getFriendGroup/{collectTargetId}/{mailToolType}/{account} |
+| 64 | 邮件 | GET | /electronic/email/getFriend/{collectTargetId}/{mailToolType}/{account} | /eds/email/getFriend/{collectTargetId}/{mailToolType}/{account} |
+| 65 | 邮件 | GET | /electronic/email/getFriendInfo/{collectTargetId}/{mailToolType}/{account}/{friendAccount} | /eds/email/getFriendInfo/{collectTargetId}/{mailToolType}/{account}/{friendAccount} |
+| 66 | 邮件 | GET | /electronic/email/getEmailRecord/{collectTargetId}/{mailToolType}/{account} | /eds/email/getEmailRecord/{collectTargetId}/{mailToolType}/{account} |
+| 67 | 邮件 | GET | /electronic/email/getEmailRecordInfo/{collectTargetId}/{mailToolType}/{account}/{mailSaveFolder} | /eds/email/getEmailRecordInfo/{collectTargetId}/{mailToolType}/{account}/{mailSaveFolder} |
+| 68 | 邮件 | GET | /electronic/email/getEmailRecordInfoByStat/{collectTargetId} | /eds/email/getEmailRecordInfoByStat/{collectTargetId} |
+| 69 | 邮件 | GET | /electronic/email/getEmailSearchInfo/{collectTargetId}/{mailToolType}/{account} | /eds/email/getEmailSearchInfo/{collectTargetId}/{mailToolType}/{account} |
+| 70 | 地理 | GET | /electronic/geography/getAccountInfo/{collectTargetId}/{browseType} | /eds/geography/getAccountInfo/{collectTargetId}/{browseType} |
+| 71 | 地理 | GET | /electronic/geography/getGeographyLocation/{collectTargetId}/{browseType} | /eds/geography/getGeographyLocation/{collectTargetId}/{browseType} |
+| 72 | 地理 | GET | /electronic/geography/getGeographyNavigation/{collectTargetId}/{browseType} | /eds/geography/getGeographyNavigation/{collectTargetId}/{browseType} |
+| 73 | 地理 | GET | /electronic/geography/getGeographyFavorites/{collectTargetId}/{browseType} | /eds/geography/getGeographyFavorites/{collectTargetId}/{browseType} |
+| 74 | 地理 | GET | /electronic/geography/getGeographySearch/{collectTargetId}/{browseType} | /eds/geography/getGeographySearch/{collectTargetId}/{browseType} |
+| 75 | 地理 | GET | /electronic/geography/getHotelInfo/{collectTargetId}/{browseType} | /eds/geography/getHotelInfo/{collectTargetId}/{browseType} |
+| 76 | 输入法 | POST | /electronic/inputMethod/getAccountInfo | /eds/inputMethod/getAccountInfo |
+| 77 | 输入法 | POST | /electronic/inputMethod/getLexiconInfo | /eds/inputMethod/getLexiconInfo |
+| 78 | 检材 | GET | /materialInfo/page | 不迁移(目标已有 /eds/list) |
+| 79 | 检材 | GET | /materialInfo/getDirTree/{caseId}/{collectTargetId} | /eds/materialInfo/getDirTree/{collectTargetId}(去掉 caseId) |
+| 80 | 检材 | GET | /materialInfo/downloadFile?edsPath= | /eds/materialInfo/downloadFile?edsPath= |
+| 81 | 检材 | DELETE | /materialInfo/{caseId}/{collectTargetId} | 不迁移(缺 excel_file/sksj/case_obj) |
+| 82 | 检材 | GET | /materialInfo/getExtendFiles/{collectTargetId}/{type} | 不迁移(缺 wa_xly_091000/091100) |
+| 83 | 媒体 | GET | /electronic/media/getMediaType/{collectTargetId}/{mediaType} | /eds/media/getMediaType/{collectTargetId}/{mediaType} |
+| 84 | 媒体 | GET | /electronic/media/getMediaDetail/{collectTargetId}/{mediaType} | /eds/media/getMediaDetail/{collectTargetId}/{mediaType} |
+| 85 | 媒体 | POST | /electronic/media/isClassifyComplete/{collectTargetId} | 不迁移(分类标记未迁移) |
+| 86 | 媒体 | POST | /electronic/media/pictureClassificationQuery | 不迁移(缺 eds_classfic_picture) |
+| 87 | 网络 | GET | /electronic/network/getAccountInfo/{collectTargetId}/{networkApp}/{account} | /eds/network/getAccountInfo/{collectTargetId}/{networkApp}/{account} |
+| 88 | 网络 | GET | /electronic/network/getNetworkFile/{collectTargetId}/{networkApp}/{account} | /eds/network/getNetworkFile/{collectTargetId}/{networkApp}/{account} |
+| 89 | 网络 | GET | /electronic/network/getNetworkRecordInfo/{collectTargetId}/{networkApp}/{account} | /eds/network/getNetworkRecordInfo/{collectTargetId}/{networkApp}/{account} |
+| 90 | 社交应用 | GET | /electronic/socialApplication/account/{cid}/{type}/{account} | /eds/socialApplication/account/{cid}/{type}/{account} |
+| 91 | 社交应用 | GET | /electronic/socialApplication/groupStat/{cid}/{type}/{account} | /eds/socialApplication/groupStat/{cid}/{type}/{account} |
+| 92 | 社交应用 | GET | /electronic/socialApplication/groupFiendList/{cid}/{type}/{account} | /eds/socialApplication/groupFiendList/{cid}/{type}/{account} |
+| 93 | 社交应用 | GET | /electronic/socialApplication/friendDetail/{cid}/{type}/{account}/{friendAccount} | /eds/socialApplication/friendDetail/{cid}/{type}/{account}/{friendAccount} |
+| 94 | 社交应用 | GET | /electronic/socialApplication/blogGroupStat/{cid}/{type}/{account} | /eds/socialApplication/blogGroupStat/{cid}/{type}/{account} |
+| 95 | 社交应用 | GET | /electronic/socialApplication/blogGroupFiendList/{cid}/{type}/{account} | /eds/socialApplication/blogGroupFiendList/{cid}/{type}/{account} |
+| 96 | 社交应用 | GET | /electronic/socialApplication/blogList/{cid}/{type}/{account}/{friendAccount} | /eds/socialApplication/blogList/{cid}/{type}/{account}/{friendAccount} |
+| 97 | 社交应用 | GET | /electronic/socialApplication/privateLetterGroupStat/{cid}/{type}/{account} | /eds/socialApplication/privateLetterGroupStat/{cid}/{type}/{account} |
+| 98 | 社交应用 | GET | /electronic/socialApplication/privateLetterGroupFiendList/{cid}/{type}/{account} | /eds/socialApplication/privateLetterGroupFiendList/{cid}/{type}/{account} |
+| 99 | 社交应用 | POST | /electronic/socialApplication/privateLetterDetail | /eds/socialApplication/privateLetterDetail |
+| 100 | 社交应用 | GET | /electronic/socialApplication/searchRecord/{cid}/{type}/{account} | /eds/socialApplication/searchRecord/{cid}/{type}/{account} |
+| 101 | 社会关系 | POST | /socialRelationship/mutualContext | /eds/socialRelationship/mutualContext |
+| 102 | 社会关系 | POST | /socialRelationship/mutualInfoChange | /eds/socialRelationship/mutualInfoChange |
+| 103 | 系统痕迹 | GET | /electronic/systemTrace/calendar/{cid} | /eds/systemTrace/calendar/{cid} |
+| 104 | 系统痕迹 | GET | /electronic/systemTrace/alarmClock/{cid} | /eds/systemTrace/alarmClock/{cid} |
+| 105 | 系统痕迹 | GET | /electronic/systemTrace/deviceConnectRecord/{cid} | /eds/systemTrace/deviceConnectRecord/{cid} |
+| 106 | 系统痕迹 | GET | /electronic/systemTrace/usbConnectRecord/{cid} | /eds/systemTrace/usbConnectRecord/{cid} |
+| 107 | 系统痕迹 | GET | /electronic/systemTrace/usbConnectRecordByStat/{cid} | /eds/systemTrace/usbConnectRecordByStat/{cid} |
+| 108 | 系统痕迹 | GET | /electronic/systemTrace/bluetoothRecord/{cid} | /eds/systemTrace/bluetoothRecord/{cid} |
+| 109 | 系统痕迹 | GET | /electronic/systemTrace/wifiConnectRecord/{cid} | /eds/systemTrace/wifiConnectRecord/{cid} |
+| 110 | 系统痕迹 | GET | /electronic/systemTrace/baseStationConnectRecord/{cid} | /eds/systemTrace/baseStationConnectRecord/{cid} |
+| 111 | 系统痕迹 | GET | /electronic/systemTrace/accessFileRecord/{cid} | /eds/systemTrace/accessFileRecord/{cid} |
+| 112 | 系统痕迹 | GET | /electronic/systemTrace/useSoftwareRecord/{cid} | /eds/systemTrace/useSoftwareRecord/{cid} |
+
+**统计:迁移 100 个,不迁移 12 个。** 所有分页接口统一:请求参数 `current/size` 改为 `page/limit`,响应 `Page` 结构(`records/total/size/current/pages`)不变;请求体里的 `caseId` 字段忽略,案件统一从 `CaseContextHolder` 获取。
+
+## 2. 接口契约变化(写进 docs/eds-api-migration.md)
+
+1. 返回体:`R{code,msg,data}` → `Result{code,message,data}`,`msg` 字段改名为 `message`。
+2. 案件:不再需要 `x-custom-header`;必须先打开案件,否则 `@DS("slave")` 返回 400。
+3. 分页:`current/size` → `page/limit`。
+4. `getDirTree`:路径去掉 `{caseId}`,新地址 `/eds/materialInfo/getDirTree/{collectTargetId}`。
+5. `edsList`:去掉 `caseId` 参数,新地址 `/eds/bankTrade/edsList`。
+6. 媒体:`getMediaDetail` 返回的 `mediaPath/mediaSmallPath` 映射为 `mediaUrl`(完整可访问地址),其余字段不变。
+7. `edsList` 返回:源 `FileBean` → 新 `EdsBankTradeFileDTO`(id/fileName/fileSize/md5/createDateTime)。
+8. 字典:名称字段通过 master 库 `eds_dict` 翻译;未导入数据时回退原始代码,字段名不变。
+9. 导出:`dataScope` 导出分支本批不迁移,普通分页查询保留。
+
+## 3. 跳过清单(12 个,附原因)
+
+- 缺 `wa_mforensics_777777`:CheckItem 3 个。
+- 缺 `eds_bank_trade`:银行交易 `jinjiCount`、`jinjiXinxi`。
+- 缺 `eds_classfic_picture`/分类标记/外部程序:`/pices/test`、媒体 `isClassifyComplete`、`pictureClassificationQuery`。
+- 缺 `bd_platform`:`getRelevancyPage`(且 `@Deprecated`、原实现 NPE)。
+- 缺 `excel_file`/`sksj`/`case_obj`:`DELETE /materialInfo/{caseId}/{collectTargetId}`。
+- 缺 `wa_xly_091000/091100`:`getExtendFiles`。
+- 目标已有替代:`/materialInfo/page` → 使用现有 `GET /eds/list`。
+
+## 4. 命名、注释、规范(按你的要求)
+
+- **类名**:全部 `Eds` 前缀 + 业务语义;Controller `EdsXxxController`、Service `EdsXxxService`(无接口)、Mapper `EdsXxxQueryMapper`、DTO `EdsXxxDTO`、Query `EdsXxxQuery`、VO `EdsXxxVO`。源共享 mapper 按业务拆分:`EdsAccountQueryMapper`、`EdsContactRecordQueryMapper`、`EdsDataStatQueryMapper`。
+- **注释**:所有类/方法/字段/SQL 注释全部重写,不复制源文本;删除注释掉的死代码;统一中文 Javadoc,写清业务规则、过滤/排序/分组、默认值;`@author zsjz`。
+- **规范**:`@RestController` + `@RequiredArgsConstructor` + 构造注入;`Result` 返回;`ServerException`;`CaseContextHolder`;`@DS(StrConsts.DS_KEY_SLAVE)`;XML 放 `resources/mappers/eds/`;去掉 Swagger 注解;无 `System.out`。
+- **不改业务逻辑**:字段名/含义、过滤条件、排序、分组、默认值、分页语义保持一致;仅实现方式/类名/注释/安全写法不同。
+
+## 5. 发现 bug 的修复(限迁移范围)
+
+1. 媒体类型统计“全部”数量用 `count()` 而非累加 → 改为累加。
+2. `downloadFile` 任意路径可读 → 限制在 `PathConst.WORKSPACE/{caseId}`。
+3. 操作记录 `actionType` 非数字/空值抛异常 → 安全解析,回退“未知”。
+4. 迁移 SQL 中 `${keyword}`/`${key}` → 全部 `#{}` 参数化,防注入。
+5. `PageUtil` 空实现 → 删除,不影响分页。
+6. Chat 日期分组重复逻辑 → 抽 `EdsChatGroupUtil`,输出不变。
+7. SocialRelationship 未使用的注入/字段 → 删除。
+8. Media 未调用的 `isClassifyComplete`、自定义媒体表分支 → 删除。
+9. 跳过接口中的已知缺陷(银行交易判空用错变量、类型 4 条件优先级、CheckItem 注入等)记录在对照表,不修改。
+
+## 6. 数据/SQL 适配
+
+- 所有 SQL 去掉 `case_id` 条件/join(目标按案件分库)。
+- `eds_dir_tree`→`eds_tree`、`eds_dir_tree_count`→`eds_tree_count`;`full_name`→`name`、`parent_id`→`pid`。
+- `eds_media_file` 只查标准表,去掉 `media_small_path`/`storage_location`/自定义媒体表。
+- `eds_dict` join 全部移除,改 Java 侧 `EdsDictStore` 翻译;按你给的结构在 master 库建表,附旧库迁移示例。
+- 方言:`locate`→`strpos`、`ifnull`→`coalesce`、`if`→`CASE WHEN`、`group_concat(DISTINCT)`→`string_agg`、`DATE_FORMAT`→`strftime`、`SUBSTRING_INDEX`→`list_slice/string_split`、`LIMIT offset,count`→`LIMIT count OFFSET offset`、反引号→双引号。
+- `eds_bank_trade`、`777777`、`wa_xly_09xxxx`、`bd_platform`、`eds_classfic_picture` 相关 SQL 删除。
+
+## 7. 实施与验证
+
+1. 先落 `sql/eds_dict.sql`、`EdsDictStore`、工具类,再按“简单只读→复杂”两批迁移。
+2. 写完 `docs/eds-api-migration.md`:包含上面 112 行完整表格、契约变化、跳过原因、前端改造要点。
+3. `mvn -pl ai-server -am clean compile`。
+4. 静态检查:新代码无 `com.xly`/`WebUtils`/`R`/`x-custom-header`;新 XML 无 `case_id`/`eds_dir_tree`/`mysql.help_topic`;无源注释残留。
+5. SQL 冒烟测试:参考 `DemoBcpImportTest` 打开 `QingJian/workspace/9/ylzkBGZJ9`,用真实 `collect_target_id` 逐条执行新 Mapper,覆盖 join/字典/日期/`string_agg`/`strpos`/分页。
+6. 缺陷修复单测:媒体计数、操作记录解析、下载路径校验、参数化 SQL。
+7. 环境允许时启动应用,抽查 `/js/a/eds/baseInfo/caseInfo/{cid}`、`/js/a/eds/chat/getAccountInfo`、`/js/a/eds/systemTrace/calendar/{cid}`。
+
+## 8. 风险
+
+- `eds_dict` 只建表不造数据;未导入前名称回退代码,导入后恢复。
+- 12 个接口不迁移;导出分支不迁移。
+- 目标取证表列与源表可能有细微差异,冒烟测试会暴露并据目标表调整。
+- 类名/注释/包名全部重写,工作量较大,但保证代码符合新项目规范且不携带旧项目痕迹。

+ 103 - 0
.zcode/plans/plan-sess_2af5ba7c-b799-4d4c-b620-11f0eb23ba34.md

@@ -0,0 +1,103 @@
+## Context
+
+新后端 `ai-server` 已完成 EDS 接口迁移(`docs/eds-api-migration.md`,100 个接口,统一 `/js/a/eds/**`,`Result{code,message,data}`,分页 `page/limit`,案件从会话读取)。新前端「案件数据」分类树已补上 `type=eds` 的电子数据包节点(`edsCollectTargetId`),但右侧目前仍走治理表 `POST /gt/treeTablePage`,点 EDS 节点会拿 collectTargetId 当表名查错表。
+
+本次把旧项目 `clueAnalysis-JW-web` 的「电子数据结果浏览」严格迁移到新前端:点击 EDS 节点后,右侧展示旧版同款「目录树 + 内容区」浏览器,使用新项目现有基础组件与视觉风格,不改业务逻辑。用户已确认:新建 `src/eds` 模块;严格按旧前端范围;移除旧前端依赖但新后端未迁移的交互(被采集人编辑、导出);**迁移文件按业务重命名,见名知意**。
+
+## 一、命名规范(本次迁移的核心调整)
+
+统一规则:`Eds` 前缀 + 业务对象 + 职责后缀;目录按职责分 `api / panels / components / config / utils`,不再沿用旧项目的 `contentPages`、`genericList`、`objectContent`、`mediaFile` 等泛化名。
+
+| 旧文件 | 新文件 |
+|---|---|
+| `electronicData/index.vue` | `components/EdsPackageBrowser.vue`(电子数据包浏览器容器) |
+| 内层树(旧内联) | `components/EdsCatalogTree.vue`(检材目录树) |
+| `contentPages/genericList.vue` | `panels/EdsRecordListPanel.vue`(通用记录列表) |
+| `contentPages/objectContent.vue` | `panels/EdsObjectInfoPanel.vue`(对象信息) |
+| `contentPages/friendGroupInformation.vue` | `panels/EdsContactGroupPanel.vue`(联系人分组) |
+| `contentPages/friendDynamic.vue` | `panels/EdsMomentFeedPanel.vue`(动态/博文) |
+| `contentPages/friendChatRecord.vue` | `panels/EdsPrivateConversationPanel.vue`(好友/私信会话) |
+| `contentPages/groupInformation.vue` | `panels/EdsChatGroupPanel.vue`(群组信息) |
+| `contentPages/groupChatRecord.vue` | `panels/EdsGroupConversationPanel.vue`(群会话) |
+| `contentPages/redEnvelopeRecord.vue` | `panels/EdsCommerceRedEnvelopePanel.vue`(群红包) |
+| `contentPages/shortMessageRecord.vue` | `panels/EdsSmsConversationPanel.vue`(短信会话) |
+| `contentPages/callRecord.vue` | `panels/EdsCallConversationPanel.vue`(通话会话) |
+| `contentPages/emailRecord.vue` | `panels/EdsEmailFolderPanel.vue`(邮箱箱体) |
+| `contentPages/contacts.vue` | `panels/EdsContactBookPanel.vue`(通讯录) |
+| `contentPages/mediaFileRecord.vue` | `panels/EdsMediaGalleryPanel.vue`(媒体图库) |
+| `contentPages/dataRanking.vue` | `panels/EdsDataOverviewPanel.vue`(数据概览 TOP10) |
+| `contentPages/dataRankingItem.vue` | `components/EdsRankingCard.vue`(排行卡片) |
+| `InformationList.vue` / `InformationItem.vue` | `components/EdsInfoSections.vue` / `EdsInfoSection.vue` |
+| `contactPeopleList.vue` | `components/EdsContactSidebar.vue` |
+| `contactGroupPeopleList.vue` | `components/EdsGroupedContactSidebar.vue` |
+| `chatRecord.vue` | `components/EdsConversationViewer.vue` |
+| `chatKeywordSearchList.vue` | `components/EdsMessageSearchResults.vue` |
+| `dynamicList.vue` | `components/EdsMomentFeed.vue` |
+| `mediaFile.vue` | `components/EdsMediaGallery.vue` |
+| `previewMeDiaFile.vue` | `components/EdsMediaPreview.vue` |
+| `useObjectContent.js` | `config/edsObjectInfoConfig.ts`(字段映射注册表) |
+| `useGenericList.js` | `config/edsRecordListConfig.ts`(列表列/接口注册表) |
+| `useFriendGroupInformation.js` | `config/edsContactGroupConfig.ts` |
+| `useFriendDynamic.js` | `config/edsMomentConfig.ts` |
+| `useFriendChatRecord.js` | `config/edsConversationConfig.ts` |
+| `useMediaFileRecord.js` | `config/edsMediaGalleryConfig.ts` |
+| `useTidyUpChatContentData.js` | `utils/edsChatMessageNormalizer.ts` |
+| 旧 `PageTable` 封装 | `components/EdsRecordTable.vue` |
+| 旧分页/格式化零散函数 | `utils/edsFormatters.ts` |
+
+API 文件也按业务命名:`api/edsTreeApi.ts`、`edsAccountApi.ts`、`edsBaseInfoApi.ts`、`edsBrowserApi.ts`、`edsChatApi.ts`、`edsCommerceApi.ts`、`edsCallSmsApi.ts`、`edsDataStatApi.ts`、`edsEmailApi.ts`、`edsGeographyApi.ts`、`edsGroupApi.ts`、`edsInputMethodApi.ts`、`edsMaterialApi.ts`、`edsMediaApi.ts`、`edsNetworkApi.ts`、`edsSocialApplicationApi.ts`、`edsSocialRelationshipApi.ts`、`edsSystemTraceApi.ts`;请求/响应类型拆为 `api/edsQuery.ts`、`api/edsDto.ts`;统一 `api/index.ts` 导出。
+
+## 二、模块结构与实现
+
+```
+ai-electron/frontend/src/eds/
+  api/            # 18 个业务 API + edsQuery/edsDto/index
+  panels/         # 15 个业务面板(见上表)
+  components/     # 容器、树、表格、信息区块、会话、图库等通用组件
+  config/         # 5 个注册表:目录叶子 -> 面板/列/接口/字段
+  utils/          # 格式化、聊天消息归一化
+  index.ts        # 导出 EdsPackageBrowser
+```
+
+- 所有 API 使用 `defHttp` + `useGlobSetting().adminPath`,显式接收 `collectTargetId`(不再用旧版 localStorage 传 id);分页统一 `PageResult<T> = {records,total}`。
+- POST 带查询参数用 `defHttp.postJson({url, params:{page,limit}, data})`;输入法 `getAccountInfo` 用 `defHttp.post({url, params})`(后端按 query 绑定)。
+- 容器 `EdsPackageBrowser` 保留旧组件注册表:目录叶子 `dtId` → 面板组件 + rawData;分组节点生成合成 key,叶子用 `dtId`。
+
+**关键契约差异(按新后端)**
+- `getDirTree` 返回 `dtId`(新实体已无 `id`),树 key/taskKey 用 `dtId`,回退 `id`。
+- 媒体详情:`GET /eds/media/getMediaDetail/{cid}/{mediaType}?suffixName&page&limit`,`mediaType` 传编码 `02/03/04/99`;图片页不再调旧 `pictureClassificationQuery`,统一 `getMediaDetail` + `suffixName=全部`。
+- 响应按 `records/total` 规范;聊天按 `sendDate/week/chatMsgDOList`;短信/通话按 `day/data`。
+- `socialRelationship`、`group/memberMsg*` 请求体改用新 `EdsDetailQuery` / `EdsGroupMessageQuery`。
+- 下载走 `GET /eds/materialInfo/downloadFile?edsPath=`(需 x-token,blob 下载);媒体直接用完整 `mediaPath/mediaSmallPath`。
+
+## 三、接入新数据管理页
+
+修改 `src/case/views/data/index.vue`:
+1. `src/case/api/govern/types/dto.ts` 的 `GovernTree` 增加 `edsCollectTargetId?: ApiText`。
+2. 新增 `activeEdsCollectTargetId`;`fetchByTreeSelection` 最前面判断 `isEdsTreeNode(node)`:设置 `activeNode/activeNodeType`、`activeNodeLevel=0`、`activeEdsCollectTargetId = node.edsCollectTargetId ?? node.tableNameEn`,直接返回,不再请求治理表。
+3. 非 EDS 节点清空 `activeEdsCollectTargetId`,走原逻辑;`clearTableState` 同步清空。
+4. 初始自动选中(`fetchTreeData`)与刷新回退分支改走 `fetchByTreeSelection`,保证首节点是 EDS 时也能进入 EDS 模式。
+5. 右侧 `v-if="activeEdsCollectTargetId"` 渲染 `<EdsPackageBrowser :collect-target-id="..." :package-name="activeNode?.tableNameCn" />`,`v-else` 保留原治理表面板;EDS 模式下隐藏治理表的自定义查询/表格设置。
+
+## 四、组件与风格约束
+
+- 只用新项目基础组件:`BasicTree`、`BasicTable`/`useTable`、`BasicModal`/`useModal`、`BasicForm`/`useForm`、`EmptyState`、`AnalysisPagination`,以及 Ant Design Vue 的 `Descriptions`、`Image`、`Collapse`、`Radio.Button`、`RangePicker` 等。
+- `EdsRecordTable.vue` 基于 `BasicTable` + `useTable`,`fetchSetting={pageField:'page',sizeField:'limit',listField:'records',totalField:'total'}`,默认每页 50,暴露 `reload`。
+- `EdsConversationViewer.vue` 保留旧行为:搜索表单、内容类型 Tab、按天分组、文本/图片/音频/视频/其他、本人消息右对齐、已读/已删除标记、关键词高亮、`chatId` 定位;音视频用原生标签。
+- 样式用 Less + `useDesign('eds-browser')`,沿用数据页 token:白底、`1px solid #e2e8f0`、`12px` 圆角、标题 `15px/600 #111827`、说明 `12px #6b7280`、表头 `#f8fafc`。
+- 图标用 `@ant-design/icons-vue`/UnoCSS,不用旧 iconfont;不新增 npm 依赖。
+
+## 五、明确不做 / 已确认偏差
+
+- 不做:被采集人编辑(`/case_obj/xgeds` 不存在)、Excel 导出(`dataScope` 未迁移)、图片分类服务、`bankTrade`/`edsGroupList`/社会关系独立页、旧前端没有的 systemTrace 新节点页面。
+- 无对应组件的节点保留旧行为:`EmptyState`「请从左侧选择数据进行查看」。
+- 通讯录号码「联系记录」弹窗:旧 `/dm/viewCallRecord` 不存在,改用 `POST /eds/callSms/callAndSmsDetail`(电话方向 + `contactAccountType='0000000-CAL'`)渲染通话明细表。
+- 分页统一 `page/limit`,默认每页 50;聊天内容仍按旧逻辑展示。
+
+## 六、验证
+
+1. `cd ai-electron/frontend && pnpm type:check` 无新错误。
+2. `pnpm lint:eslint -- src/eds src/case/views/data/index.vue` 通过。
+3. `pnpm build` 通过。
+4. 运行时(后端 8980 + 前端 3100,登录并打开含 EDS 数据包的案件):点击手机图标节点 → 内层目录树显示 `总数/删除数`;逐项验证案件信息、账号/应用/操作记录、即时通信 6 类、短信/通话、邮件、媒体预览与下载、网络共享、社交应用、群红包、数据统计 8 个 TOP10 及下钻、地理、输入法、系统痕迹;无组件节点显示空状态;切回普通治理节点右侧恢复正常;切换/刷新数据包不串数据。
+5. 全局搜索确认新模块无 `/electronic/`、`x-custom-header`、`current/size`、旧 iconfont 引用。

BIN
gui-test-screenshots/button-radius-crop.png


BIN
gui-test-screenshots/button-radius.png


BIN
gui-test-screenshots/charset-01-gallery.png


BIN
gui-test-screenshots/charset-02-tooltip.png


BIN
gui-test-screenshots/hover-01-gallery.png


BIN
gui-test-screenshots/hover-02-tooltip.png


BIN
gui-test-screenshots/import-select-expanded.png


BIN
gui-test-screenshots/import-select-files.png


BIN
gui-test-screenshots/other-01-gallery.png


BIN
gui-test-screenshots/page-size-dropdown.png


BIN
gui-test-screenshots/pagination-footer.png


BIN
gui-test-screenshots/screen-initial.png


BIN
gui-test-screenshots/ui-01-data-page.png


BIN
gui-test-screenshots/ui-charset-01-upload.png


BIN
gui-test-screenshots/ui-charset-02-catalog.png


BIN
gui-test-screenshots/ui-edge-01-data.png


BIN
gui-test-screenshots/ui-edge-02-case-open.png


BIN
gui-test-screenshots/ui-edge-03-type-dialog.png


BIN
gui-test-screenshots/ui-edge-04-upload-page.png


BIN
gui-test-screenshots/ui-edge-05-uploading.png


BIN
gui-test-screenshots/ui-edge-07-data-two-packages.png


BIN
gui-test-screenshots/ui-edge-08-upload-result.png


BIN
gui-test-screenshots/ui-edge-09-data-tree.png


BIN
gui-test-screenshots/ui-edge-10-duplicate.png


BIN
gui-test-screenshots/ui-edge-11-nonzip.png


BIN
gui-test-screenshots/ui-edge-12-eds-catalog.png


BIN
gui-test-screenshots/ui-fix-01-upload.png


BIN
gui-test-screenshots/ui-fix-02-catalog.png


BIN
gui-test-screenshots/upload-overall-progress.png


BIN
gui-test-screenshots/upload-single-progress.png