8OOOOOOOOD

Results 3 comments of 8OOOOOOOOD

> A与B1和B2进行转换,怎么会报错 `AToBMapperImpl`,B是哪里来了 B就是一个名字, B1、B2的名字都是B(所在模块不同)。M1模块依赖M2模块, 只生成了M1模块中的B的AToBMapperImpl。

> 贴下所有类的代码 ![image](https://github.com/linpeilie/mapstruct-plus/assets/55775562/045697b8-7111-4eb1-ae2c-5424cf5fafa9) ![image](https://github.com/linpeilie/mapstruct-plus/assets/55775562/14d74b00-24a1-4b7b-800b-9ea3c3852d4d) ProjectResult都是同一个。 使用时报错: ![image](https://github.com/linpeilie/mapstruct-plus/assets/55775562/23de4e15-8568-4843-9050-72282cf6d512) ``` io.github.linpeilie.ConvertException: cannot find converter from ProjectResult to ProjectResultVO ``` 只生成了teaching模块中类的mapper ![image](https://github.com/linpeilie/mapstruct-plus/assets/55775562/3439fead-39dc-435d-ba93-856609b298f0) 加了config后: ![image](https://github.com/linpeilie/mapstruct-plus/assets/55775562/8f6a954e-df03-4e82-82ff-d9e307e1d847) 启动报错: ``` Annotation-specified bean name 'projectResultToProjectResultVOMapperImpl' for bean class...

![image](https://github.com/user-attachments/assets/597b13c1-d798-4e21-a092-e6e295d652b2) 使用这样的数据时(id=null), 保存成功, 返回2, 正确 ![image](https://github.com/user-attachments/assets/0f1cf690-f74c-4557-b24d-c545d941cb77) 但是用这样的数据(id=null), 数据保存也成功(id都回显了), 但是返回0 ![image](https://github.com/user-attachments/assets/e0de7c28-41d4-483b-8786-7f0b29e956d9) 这样, 3条数据保存成功, 但是返回1, 不对 ![image](https://github.com/user-attachments/assets/467e738d-b7c1-4598-9d4a-2075c1af9c08) 这样, 3条数据保存成功, 也返回1, 不对 ![image](https://github.com/user-attachments/assets/da537e35-bd85-4047-a16f-e07d812acb69) 这样, 3条数据保存成功, 返回0, 不对 数据库如图: ![image](https://github.com/user-attachments/assets/958e4197-d467-4c73-bb66-b00e69637914) 实体类: ![image](https://github.com/user-attachments/assets/32f3ce31-3657-4920-bc5c-124be23a61fa) 使用insertBatch方法没有这个问题