Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projectArtifacture
Project
Project
Details
Activity
Releases
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
yangzhaojun
projectArtifacture
Commits
85f09dc1
Commit
85f09dc1
authored
Jan 17, 2018
by
李丛阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询
parent
334e67f1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
IdEntity.java
src/main/java/org/rcisoft/core/entity/IdEntity.java
+2
-0
SysUserServiceImpl.java
...org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
+4
-0
application-dev.yml
src/main/resources/application-dev.yml
+4
-4
logback-spring.xml
src/main/resources/logback-spring.xml
+2
-2
No files found.
src/main/java/org/rcisoft/core/entity/IdEntity.java
View file @
85f09dc1
...
@@ -8,6 +8,7 @@ import org.rcisoft.core.util.IdGen;
...
@@ -8,6 +8,7 @@ import org.rcisoft.core.util.IdGen;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.MappedSuperclass
;
import
javax.persistence.MappedSuperclass
;
import
javax.persistence.Transient
;
import
java.io.Serializable
;
import
java.io.Serializable
;
/**
/**
...
@@ -29,6 +30,7 @@ public abstract class IdEntity<T> extends DataEntity<T> implements Serializable
...
@@ -29,6 +30,7 @@ public abstract class IdEntity<T> extends DataEntity<T> implements Serializable
protected
String
businessId
;
// 编号
protected
String
businessId
;
// 编号
@Transient
protected
String
token
;
protected
String
token
;
/**
/**
...
...
src/main/java/org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
View file @
85f09dc1
...
@@ -4,6 +4,7 @@ import org.rcisoft.core.constant.UserConstant;
...
@@ -4,6 +4,7 @@ import org.rcisoft.core.constant.UserConstant;
import
org.rcisoft.core.exception.ServiceException
;
import
org.rcisoft.core.exception.ServiceException
;
import
org.rcisoft.core.model.PersistModel
;
import
org.rcisoft.core.model.PersistModel
;
import
org.rcisoft.core.result.ResultServiceEnums
;
import
org.rcisoft.core.result.ResultServiceEnums
;
import
org.rcisoft.core.util.UserUtil
;
import
org.rcisoft.sys.user.dao.SysUserMapper
;
import
org.rcisoft.sys.user.dao.SysUserMapper
;
import
org.rcisoft.sys.user.entity.SysUser
;
import
org.rcisoft.sys.user.entity.SysUser
;
import
org.rcisoft.sys.user.service.SysUserService
;
import
org.rcisoft.sys.user.service.SysUserService
;
...
@@ -22,6 +23,9 @@ public class SysUserServiceImpl implements SysUserService {
...
@@ -22,6 +23,9 @@ public class SysUserServiceImpl implements SysUserService {
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
readOnly
=
false
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
readOnly
=
false
)
@Override
@Override
public
PersistModel
addUser
(
SysUser
user
)
{
public
PersistModel
addUser
(
SysUser
user
)
{
user
.
setCommonBusinessId
();
//增加操作
UserUtil
.
setCurrentPersistOperation
(
user
);
int
line
=
sysUserMapper
.
insertSelective
(
user
);
int
line
=
sysUserMapper
.
insertSelective
(
user
);
return
new
PersistModel
(
line
);
return
new
PersistModel
(
line
);
}
}
...
...
src/main/resources/application-dev.yml
View file @
85f09dc1
...
@@ -5,10 +5,10 @@ server:
...
@@ -5,10 +5,10 @@ server:
max-threads
:
300
max-threads
:
300
#uri-encoding: UTF-8
#uri-encoding: UTF-8
logging
:
# logging: #使用logback-spring 注释掉logging 否则影响
level
:
#
level:
root
:
INFO
#
root: INFO
org.springframework.web
:
DEBUG
#
org.springframework.web: DEBUG
druid
:
druid
:
url
:
jdbc:mysql://127.0.0.1:3306/edu_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
url
:
jdbc:mysql://127.0.0.1:3306/edu_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
...
...
src/main/resources/logback-spring.xml
View file @
85f09dc1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<appender
name=
"consoleLog"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<appender
name=
"consoleLog"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
<pattern>
<pattern>
%d - %msg%n
%d
ate %-5level %d
- %msg%n
</pattern>
</pattern>
</layout>
</layout>
</appender>
</appender>
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<logger
name=
"org.springframework.aop.aspectj"
level=
"ERROR"
/>
<logger
name=
"org.springframework.aop.aspectj"
level=
"ERROR"
/>
<springProfile
name=
"dev"
>
<springProfile
name=
"dev"
>
<root
level=
"
info
"
>
<root
level=
"
debug
"
>
<appender-ref
ref=
"consoleLog"
/>
<appender-ref
ref=
"consoleLog"
/>
<appender-ref
ref=
"fileInfoLog"
/>
<appender-ref
ref=
"fileInfoLog"
/>
<appender-ref
ref=
"fileErrorLog"
/>
<appender-ref
ref=
"fileErrorLog"
/>
...
...
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