Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
log-platform
Commits
49ca0d57
Commit
49ca0d57
authored
Nov 11, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询时间段
parent
e70845a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
log-manager/src/main/java/com/mortals/xhx/module/access/web/AccessLogController.java
...om/mortals/xhx/module/access/web/AccessLogController.java
+12
-3
No files found.
log-manager/src/main/java/com/mortals/xhx/module/access/web/AccessLogController.java
View file @
49ca0d57
...
@@ -2,10 +2,13 @@ package com.mortals.xhx.module.access.web;
...
@@ -2,10 +2,13 @@ package com.mortals.xhx.module.access.web;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.AccessLogPdu
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.system.MessageProducer
;
import
com.mortals.xhx.system.MessageProducer
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -52,7 +55,7 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
...
@@ -52,7 +55,7 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"appName"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"platformMark"
));
this
.
addDict
(
model
,
"appName"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"platformMark"
));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
@@ -68,7 +71,13 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
...
@@ -68,7 +71,13 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override
@Override
@UnAuth
@UnAuth
public
String
save
(
@RequestBody
AccessLogEntity
entity
)
{
public
String
save
(
@RequestBody
AccessLogEntity
entity
)
{
return
super
.
save
(
entity
);
AccessLogPdu
accessLogPdu
=
new
AccessLogPdu
();
accessLogPdu
.
initAttrValue
();
BeanUtils
.
copyProperties
(
entity
,
accessLogPdu
,
BeanUtil
.
getNullPropertyNames
(
entity
));
JSONObject
ret
=
new
JSONObject
();
ret
.
put
(
"code"
,
VALUE_RESULT_SUCCESS
);
return
ret
.
toJSONString
();
}
}
}
}
\ No newline at end of file
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