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
65031c8c
Commit
65031c8c
authored
Jan 22, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 诱导屏文字删除功能
parent
ad7fe0ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
InduceFontHistController.java
...wanji/opt/controller/induce/InduceFontHistController.java
+15
-0
InduceFontHistService.java
...a/net/wanji/opt/service/induce/InduceFontHistService.java
+7
-0
InduceFontHistServiceImpl.java
...ji/opt/service/induce/impl/InduceFontHistServiceImpl.java
+9
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/controller/induce/InduceFontHistController.java
View file @
65031c8c
...
...
@@ -77,4 +77,19 @@ public class InduceFontHistController {
return
jsonViewObject
;
}
@ApiOperation
(
value
=
"通过字体id删除诱导屏字体信息"
,
notes
=
"通过字体id删除诱导屏字体信息"
,
response
=
JsonViewObject
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
)
@GetMapping
(
value
=
"/deleteOneById"
,
produces
=
MediaType
.
APPLICATION_JSON
)
public
JsonViewObject
deleteOneById
(
@RequestParam
(
"id"
)
Integer
id
)
{
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
try
{
induceFontHistService
.
deleteOneById
(
id
);
jsonViewObject
.
success
(
"删除成功"
);
}
catch
(
Exception
e
)
{
jsonViewObject
.
fail
(
I18nResourceBundle
.
getConstants
(
"GET_FAILED_MSG"
));
log
.
error
(
"{} byLastOne error"
,
this
.
getClass
().
getSimpleName
(),
e
);
}
return
jsonViewObject
;
}
}
signal-optimize-service/src/main/java/net/wanji/opt/service/induce/InduceFontHistService.java
View file @
65031c8c
...
...
@@ -28,4 +28,11 @@ public interface InduceFontHistService {
* @return
*/
InduceFontHist
getLastOne
(
String
equipCode
);
/**
* 通过id删除诱导屏文字信息
* @param id
* @return
*/
void
deleteOneById
(
Integer
id
);
}
signal-optimize-service/src/main/java/net/wanji/opt/service/induce/impl/InduceFontHistServiceImpl.java
View file @
65031c8c
...
...
@@ -60,4 +60,13 @@ public class InduceFontHistServiceImpl implements InduceFontHistService {
}
return
null
;
}
@Override
public
void
deleteOneById
(
Integer
id
)
{
if
(
Objects
.
nonNull
(
id
))
{
InduceFontHist
hist
=
new
InduceFontHist
();
hist
.
setId
(
id
.
longValue
());
induceFontHistMapper
.
deleteById
(
id
);
}
}
}
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