Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
admin
Project
Project
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
曲欣亮
admin
Commits
c9a5aceb
Commit
c9a5aceb
authored
Aug 06, 2018
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加对象
parent
5ea30485
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1409 additions
and
1 deletion
+1409
-1
TBanner.java
src/main/java/com/egolm/admin/pojo/TBanner.java
+191
-0
TComponent.java
src/main/java/com/egolm/admin/pojo/TComponent.java
+227
-0
TIcon.java
src/main/java/com/egolm/admin/pojo/TIcon.java
+106
-0
TIconGroup.java
src/main/java/com/egolm/admin/pojo/TIconGroup.java
+143
-0
TLinkList.java
src/main/java/com/egolm/admin/pojo/TLinkList.java
+167
-0
TPlatformLayout.java
src/main/java/com/egolm/admin/pojo/TPlatformLayout.java
+203
-0
TPlatformTheme.java
src/main/java/com/egolm/admin/pojo/TPlatformTheme.java
+215
-0
DB.java
src/main/java/com/egolm/admin/util/DB.java
+156
-0
application-dev.properties
src/main/resources/application-dev.properties
+1
-1
No files found.
src/main/java/com/egolm/admin/pojo/TBanner.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
pojo
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
* @since 2018-08-06
* @version v-1.0
*/
@Entity
(
name
=
"tBanner"
)
public
class
TBanner
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
sCreateUser
;
private
String
sTitle
;
private
Date
dUpdateDate
;
private
String
sLinkPath
;
private
String
sOrgList
;
@Id
private
Integer
nItem
;
private
Date
dCreateDate
;
private
String
sImagePath
;
private
Date
dLastUpdateTime
;
private
String
sLinkType
;
private
Integer
nIdx
;
private
String
sUpdateUser
;
private
Integer
nTag
;
/**
* 无参数构造方法
*/
public
TBanner
()
{
super
();
}
/**
* 全参数构造方法
* @param sCreateUser
* @param sTitle
* @param dUpdateDate
* @param sLinkPath
* @param sOrgList
* @param nItem
* @param dCreateDate
* @param sImagePath
* @param dLastUpdateTime
* @param sLinkType
* @param nIdx
* @param sUpdateUser
* @param nTag
*/
public
TBanner
(
String
sCreateUser
,
String
sTitle
,
Date
dUpdateDate
,
String
sLinkPath
,
String
sOrgList
,
Integer
nItem
,
Date
dCreateDate
,
String
sImagePath
,
Date
dLastUpdateTime
,
String
sLinkType
,
Integer
nIdx
,
String
sUpdateUser
,
Integer
nTag
)
{
this
.
sCreateUser
=
sCreateUser
;
this
.
sTitle
=
sTitle
;
this
.
dUpdateDate
=
dUpdateDate
;
this
.
sLinkPath
=
sLinkPath
;
this
.
sOrgList
=
sOrgList
;
this
.
nItem
=
nItem
;
this
.
dCreateDate
=
dCreateDate
;
this
.
sImagePath
=
sImagePath
;
this
.
dLastUpdateTime
=
dLastUpdateTime
;
this
.
sLinkType
=
sLinkType
;
this
.
nIdx
=
nIdx
;
this
.
sUpdateUser
=
sUpdateUser
;
this
.
nTag
=
nTag
;
}
public
void
setsCreateUser
(
String
sCreateUser
)
{
this
.
sCreateUser
=
sCreateUser
;
}
public
String
getsCreateUser
()
{
return
sCreateUser
;
}
public
void
setsTitle
(
String
sTitle
)
{
this
.
sTitle
=
sTitle
;
}
public
String
getsTitle
()
{
return
sTitle
;
}
public
void
setdUpdateDate
(
Date
dUpdateDate
)
{
this
.
dUpdateDate
=
dUpdateDate
;
}
public
Date
getdUpdateDate
()
{
return
dUpdateDate
;
}
public
void
setsLinkPath
(
String
sLinkPath
)
{
this
.
sLinkPath
=
sLinkPath
;
}
public
String
getsLinkPath
()
{
return
sLinkPath
;
}
public
void
setsOrgList
(
String
sOrgList
)
{
this
.
sOrgList
=
sOrgList
;
}
public
String
getsOrgList
()
{
return
sOrgList
;
}
public
void
setnItem
(
Integer
nItem
)
{
this
.
nItem
=
nItem
;
}
public
Integer
getnItem
()
{
return
nItem
;
}
public
void
setdCreateDate
(
Date
dCreateDate
)
{
this
.
dCreateDate
=
dCreateDate
;
}
public
Date
getdCreateDate
()
{
return
dCreateDate
;
}
public
void
setsImagePath
(
String
sImagePath
)
{
this
.
sImagePath
=
sImagePath
;
}
public
String
getsImagePath
()
{
return
sImagePath
;
}
public
void
setdLastUpdateTime
(
Date
dLastUpdateTime
)
{
this
.
dLastUpdateTime
=
dLastUpdateTime
;
}
public
Date
getdLastUpdateTime
()
{
return
dLastUpdateTime
;
}
public
void
setsLinkType
(
String
sLinkType
)
{
this
.
sLinkType
=
sLinkType
;
}
public
String
getsLinkType
()
{
return
sLinkType
;
}
public
void
setnIdx
(
Integer
nIdx
)
{
this
.
nIdx
=
nIdx
;
}
public
Integer
getnIdx
()
{
return
nIdx
;
}
public
void
setsUpdateUser
(
String
sUpdateUser
)
{
this
.
sUpdateUser
=
sUpdateUser
;
}
public
String
getsUpdateUser
()
{
return
sUpdateUser
;
}
public
void
setnTag
(
Integer
nTag
)
{
this
.
nTag
=
nTag
;
}
public
Integer
getnTag
()
{
return
nTag
;
}
}
src/main/java/com/egolm/admin/pojo/TComponent.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
pojo
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
* @since 2018-08-06
* @version v-1.0
*/
@Entity
(
name
=
"tComponent"
)
public
class
TComponent
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
sCompParams
;
private
Date
dUpdateDate
;
private
String
sCompTypeID
;
private
String
sCreateUser
;
private
String
sCaption
;
private
String
sCompPath
;
@Id
private
Integer
nCompID
;
private
String
sMemo
;
private
String
sCompType
;
private
Date
dCreateDate
;
private
String
sCompName
;
private
Date
dLastUpdateTime
;
private
String
sCompNO
;
private
Integer
nTag
;
private
String
sUpdateUser
;
private
String
sCompSnapPath
;
/**
* 无参数构造方法
*/
public
TComponent
()
{
super
();
}
/**
* 全参数构造方法
* @param sCompParams
* @param dUpdateDate
* @param sCompTypeID
* @param sCreateUser
* @param sCaption
* @param sCompPath
* @param nCompID
* @param sMemo
* @param sCompType
* @param dCreateDate
* @param sCompName
* @param dLastUpdateTime
* @param sCompNO
* @param nTag
* @param sUpdateUser
* @param sCompSnapPath
*/
public
TComponent
(
String
sCompParams
,
Date
dUpdateDate
,
String
sCompTypeID
,
String
sCreateUser
,
String
sCaption
,
String
sCompPath
,
Integer
nCompID
,
String
sMemo
,
String
sCompType
,
Date
dCreateDate
,
String
sCompName
,
Date
dLastUpdateTime
,
String
sCompNO
,
Integer
nTag
,
String
sUpdateUser
,
String
sCompSnapPath
)
{
this
.
sCompParams
=
sCompParams
;
this
.
dUpdateDate
=
dUpdateDate
;
this
.
sCompTypeID
=
sCompTypeID
;
this
.
sCreateUser
=
sCreateUser
;
this
.
sCaption
=
sCaption
;
this
.
sCompPath
=
sCompPath
;
this
.
nCompID
=
nCompID
;
this
.
sMemo
=
sMemo
;
this
.
sCompType
=
sCompType
;
this
.
dCreateDate
=
dCreateDate
;
this
.
sCompName
=
sCompName
;
this
.
dLastUpdateTime
=
dLastUpdateTime
;
this
.
sCompNO
=
sCompNO
;
this
.
nTag
=
nTag
;
this
.
sUpdateUser
=
sUpdateUser
;
this
.
sCompSnapPath
=
sCompSnapPath
;
}
public
void
setsCompParams
(
String
sCompParams
)
{
this
.
sCompParams
=
sCompParams
;
}
public
String
getsCompParams
()
{
return
sCompParams
;
}
public
void
setdUpdateDate
(
Date
dUpdateDate
)
{
this
.
dUpdateDate
=
dUpdateDate
;
}
public
Date
getdUpdateDate
()
{
return
dUpdateDate
;
}
public
void
setsCompTypeID
(
String
sCompTypeID
)
{
this
.
sCompTypeID
=
sCompTypeID
;
}
public
String
getsCompTypeID
()
{
return
sCompTypeID
;
}
public
void
setsCreateUser
(
String
sCreateUser
)
{
this
.
sCreateUser
=
sCreateUser
;
}
public
String
getsCreateUser
()
{
return
sCreateUser
;
}
public
void
setsCaption
(
String
sCaption
)
{
this
.
sCaption
=
sCaption
;
}
public
String
getsCaption
()
{
return
sCaption
;
}
public
void
setsCompPath
(
String
sCompPath
)
{
this
.
sCompPath
=
sCompPath
;
}
public
String
getsCompPath
()
{
return
sCompPath
;
}
public
void
setnCompID
(
Integer
nCompID
)
{
this
.
nCompID
=
nCompID
;
}
public
Integer
getnCompID
()
{
return
nCompID
;
}
public
void
setsMemo
(
String
sMemo
)
{
this
.
sMemo
=
sMemo
;
}
public
String
getsMemo
()
{
return
sMemo
;
}
public
void
setsCompType
(
String
sCompType
)
{
this
.
sCompType
=
sCompType
;
}
public
String
getsCompType
()
{
return
sCompType
;
}
public
void
setdCreateDate
(
Date
dCreateDate
)
{
this
.
dCreateDate
=
dCreateDate
;
}
public
Date
getdCreateDate
()
{
return
dCreateDate
;
}
public
void
setsCompName
(
String
sCompName
)
{
this
.
sCompName
=
sCompName
;
}
public
String
getsCompName
()
{
return
sCompName
;
}
public
void
setdLastUpdateTime
(
Date
dLastUpdateTime
)
{
this
.
dLastUpdateTime
=
dLastUpdateTime
;
}
public
Date
getdLastUpdateTime
()
{
return
dLastUpdateTime
;
}
public
void
setsCompNO
(
String
sCompNO
)
{
this
.
sCompNO
=
sCompNO
;
}
public
String
getsCompNO
()
{
return
sCompNO
;
}
public
void
setnTag
(
Integer
nTag
)
{
this
.
nTag
=
nTag
;
}
public
Integer
getnTag
()
{
return
nTag
;
}
public
void
setsUpdateUser
(
String
sUpdateUser
)
{
this
.
sUpdateUser
=
sUpdateUser
;
}
public
String
getsUpdateUser
()
{
return
sUpdateUser
;
}
public
void
setsCompSnapPath
(
String
sCompSnapPath
)
{
this
.
sCompSnapPath
=
sCompSnapPath
;
}
public
String
getsCompSnapPath
()
{
return
sCompSnapPath
;
}
}
src/main/java/com/egolm/admin/pojo/TIcon.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
pojo
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
* @since 2018-08-06
* @version v-1.0
*/
@Entity
(
name
=
"tIcon"
)
public
class
TIcon
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
sIconPath
;
private
String
sDefaultLink
;
@Id
private
String
sGroupNO
;
private
String
sDefaultTxt
;
private
String
sDefaultLinkType
;
@Id
private
String
sIconNO
;
/**
* 无参数构造方法
*/
public
TIcon
()
{
super
();
}
/**
* 全参数构造方法
* @param sIconPath
* @param sDefaultLink
* @param sGroupNO
* @param sDefaultTxt
* @param sDefaultLinkType
* @param sIconNO
*/
public
TIcon
(
String
sIconPath
,
String
sDefaultLink
,
String
sGroupNO
,
String
sDefaultTxt
,
String
sDefaultLinkType
,
String
sIconNO
)
{
this
.
sIconPath
=
sIconPath
;
this
.
sDefaultLink
=
sDefaultLink
;
this
.
sGroupNO
=
sGroupNO
;
this
.
sDefaultTxt
=
sDefaultTxt
;
this
.
sDefaultLinkType
=
sDefaultLinkType
;
this
.
sIconNO
=
sIconNO
;
}
public
void
setsIconPath
(
String
sIconPath
)
{
this
.
sIconPath
=
sIconPath
;
}
public
String
getsIconPath
()
{
return
sIconPath
;
}
public
void
setsDefaultLink
(
String
sDefaultLink
)
{
this
.
sDefaultLink
=
sDefaultLink
;
}
public
String
getsDefaultLink
()
{
return
sDefaultLink
;
}
public
void
setsGroupNO
(
String
sGroupNO
)
{
this
.
sGroupNO
=
sGroupNO
;
}
public
String
getsGroupNO
()
{
return
sGroupNO
;
}
public
void
setsDefaultTxt
(
String
sDefaultTxt
)
{
this
.
sDefaultTxt
=
sDefaultTxt
;
}
public
String
getsDefaultTxt
()
{
return
sDefaultTxt
;
}
public
void
setsDefaultLinkType
(
String
sDefaultLinkType
)
{
this
.
sDefaultLinkType
=
sDefaultLinkType
;
}
public
String
getsDefaultLinkType
()
{
return
sDefaultLinkType
;
}
public
void
setsIconNO
(
String
sIconNO
)
{
this
.
sIconNO
=
sIconNO
;
}
public
String
getsIconNO
()
{
return
sIconNO
;
}
}
src/main/java/com/egolm/admin/pojo/TIconGroup.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
pojo
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
* @since 2018-08-06
* @version v-1.0
*/
@Entity
(
name
=
"tIconGroup"
)
public
class
TIconGroup
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
Date
dLastUpdateTime
;
private
String
sCaption
;
private
Date
dCreateDate
;
private
String
sUpdateUser
;
@Id
private
String
sGroupNO
;
private
Integer
nTag
;
private
String
sCreateUser
;
private
String
sGroupName
;
private
Date
dUpdateDate
;
/**
* 无参数构造方法
*/
public
TIconGroup
()
{
super
();
}
/**
* 全参数构造方法
* @param dLastUpdateTime
* @param sCaption
* @param dCreateDate
* @param sUpdateUser
* @param sGroupNO
* @param nTag
* @param sCreateUser
* @param sGroupName
* @param dUpdateDate
*/
public
TIconGroup
(
Date
dLastUpdateTime
,
String
sCaption
,
Date
dCreateDate
,
String
sUpdateUser
,
String
sGroupNO
,
Integer
nTag
,
String
sCreateUser
,
String
sGroupName
,
Date
dUpdateDate
)
{
this
.
dLastUpdateTime
=
dLastUpdateTime
;
this
.
sCaption
=
sCaption
;
this
.
dCreateDate
=
dCreateDate
;
this
.
sUpdateUser
=
sUpdateUser
;
this
.
sGroupNO
=
sGroupNO
;
this
.
nTag
=
nTag
;
this
.
sCreateUser
=
sCreateUser
;
this
.
sGroupName
=
sGroupName
;
this
.
dUpdateDate
=
dUpdateDate
;
}
public
void
setdLastUpdateTime
(
Date
dLastUpdateTime
)
{
this
.
dLastUpdateTime
=
dLastUpdateTime
;
}
public
Date
getdLastUpdateTime
()
{
return
dLastUpdateTime
;
}
public
void
setsCaption
(
String
sCaption
)
{
this
.
sCaption
=
sCaption
;
}
public
String
getsCaption
()
{
return
sCaption
;
}
public
void
setdCreateDate
(
Date
dCreateDate
)
{
this
.
dCreateDate
=
dCreateDate
;
}
public
Date
getdCreateDate
()
{
return
dCreateDate
;
}
public
void
setsUpdateUser
(
String
sUpdateUser
)
{
this
.
sUpdateUser
=
sUpdateUser
;
}
public
String
getsUpdateUser
()
{
return
sUpdateUser
;
}
public
void
setsGroupNO
(
String
sGroupNO
)
{
this
.
sGroupNO
=
sGroupNO
;
}
public
String
getsGroupNO
()
{
return
sGroupNO
;
}
public
void
setnTag
(
Integer
nTag
)
{
this
.
nTag
=
nTag
;
}
public
Integer
getnTag
()
{
return
nTag
;
}
public
void
setsCreateUser
(
String
sCreateUser
)
{
this
.
sCreateUser
=
sCreateUser
;
}
public
String
getsCreateUser
()
{
return
sCreateUser
;
}
public
void
setsGroupName
(
String
sGroupName
)
{
this
.
sGroupName
=
sGroupName
;
}
public
String
getsGroupName
()
{
return
sGroupName
;
}
public
void
setdUpdateDate
(
Date
dUpdateDate
)
{
this
.
dUpdateDate
=
dUpdateDate
;
}
public
Date
getdUpdateDate
()
{
return
dUpdateDate
;
}
}
src/main/java/com/egolm/admin/pojo/TLinkList.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
pojo
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
* @since 2018-08-06
* @version v-1.0
*/
@Entity
(
name
=
"tLinkList"
)
public
class
TLinkList
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
sUpdateUser
;
private
String
sLinkType
;
private
Integer
nTag
;
private
String
sCreateUser
;
@Id
private
String
sLinkNO
;
private
Date
dUpdateDate
;
private
String
sLinkPath
;
private
String
sMemo
;
private
String
sLinkName
;
private
Date
dLastUpdateTime
;
private
Date
dCreateDate
;
/**
* 无参数构造方法
*/
public
TLinkList
()
{
super
();
}
/**
* 全参数构造方法
* @param sUpdateUser
* @param sLinkType
* @param nTag
* @param sCreateUser
* @param sLinkNO
* @param dUpdateDate
* @param sLinkPath
* @param sMemo
* @param sLinkName
* @param dLastUpdateTime
* @param dCreateDate
*/
public
TLinkList
(
String
sUpdateUser
,
String
sLinkType
,
Integer
nTag
,
String
sCreateUser
,
String
sLinkNO
,
Date
dUpdateDate
,
String
sLinkPath
,
String
sMemo
,
String
sLinkName
,
Date
dLastUpdateTime
,
Date
dCreateDate
)
{
this
.
sUpdateUser
=
sUpdateUser
;
this
.
sLinkType
=
sLinkType
;
this
.
nTag
=
nTag
;
this
.
sCreateUser
=
sCreateUser
;
this
.
sLinkNO
=
sLinkNO
;
this
.
dUpdateDate
=
dUpdateDate
;
this
.
sLinkPath
=
sLinkPath
;
this
.
sMemo
=
sMemo
;
this
.
sLinkName
=
sLinkName
;
this
.
dLastUpdateTime
=
dLastUpdateTime
;
this
.
dCreateDate
=
dCreateDate
;
}
public
void
setsUpdateUser
(
String
sUpdateUser
)
{
this
.
sUpdateUser
=
sUpdateUser
;
}
public
String
getsUpdateUser
()
{
return
sUpdateUser
;
}
public
void
setsLinkType
(
String
sLinkType
)
{
this
.
sLinkType
=
sLinkType
;
}
public
String
getsLinkType
()
{
return
sLinkType
;
}
public
void
setnTag
(
Integer
nTag
)
{
this
.
nTag
=
nTag
;
}
public
Integer
getnTag
()
{
return
nTag
;
}
public
void
setsCreateUser
(
String
sCreateUser
)
{
this
.
sCreateUser
=
sCreateUser
;
}
public
String
getsCreateUser
()
{
return
sCreateUser
;
}
public
void
setsLinkNO
(
String
sLinkNO
)
{
this
.
sLinkNO
=
sLinkNO
;
}
public
String
getsLinkNO
()
{
return
sLinkNO
;
}
public
void
setdUpdateDate
(
Date
dUpdateDate
)
{
this
.
dUpdateDate
=
dUpdateDate
;
}
public
Date
getdUpdateDate
()
{
return
dUpdateDate
;
}
public
void
setsLinkPath
(
String
sLinkPath
)
{
this
.
sLinkPath
=
sLinkPath
;
}
public
String
getsLinkPath
()
{
return
sLinkPath
;
}
public
void
setsMemo
(
String
sMemo
)
{
this
.
sMemo
=
sMemo
;
}
public
String
getsMemo
()
{
return
sMemo
;
}
public
void
setsLinkName
(
String
sLinkName
)
{
this
.
sLinkName
=
sLinkName
;
}
public
String
getsLinkName
()
{
return
sLinkName
;
}
public
void
setdLastUpdateTime
(
Date
dLastUpdateTime
)
{
this
.
dLastUpdateTime
=
dLastUpdateTime
;
}
public
Date
getdLastUpdateTime
()
{
return
dLastUpdateTime
;
}
public
void
setdCreateDate
(
Date
dCreateDate
)
{
this
.
dCreateDate
=
dCreateDate
;
}
public
Date
getdCreateDate
()
{
return
dCreateDate
;
}
}
src/main/java/com/egolm/admin/pojo/TPlatformLayout.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
pojo
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
* @since 2018-08-06
* @version v-1.0
*/
@Entity
(
name
=
"tPlatformLayout"
)
public
class
TPlatformLayout
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
Integer
nTag
;
private
String
sLogoPath1
;
private
String
sUpdateUser
;
private
String
sThemeNO
;
private
String
sThemeJson
;
@Id
private
String
sPlatformNO
;
private
String
sCreateUser
;
private
String
sLogoPath2
;
private
Date
dUpdateDate
;
private
String
sLogoPath3
;
private
String
sPlatformName
;
private
Date
dCreateDate
;
private
Date
dLastUpdateTime
;
private
String
sMemo
;
/**
* 无参数构造方法
*/
public
TPlatformLayout
()
{
super
();
}
/**
* 全参数构造方法
* @param nTag
* @param sLogoPath1
* @param sUpdateUser
* @param sThemeNO
* @param sThemeJson
* @param sPlatformNO
* @param sCreateUser
* @param sLogoPath2
* @param dUpdateDate
* @param sLogoPath3
* @param sPlatformName
* @param dCreateDate
* @param dLastUpdateTime
* @param sMemo
*/
public
TPlatformLayout
(
Integer
nTag
,
String
sLogoPath1
,
String
sUpdateUser
,
String
sThemeNO
,
String
sThemeJson
,
String
sPlatformNO
,
String
sCreateUser
,
String
sLogoPath2
,
Date
dUpdateDate
,
String
sLogoPath3
,
String
sPlatformName
,
Date
dCreateDate
,
Date
dLastUpdateTime
,
String
sMemo
)
{
this
.
nTag
=
nTag
;
this
.
sLogoPath1
=
sLogoPath1
;
this
.
sUpdateUser
=
sUpdateUser
;
this
.
sThemeNO
=
sThemeNO
;
this
.
sThemeJson
=
sThemeJson
;
this
.
sPlatformNO
=
sPlatformNO
;
this
.
sCreateUser
=
sCreateUser
;
this
.
sLogoPath2
=
sLogoPath2
;
this
.
dUpdateDate
=
dUpdateDate
;
this
.
sLogoPath3
=
sLogoPath3
;
this
.
sPlatformName
=
sPlatformName
;
this
.
dCreateDate
=
dCreateDate
;
this
.
dLastUpdateTime
=
dLastUpdateTime
;
this
.
sMemo
=
sMemo
;
}
public
void
setnTag
(
Integer
nTag
)
{
this
.
nTag
=
nTag
;
}
public
Integer
getnTag
()
{
return
nTag
;
}
public
void
setsLogoPath1
(
String
sLogoPath1
)
{
this
.
sLogoPath1
=
sLogoPath1
;
}
public
String
getsLogoPath1
()
{
return
sLogoPath1
;
}
public
void
setsUpdateUser
(
String
sUpdateUser
)
{
this
.
sUpdateUser
=
sUpdateUser
;
}
public
String
getsUpdateUser
()
{
return
sUpdateUser
;
}
public
void
setsThemeNO
(
String
sThemeNO
)
{
this
.
sThemeNO
=
sThemeNO
;
}
public
String
getsThemeNO
()
{
return
sThemeNO
;
}
public
void
setsThemeJson
(
String
sThemeJson
)
{
this
.
sThemeJson
=
sThemeJson
;
}
public
String
getsThemeJson
()
{
return
sThemeJson
;
}
public
void
setsPlatformNO
(
String
sPlatformNO
)
{
this
.
sPlatformNO
=
sPlatformNO
;
}
public
String
getsPlatformNO
()
{
return
sPlatformNO
;
}
public
void
setsCreateUser
(
String
sCreateUser
)
{
this
.
sCreateUser
=
sCreateUser
;
}
public
String
getsCreateUser
()
{
return
sCreateUser
;
}
public
void
setsLogoPath2
(
String
sLogoPath2
)
{
this
.
sLogoPath2
=
sLogoPath2
;
}
public
String
getsLogoPath2
()
{
return
sLogoPath2
;
}
public
void
setdUpdateDate
(
Date
dUpdateDate
)
{
this
.
dUpdateDate
=
dUpdateDate
;
}
public
Date
getdUpdateDate
()
{
return
dUpdateDate
;
}
public
void
setsLogoPath3
(
String
sLogoPath3
)
{
this
.
sLogoPath3
=
sLogoPath3
;
}
public
String
getsLogoPath3
()
{
return
sLogoPath3
;
}
public
void
setsPlatformName
(
String
sPlatformName
)
{
this
.
sPlatformName
=
sPlatformName
;
}
public
String
getsPlatformName
()
{
return
sPlatformName
;
}
public
void
setdCreateDate
(
Date
dCreateDate
)
{
this
.
dCreateDate
=
dCreateDate
;
}
public
Date
getdCreateDate
()
{
return
dCreateDate
;
}
public
void
setdLastUpdateTime
(
Date
dLastUpdateTime
)
{
this
.
dLastUpdateTime
=
dLastUpdateTime
;
}
public
Date
getdLastUpdateTime
()
{
return
dLastUpdateTime
;
}
public
void
setsMemo
(
String
sMemo
)
{
this
.
sMemo
=
sMemo
;
}
public
String
getsMemo
()
{
return
sMemo
;
}
}
src/main/java/com/egolm/admin/pojo/TPlatformTheme.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
pojo
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
java.util.Date
;
/**
* @author 曲欣亮
* @since 2018-08-06
* @version v-1.0
*/
@Entity
(
name
=
"tPlatformTheme"
)
public
class
TPlatformTheme
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
sMemo
;
private
Date
dLastUpdateTime
;
private
String
sThemeAuthor
;
private
Date
dCreateDate
;
private
String
sSnapshot1
;
private
String
sSnapshot2
;
@Id
private
String
sThemeNO
;
private
Integer
nTag
;
private
String
sCaption
;
private
String
sUpdateUser
;
private
String
sThemeJson
;
private
String
sThemeName
;
private
String
sCreateUser
;
private
Date
dUpdateDate
;
private
String
sSnapshot3
;
/**
* 无参数构造方法
*/
public
TPlatformTheme
()
{
super
();
}
/**
* 全参数构造方法
* @param sMemo
* @param dLastUpdateTime
* @param sThemeAuthor
* @param dCreateDate
* @param sSnapshot1
* @param sSnapshot2
* @param sThemeNO
* @param nTag
* @param sCaption
* @param sUpdateUser
* @param sThemeJson
* @param sThemeName
* @param sCreateUser
* @param dUpdateDate
* @param sSnapshot3
*/
public
TPlatformTheme
(
String
sMemo
,
Date
dLastUpdateTime
,
String
sThemeAuthor
,
Date
dCreateDate
,
String
sSnapshot1
,
String
sSnapshot2
,
String
sThemeNO
,
Integer
nTag
,
String
sCaption
,
String
sUpdateUser
,
String
sThemeJson
,
String
sThemeName
,
String
sCreateUser
,
Date
dUpdateDate
,
String
sSnapshot3
)
{
this
.
sMemo
=
sMemo
;
this
.
dLastUpdateTime
=
dLastUpdateTime
;
this
.
sThemeAuthor
=
sThemeAuthor
;
this
.
dCreateDate
=
dCreateDate
;
this
.
sSnapshot1
=
sSnapshot1
;
this
.
sSnapshot2
=
sSnapshot2
;
this
.
sThemeNO
=
sThemeNO
;
this
.
nTag
=
nTag
;
this
.
sCaption
=
sCaption
;
this
.
sUpdateUser
=
sUpdateUser
;
this
.
sThemeJson
=
sThemeJson
;
this
.
sThemeName
=
sThemeName
;
this
.
sCreateUser
=
sCreateUser
;
this
.
dUpdateDate
=
dUpdateDate
;
this
.
sSnapshot3
=
sSnapshot3
;
}
public
void
setsMemo
(
String
sMemo
)
{
this
.
sMemo
=
sMemo
;
}
public
String
getsMemo
()
{
return
sMemo
;
}
public
void
setdLastUpdateTime
(
Date
dLastUpdateTime
)
{
this
.
dLastUpdateTime
=
dLastUpdateTime
;
}
public
Date
getdLastUpdateTime
()
{
return
dLastUpdateTime
;
}
public
void
setsThemeAuthor
(
String
sThemeAuthor
)
{
this
.
sThemeAuthor
=
sThemeAuthor
;
}
public
String
getsThemeAuthor
()
{
return
sThemeAuthor
;
}
public
void
setdCreateDate
(
Date
dCreateDate
)
{
this
.
dCreateDate
=
dCreateDate
;
}
public
Date
getdCreateDate
()
{
return
dCreateDate
;
}
public
void
setsSnapshot1
(
String
sSnapshot1
)
{
this
.
sSnapshot1
=
sSnapshot1
;
}
public
String
getsSnapshot1
()
{
return
sSnapshot1
;
}
public
void
setsSnapshot2
(
String
sSnapshot2
)
{
this
.
sSnapshot2
=
sSnapshot2
;
}
public
String
getsSnapshot2
()
{
return
sSnapshot2
;
}
public
void
setsThemeNO
(
String
sThemeNO
)
{
this
.
sThemeNO
=
sThemeNO
;
}
public
String
getsThemeNO
()
{
return
sThemeNO
;
}
public
void
setnTag
(
Integer
nTag
)
{
this
.
nTag
=
nTag
;
}
public
Integer
getnTag
()
{
return
nTag
;
}
public
void
setsCaption
(
String
sCaption
)
{
this
.
sCaption
=
sCaption
;
}
public
String
getsCaption
()
{
return
sCaption
;
}
public
void
setsUpdateUser
(
String
sUpdateUser
)
{
this
.
sUpdateUser
=
sUpdateUser
;
}
public
String
getsUpdateUser
()
{
return
sUpdateUser
;
}
public
void
setsThemeJson
(
String
sThemeJson
)
{
this
.
sThemeJson
=
sThemeJson
;
}
public
String
getsThemeJson
()
{
return
sThemeJson
;
}
public
void
setsThemeName
(
String
sThemeName
)
{
this
.
sThemeName
=
sThemeName
;
}
public
String
getsThemeName
()
{
return
sThemeName
;
}
public
void
setsCreateUser
(
String
sCreateUser
)
{
this
.
sCreateUser
=
sCreateUser
;
}
public
String
getsCreateUser
()
{
return
sCreateUser
;
}
public
void
setdUpdateDate
(
Date
dUpdateDate
)
{
this
.
dUpdateDate
=
dUpdateDate
;
}
public
Date
getdUpdateDate
()
{
return
dUpdateDate
;
}
public
void
setsSnapshot3
(
String
sSnapshot3
)
{
this
.
sSnapshot3
=
sSnapshot3
;
}
public
String
getsSnapshot3
()
{
return
sSnapshot3
;
}
}
src/main/java/com/egolm/admin/util/DB.java
0 → 100644
View file @
c9a5aceb
package
com
.
egolm
.
admin
.
util
;
import
java.io.BufferedReader
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.InputStreamReader
;
import
java.io.PrintWriter
;
import
java.lang.reflect.Field
;
import
java.sql.SQLException
;
import
java.util.HashSet
;
import
java.util.Set
;
import
com.egolm.common.FileUtil
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.jdbc.dialect.SqlServerTo
;
public
class
DB
{
private
static
final
String
top
=
"D:\\111"
;
private
static
final
String
root
=
top
;
//+ "\\egolm-domain\\src\\main\\java";
private
static
final
Set
<
Field
>
columns
=
new
HashSet
<
Field
>();
private
static
final
String
regex
=
"^[a-z][A-Z].*$"
;
public
static
void
main
(
String
[]
args
)
throws
Exception
{
createDomain
();
}
public
static
void
checkJsp
(
File
file
)
throws
Exception
{
if
(
file
.
exists
())
{
if
(
file
.
isDirectory
())
{
File
[]
files
=
file
.
listFiles
();
for
(
File
f
:
files
)
{
checkJsp
(
f
);
}
}
else
{
String
extName
=
FileUtil
.
getExtName
(
file
);
if
(
"JSP"
.
equals
(
extName
))
{
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
new
FileInputStream
(
file
)));
String
text
=
StringUtil
.
read
(
br
);
for
(
Field
field
:
columns
)
{
String
fieldName
=
field
.
getName
();
if
(
fieldName
.
matches
(
regex
))
{
String
name
=
StringUtil
.
upperFirst
(
fieldName
);
if
(
text
.
contains
(
"\\."
+
name
))
{
System
.
out
.
println
(
file
.
getAbsolutePath
());
}
}
}
}
}
}
}
public
static
void
foo
(
File
file
)
throws
FileNotFoundException
{
if
(
file
.
exists
())
{
if
(
file
.
isDirectory
())
{
File
[]
files
=
file
.
listFiles
();
for
(
File
f
:
files
)
{
foo
(
f
);
}
}
else
{
String
extName
=
FileUtil
.
getExtName
(
file
);
if
(
"JAVA"
.
equals
(
extName
))
{
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
new
FileInputStream
(
file
)));
String
text
=
StringUtil
.
read
(
br
);
try
{
br
.
close
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
boolean
boo
=
false
;
for
(
Field
field
:
columns
)
{
String
columnName
=
field
.
getName
();
String
oname
=
StringUtil
.
upperFirst
(
columnName
);
String
name
=
(
columnName
.
matches
(
regex
)
?
columnName
:
StringUtil
.
upperFirst
(
columnName
));
String
osetName
=
"set"
+
oname
;
String
setName
=
"set"
+
name
;
String
ogetName
=
"get"
+
oname
;
String
getName
=
"get"
+
name
;
if
(
text
.
contains
(
osetName
))
{
boo
=
true
;
System
.
out
.
println
(
osetName
);
text
=
text
.
replaceAll
(
"\\.\\s*"
+
osetName
+
"\\s*\\("
,
"."
+
setName
+
"("
);
text
=
text
.
replaceAll
(
"\\s+"
+
osetName
+
"\\s*\\("
,
" "
+
setName
+
"("
);
}
if
(
text
.
contains
(
ogetName
))
{
boo
=
true
;
System
.
out
.
println
(
ogetName
);
text
=
text
.
replaceAll
(
"\\.\\s*"
+
ogetName
+
"\\s*\\("
,
"."
+
getName
+
"("
);
text
=
text
.
replaceAll
(
"\\s+"
+
ogetName
+
"\\s*\\("
,
" "
+
getName
+
"("
);
}
}
if
(
boo
)
{
System
.
out
.
println
(
text
);
PrintWriter
writer
=
new
PrintWriter
(
new
FileOutputStream
(
file
));
writer
.
append
(
text
);
writer
.
close
();
}
}
}
}
}
public
static
void
cache
(
File
folder
)
throws
FileNotFoundException
,
ClassNotFoundException
,
InstantiationException
,
IllegalAccessException
{
File
[]
files
=
folder
.
listFiles
();
if
(
files
!=
null
)
{
for
(
File
file
:
files
)
{
if
(
file
.
isDirectory
())
{
cache
(
file
);
}
else
{
String
extName
=
FileUtil
.
getExtName
(
file
);
if
(
"JAVA"
.
equals
(
extName
))
{
String
javaName
=
getClassFullName
(
file
,
null
);
//System.out.println(javaName);
String
className
=
javaName
.
substring
(
0
,
javaName
.
lastIndexOf
(
"."
));
try
{
Class
<?>
clz
=
Class
.
forName
(
className
);
Field
[]
fields
=
clz
.
getDeclaredFields
();
for
(
Field
field
:
fields
)
{
columns
.
add
(
field
);
}
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
}
}
}
}
public
static
void
createDomain
()
throws
SQLException
{
System
.
out
.
println
(
"Directory: "
+
root
);
File
[]
files
=
new
File
(
root
).
listFiles
();
for
(
File
file
:
files
)
{
System
.
out
.
println
(
"Delete: "
+
file
.
getAbsolutePath
());
file
.
deleteOnExit
();
}
new
SqlServerTo
(
root
,
"com.egolm.admin.pojo"
,
"曲欣亮"
,
"10.10.0.22:1433"
,
"EGOLMDEV"
,
"ERP"
,
"qiyang@2013"
).
execute
();
}
public
static
String
getClassFullName
(
File
file
,
String
x
)
{
String
name
=
file
.
getName
()
+
(
StringUtil
.
isBlank
(
x
)
?
""
:
(
"."
+
x
));
if
(
file
.
getName
().
equals
(
"com"
))
{
return
name
;
}
else
{
return
getClassFullName
(
file
.
getParentFile
(),
name
);
}
}
}
src/main/resources/application-dev.properties
View file @
c9a5aceb
server.tomcat.max-threads
=
1000
server.tomcat.max-threads
=
1000
server.tomcat.min-spare-threads
=
30
server.tomcat.min-spare-threads
=
30
server.port
=
8090
server.port
=
30001
server.context-path
=
/admin
server.context-path
=
/admin
server.session.timeout
=
90000
server.session.timeout
=
90000
server.tomcat.uri-encoding
=
utf-8
server.tomcat.uri-encoding
=
utf-8
...
...
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