Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 39243ceb
authored
May 18, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:sql
1 parent
f3d9f33f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletions
src/main/resources/mapper/AlarmSecondDataMapper.xml
src/test/java/cn/com/glsx/stdinterface/modules/mapper/AlarmSecondDataMapperTest.java
src/main/resources/mapper/AlarmSecondDataMapper.xml
View file @
39243ce
...
...
@@ -98,7 +98,7 @@
from t_alarm_second_data
<where>
and sn=#{sn}
and vd_id = {vdId}
and vd_id =
#
{vdId}
and del_flag=0
</where>
order by id desc limit 1
...
...
src/test/java/cn/com/glsx/stdinterface/modules/mapper/AlarmSecondDataMapperTest.java
0 → 100644
View file @
39243ce
package
cn
.
com
.
glsx
.
stdinterface
.
modules
.
mapper
;
import
cn.com.glsx.Application
;
import
cn.com.glsx.stdinterface.modules.entity.AlarmSecondData
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.jupiter.api.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.*;
/**
* @author xiangyanlin
* @date 2022/5/18
*/
@Slf4j
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
)
class
AlarmSecondDataMapperTest
{
@Autowired
private
AlarmSecondDataMapper
alarmSecondDataMapper
;
@Test
public
void
testGet
()
{
AlarmSecondData
lastSecondDataBySn
=
alarmSecondDataMapper
.
getLastSecondDataBySn
(
"111"
,
0L
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment