Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
appbuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
appbuild
Commits
da9c3b16
Commit
da9c3b16
authored
1 year ago
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加apipost生成接口文档逻辑
parent
4fdec01a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9265 additions
and
9500 deletions
+9265
-9500
appbuild-manage-ui/admin/yarn.lock
appbuild-manage-ui/admin/yarn.lock
+9242
-9499
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableColumnEntity.java
.../xhx/base/system/gentable/model/GentableColumnEntity.java
+23
-1
No files found.
appbuild-manage-ui/admin/yarn.lock
View file @
da9c3b16
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableColumnEntity.java
View file @
da9c3b16
package
com.mortals.xhx.base.system.gentable.model
;
package
com.mortals.xhx.base.system.gentable.model
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.common.utils.StringUtils
;
import
com.mortals.xhx.common.utils.StringUtils
;
...
@@ -604,6 +606,26 @@ public class GentableColumnEntity extends GentableColumnEntityExt {
...
@@ -604,6 +606,26 @@ public class GentableColumnEntity extends GentableColumnEntityExt {
}
}
StringBuffer
sb
=
new
StringBuffer
();
StringBuffer
sb
=
new
StringBuffer
();
if
(
StringUtils
.
isNotEmpty
(
remarks
))
{
if
(
StringUtils
.
isNotEmpty
(
remarks
))
{
// 可能的分隔符列表
String
[]
possibleDelimiters
=
{
","
,
","
};
// 尝试不同的分隔符进行拆分
for
(
String
delimiter
:
possibleDelimiters
)
{
List
<
String
>
result
=
StrUtil
.
split
(
remarks
,
delimiter
);
if
(
result
.
size
()
>
1
)
{
System
.
out
.
println
(
"使用分隔符 '"
+
delimiter
+
"' 拆分后的结果:"
);
for
(
String
value
:
result
)
{
int
point
=
value
.
indexOf
(
"."
);
if
(
point
!=
-
1
)
{
Object
startStr
=
value
.
subSequence
(
0
,
point
);
String
endStr
=
value
.
substring
(
point
+
1
);
sb
.
append
(
""
).
append
(
startStr
).
append
(
"="
).
append
(
endStr
).
append
(
","
);
}
}
break
;
}
}
/*
for (String value : remarks.split(",")) {
for (String value : remarks.split(",")) {
if (StringUtils.isNotEmpty(value)) {
if (StringUtils.isNotEmpty(value)) {
int point = value.indexOf(".");
int point = value.indexOf(".");
...
@@ -613,7 +635,7 @@ public class GentableColumnEntity extends GentableColumnEntityExt {
...
@@ -613,7 +635,7 @@ public class GentableColumnEntity extends GentableColumnEntityExt {
sb.append("").append(startStr).append("=").append(endStr).append(",");
sb.append("").append(startStr).append("=").append(endStr).append(",");
}
}
}
}
}
}
*/
return
sb
.
deleteCharAt
(
sb
.
length
()
-
1
).
toString
();
return
sb
.
deleteCharAt
(
sb
.
length
()
-
1
).
toString
();
}
else
{
}
else
{
return
this
.
columnComment
;
return
this
.
columnComment
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment