refactor: 优化importEntityBatch方法签名

- 修改返回值类型从void改为int,与项目其他批量方法保持一致
- 更新JavaDoc注释,描述行为而不是实现细节
- 在XML中添加importEntityBatch的完整实现
- 使用ON DUPLICATE KEY UPDATE实现存在则更新,不存在则插入的功能

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
wkc
2026-02-08 16:18:30 +08:00
parent 894e376c9e
commit 161b2c880f
2 changed files with 47 additions and 3 deletions

View File

@@ -25,12 +25,12 @@ public interface CcdiEnterpriseBaseInfoMapper extends BaseMapper<CcdiEnterpriseB
int insertBatch(List<CcdiEnterpriseBaseInfo> list);
/**
* 批量导入实体中介数据(使用ON DUPLICATE KEY UPDATE)
* 批量导入实体中介数据(存在则更新,不存在则插入)
*
* @param list 实体中介列表
* @return 无返回值
* @return 影响行数
*/
void importEntityBatch(@Param("list") List<CcdiEnterpriseBaseInfo> list);
int importEntityBatch(@Param("list") List<CcdiEnterpriseBaseInfo> list);
/**
* 批量更新实体中介