BGateDao.java
992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.viontech.keliu.dao;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;
/**
* Created with IntelliJ IDEA.
*
* @author: zhuhai
* Date: 2023-12-22
* Time: 17:38
*/
@Repository
public class BGateDao {
@Resource
private JdbcTemplate jdbcTemplate;
/**
* 获取门店出入口监控点
* @param mallId
* @return
*/
public List<Long> getMallInOutGateIds(Long mallId) {
String sql = "select id from b_gate where mall_id = ? and is_mall_gate = 1;";
return jdbcTemplate.queryForList(sql, Long.class, mallId);
}
/**
* 获取门店内的监控点
* @param mallId
* @return
*/
public List<Long> getMallInsideGateIds(Long mallId) {
String sql = "select id from b_gate where mall_id = ? and is_mall_gate = 0;";
return jdbcTemplate.queryForList(sql, Long.class, mallId);
}
}