| | |
| | | * @return 路灯列表 |
| | | */ |
| | | List<LightBo> listLight(Long clientId, String keyword); |
| | | |
| | | /** |
| | | * 获取用户所拥有的灯杆上的路灯code |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | List<String> listCode(/*int start, int end,*/ Long userId); |
| | | } |
| | | |
| | | |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="listCode" resultType="java.lang.String"> |
| | | SELECT |
| | | t1.device_code |
| | | FROM |
| | | light t1 |
| | | LEFT JOIN pole t2 USING ( device_code ) |
| | | <where> |
| | | <if test="clientId != null"> |
| | | AND (t2.user_id = #{clientId} OR t2.client_id = #{clientId}) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |
| | |
| | | |
| | | private String keyWord; |
| | | |
| | | private Integer lampPostType; |
| | | |
| | | private Integer lampPostState; |
| | | |
| | | private Integer bindState; |
| | | |
| | | private String groupName; |
| | |
| | | return lightList; |
| | | } |
| | | |
| | | /** |
| | | * 获取用户所有的设备码 |
| | | */ |
| | | public List<String> listDeviceCode(/*int start, int end*/) { |
| | | return baseMapper.listCode(/*start,end,*/SecurityUtils.getClientId()); |
| | | } |
| | | |
| | | } |