Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maintain_service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘帅
maintain_service
Commits
75012169
You need to sign in or sign up before continuing.
Commit
75012169
authored
Nov 04, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.数据库说明书生成依赖引入
parent
f367bb41
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
1 deletion
+108
-1
screw-core-1.0.5.jar
maintain-admin/lib/screw-core-1.0.5.jar
+0
-0
pom.xml
maintain-admin/pom.xml
+18
-0
ExportMysql.java
...ava/com/maintain/web/controller/business/ExportMysql.java
+86
-0
application-prod.yml
maintain-admin/src/main/resources/application-prod.yml
+1
-1
ErpSettlementMaintainServiceImpl.java
...siness/service/impl/ErpSettlementMaintainServiceImpl.java
+3
-0
No files found.
maintain-admin/lib/screw-core-1.0.5.jar
0 → 100644
View file @
75012169
File added
maintain-admin/pom.xml
View file @
75012169
...
@@ -109,6 +109,24 @@
...
@@ -109,6 +109,24 @@
<!-- <version>${与你的agent探针版本保持一致}</version>-->
<!-- <version>${与你的agent探针版本保持一致}</version>-->
<!-- </dependency>-->
<!-- </dependency>-->
<!--数据库说明书-->
<!-- https://mvnrepository.com/artifact/cn.smallbun.screw/screw-core -->
<dependency>
<groupId>
cn.smallbun.screw
</groupId>
<artifactId>
screw-core
</artifactId>
<version>
1.0.5
</version>
<scope>
system
</scope>
<systemPath>
${project.basedir}/lib/screw-core-1.0.5.jar
</systemPath>
</dependency>
<!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP -->
<dependency>
<groupId>
com.zaxxer
</groupId>
<artifactId>
HikariCP
</artifactId>
<version>
3.4.5
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
maintain-admin/src/main/java/com/maintain/web/controller/business/ExportMysql.java
0 → 100644
View file @
75012169
package
com
.
maintain
.
web
.
controller
.
business
;
import
cn.smallbun.screw.core.Configuration
;
import
cn.smallbun.screw.core.engine.EngineConfig
;
import
cn.smallbun.screw.core.engine.EngineFileType
;
import
cn.smallbun.screw.core.engine.EngineTemplateType
;
import
cn.smallbun.screw.core.execute.DocumentationExecute
;
import
cn.smallbun.screw.core.process.ProcessConfig
;
import
com.zaxxer.hikari.HikariConfig
;
import
com.zaxxer.hikari.HikariDataSource
;
import
java.util.ArrayList
;
/**
* 数据库说明书
*/
public
class
ExportMysql
{
public
static
void
main
(
String
[]
args
)
{
//数据源
HikariConfig
hikariConfig
=
new
HikariConfig
();
hikariConfig
.
setDriverClassName
(
"com.mysql.cj.jdbc.Driver"
);
hikariConfig
.
setJdbcUrl
(
"jdbc:mysql://rm-hp3340490n5mw72tcto.mysql.huhehaote.rds.aliyuncs.com:3306/tianmaiweixiu_db?currentSchema=single"
);
hikariConfig
.
setUsername
(
"tianmaiweixiu"
);
hikariConfig
.
setPassword
(
"7HTx9s@2wcbTQ@r1"
);
//设置可以获取tables remarks信息
hikariConfig
.
setMinimumIdle
(
2
);
hikariConfig
.
setMaximumPoolSize
(
5
);
HikariDataSource
dataSource
=
new
HikariDataSource
(
hikariConfig
);
//生成配置
EngineConfig
engineConfig
=
EngineConfig
.
builder
()
//生成文件路径
.
fileOutputDir
(
"C:\\Users\\admin\\Desktop"
)
//打开目录
.
openOutputDir
(
true
)
//文件类型
.
fileType
(
EngineFileType
.
WORD
)
//生成模板实现
.
produceType
(
EngineTemplateType
.
freemarker
)
//自定义文件名称
.
fileName
(
"维修管理系统数据库说明书"
).
build
();
//忽略表
ArrayList
<
String
>
ignoreTableName
=
new
ArrayList
<>();
// ignoreTableName.add("sys_config");
// ignoreTableName.add("sys_user");
//忽略表前缀
ArrayList
<
String
>
ignorePrefix
=
new
ArrayList
<>();
// ignorePrefix.add("test_");
//忽略表后缀
ArrayList
<
String
>
ignoreSuffix
=
new
ArrayList
<>();
// ignoreSuffix.add("_test");
ProcessConfig
processConfig
=
ProcessConfig
.
builder
()
//指定生成逻辑、当存在指定表、指定表前缀、指定表后缀时,将生成指定表,其余表不生成、并跳过忽略表配置
//根据名称指定表生成
.
designatedTableName
(
new
ArrayList
<>())
//根据表前缀生成
.
designatedTablePrefix
(
new
ArrayList
<>())
//根据表后缀生成
.
designatedTableSuffix
(
new
ArrayList
<>())
//忽略表名
.
ignoreTableName
(
ignoreTableName
)
//忽略表前缀
.
ignoreTablePrefix
(
ignorePrefix
)
//忽略表后缀
.
ignoreTableSuffix
(
ignoreSuffix
).
build
();
//配置
Configuration
config
=
Configuration
.
builder
()
//版本
.
version
(
"1.0.0"
)
//描述
.
description
(
"数据库设计文档生成"
)
//数据源
.
dataSource
(
dataSource
)
//生成配置
.
engineConfig
(
engineConfig
)
//生成配置
.
produceConfig
(
processConfig
)
.
build
();
//执行生成
new
DocumentationExecute
(
config
).
execute
();
}
}
maintain-admin/src/main/resources/application-prod.yml
View file @
75012169
...
@@ -187,6 +187,6 @@ pay:
...
@@ -187,6 +187,6 @@ pay:
appid
:
8a81c1bd96cf23aa0199cc0a8dcb187c
appid
:
8a81c1bd96cf23aa0199cc0a8dcb187c
appkey
:
02c4bc73faaf46c89e0c620345a11aec
appkey
:
02c4bc73faaf46c89e0c620345a11aec
url
:
https://api-mop.chinaums.com/v6/poslink/transaction/pay
url
:
https://api-mop.chinaums.com/v6/poslink/transaction/pay
merchantCode
:
123456789111115
merchantCode
:
898440300005398
deviceType
:
11
deviceType
:
11
payMode
:
CODE_SCAN
payMode
:
CODE_SCAN
maintain-business/src/main/java/com/maintain/business/service/impl/ErpSettlementMaintainServiceImpl.java
View file @
75012169
...
@@ -253,6 +253,9 @@ public class ErpSettlementMaintainServiceImpl implements IErpSettlementMaintainS
...
@@ -253,6 +253,9 @@ public class ErpSettlementMaintainServiceImpl implements IErpSettlementMaintainS
// 生成一个时间戳单号
// 生成一个时间戳单号
String
orderNo
=
String
.
valueOf
(
System
.
currentTimeMillis
());
String
orderNo
=
String
.
valueOf
(
System
.
currentTimeMillis
());
int
money
=
maintain
.
getPracticalMoney
().
movePointRight
(
2
).
intValue
();
int
money
=
maintain
.
getPracticalMoney
().
movePointRight
(
2
).
intValue
();
if
(
money
==
0
)
{
throw
new
ServiceException
(
"结算单金额为0,无需支付!"
);
}
PayResponse
response
=
yinLianPayApi
.
pay
(
orderNo
,
money
,
bo
.
getPaymentAccount
(),
sysDept
.
getTerminalCode
());
PayResponse
response
=
yinLianPayApi
.
pay
(
orderNo
,
money
,
bo
.
getPaymentAccount
(),
sysDept
.
getTerminalCode
());
if
(!
response
.
getErrCode
().
equals
(
"00"
))
{
if
(!
response
.
getErrCode
().
equals
(
"00"
))
{
throw
new
ServiceException
(
"结算单支付失败:"
+
response
.
getErrInfo
());
throw
new
ServiceException
(
"结算单支付失败:"
+
response
.
getErrInfo
());
...
...
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