Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
s_guodong
gjjs-bd-common
Commits
5dbe09f0
Commit
5dbe09f0
authored
Jun 05, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update运行时
parent
f2150d88
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletions
+48
-1
Sysmod.java
...src/main/java/com/ceb/gjjs/mda/manager/module/Sysmod.java
+1
-1
CacheOption.java
...main/java/com/brilliance/mda/runtime/mda/CacheOption.java
+29
-0
MdaUtils.java
...in/java/com/brilliance/mda/runtime/mda/util/MdaUtils.java
+18
-0
No files found.
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/manager/module/Sysmod.java
View file @
5dbe09f0
...
...
@@ -1968,7 +1968,7 @@ public class Sysmod extends AbstractModule{
this
.
getDztlog
().
setOwnref
(
ownref
);
//业务申请号
this
.
getDztlog
().
setLsh
(
""
);
this
.
getDztlog
().
setSta
(
"0"
);
//状态
//this.getDztlog().setOprdet( Platform
.getServerName());
this
.
getDztlog
().
setOprdet
(
MdaUtils
.
getServerName
());
if
(
MdaUtils
.
isEmpty
(
this
.
getDztlog
().
getOwnref
()))
{
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/CacheOption.java
0 → 100644
View file @
5dbe09f0
package
com
.
brilliance
.
mda
.
runtime
.
mda
;
import
java.net.InetAddress
;
/**
* @Description
* @Author s_guodong
* @Date 2023/6/5
*/
public
class
CacheOption
{
public
long
cacheTimeout
;
public
boolean
paging
;
public
CacheOption
(
long
cacheTimeout
)
{
this
(
cacheTimeout
,
false
);
}
public
CacheOption
(
boolean
paging
)
{
this
(
0L
,
paging
);
}
public
CacheOption
(
long
cacheTimeout
,
boolean
paging
)
{
this
.
cacheTimeout
=
cacheTimeout
;
this
.
paging
=
paging
;
}
}
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/util/MdaUtils.java
View file @
5dbe09f0
...
...
@@ -22,10 +22,13 @@ import org.apache.poi.ss.usermodel.*;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.StringUtils
;
import
java.io.*
;
import
java.math.BigDecimal
;
import
java.net.InetAddress
;
import
java.net.URLEncoder
;
import
java.net.UnknownHostException
;
import
java.nio.charset.Charset
;
import
java.sql.Timestamp
;
import
java.text.DecimalFormat
;
...
...
@@ -1542,4 +1545,19 @@ public class MdaUtils {
return
true
;
}
public
static
String
getServerName
()
{
InetAddress
addr
=
null
;
try
{
addr
=
InetAddress
.
getLocalHost
();
}
catch
(
UnknownHostException
e
)
{
}
String
hostAddr
=
addr
.
getHostAddress
();
// 获取IP地址
String
hostName
=
addr
.
getHostName
();
// 获取本地机器名
if
(
StringUtils
.
isEmpty
(
hostName
))
{
return
hostAddr
;
}
return
hostName
;
}
}
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