Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
2aa32a0e
Commit
2aa32a0e
authored
Jul 05, 2023
by
chenym
Browse files
重命名方法名
parent
6f1f13cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/web/SqlSession.java
View file @
2aa32a0e
package
net.mingsoft.cms.action.web
;
import
lombok.Data
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.sql.DataSource
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -14,10 +11,10 @@ public class SqlSession {
private
DataSource
dataSource
;
public
SqlSessionFactory
getSessionFactory
()
throws
Exception
{
Result
Data
result
Data
=
new
Result
Data
();
result
Data
.
message
=
dataSource
.
getConnection
().
toString
();
result
Data
.
status
=
dataSource
.
getLoginTimeout
();
public
SqlSessionFactory
testBoradReturnType
()
throws
Exception
{
Result
Entity
result
Entity
=
new
Result
Entity
();
result
Entity
.
message
=
dataSource
.
getConnection
().
toString
();
result
Entity
.
status
=
dataSource
.
getLoginTimeout
();
return
sessionFactory
;
}
...
...
@@ -27,5 +24,13 @@ public class SqlSession {
list
.
stream
().
map
(
clazz
->
"t"
+
(
this
.
getClass
().
getSimpleName
()));
}
public
void
pushDownStream
(
ResultEntity
businessStatusBack
)
{
String
store
=
businessStatusBack
.
getMessage
();
int
s
=
0
;
if
(
"1"
.
equals
(
store
))
{
s
=
1
;
}
else
if
(
"2"
.
equals
(
store
))
{
s
=
2
;
}
}
}
Write
Preview
Supports
Markdown
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