Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
signal
traffic-signal-platform
Commits
8e500612
Commit
8e500612
authored
Jan 21, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 诱导屏文字编辑功能-优化查询
parent
e437e4b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
InduceFontHistController.java
...wanji/opt/controller/induce/InduceFontHistController.java
+2
-2
InduceFontHistService.java
...a/net/wanji/opt/service/induce/InduceFontHistService.java
+1
-1
InduceFontHistServiceImpl.java
...ji/opt/service/induce/impl/InduceFontHistServiceImpl.java
+7
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/controller/induce/InduceFontHistController.java
View file @
8e500612
...
...
@@ -31,10 +31,10 @@ public class InduceFontHistController {
@ApiOperation
(
value
=
"获取所有诱导文字下发记录"
,
notes
=
"获取所有诱导文字下发记录"
,
response
=
JsonViewObject
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
)
@GetMapping
(
value
=
"/byAll"
,
produces
=
MediaType
.
APPLICATION_JSON
)
public
JsonViewObject
getAll
()
{
public
JsonViewObject
getAll
(
@RequestParam
(
defaultValue
=
""
)
String
equipCode
)
{
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
try
{
List
<
InduceFontHist
>
list
=
induceFontHistService
.
getAll
();
List
<
InduceFontHist
>
list
=
induceFontHistService
.
getAll
(
equipCode
);
jsonViewObject
.
success
(
list
);
}
catch
(
Exception
e
)
{
jsonViewObject
.
fail
(
I18nResourceBundle
.
getConstants
(
"GET_FAILED_MSG"
));
...
...
signal-optimize-service/src/main/java/net/wanji/opt/service/induce/InduceFontHistService.java
View file @
8e500612
...
...
@@ -14,7 +14,7 @@ public interface InduceFontHistService {
* 获取诱导屏所有文字下发记录
* @return
*/
List
<
InduceFontHist
>
getAll
();
List
<
InduceFontHist
>
getAll
(
String
equipCode
);
/**
* 诱导屏文字编辑
...
...
signal-optimize-service/src/main/java/net/wanji/opt/service/induce/impl/InduceFontHistServiceImpl.java
View file @
8e500612
...
...
@@ -25,8 +25,13 @@ public class InduceFontHistServiceImpl implements InduceFontHistService {
private
InduceFontHistMapper
induceFontHistMapper
;
@Override
public
List
<
InduceFontHist
>
getAll
()
{
List
<
InduceFontHist
>
induceFontHists
=
induceFontHistMapper
.
selectList
(
new
LambdaQueryWrapper
<
InduceFontHist
>());
public
List
<
InduceFontHist
>
getAll
(
String
equipCode
)
{
LambdaQueryWrapper
<
InduceFontHist
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
if
(
StringUtils
.
isNotBlank
(
equipCode
))
{
queryWrapper
.
eq
(
InduceFontHist:
:
getEquipCode
,
equipCode
);
queryWrapper
.
orderByDesc
(
InduceFontHist:
:
getGmtModified
);
}
List
<
InduceFontHist
>
induceFontHists
=
induceFontHistMapper
.
selectList
(
queryWrapper
);
return
induceFontHists
;
}
...
...
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