Skip to content

Commit be2e582

Browse files
author
ChaiQS
committed
修正mapper.xml生成时modulePath不正确问题
1 parent 6c24046 commit be2e582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/sjhy/plugin/tool/ModuleUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static VirtualFile getModuleDir(@NotNull Module module) {
3636
String modulePath = ModuleUtil.getModuleDirPath(module);
3737
int index = modulePath.indexOf(".idea");
3838
if (index > 0) {
39-
modulePath = modulePath.substring(0, index - 1);
39+
modulePath = modulePath.replace(".idea/modules/","");
4040
}
4141
return VirtualFileManager.getInstance().findFileByUrl(String.format("file://%s", modulePath));
4242
}

0 commit comments

Comments
 (0)