|
@@ -11,37 +11,34 @@ import com.ruoyi.system.service.ITShouhuanInfoService;
|
|
|
|
|
|
/**
|
|
|
* 手环信息 实时数据Service业务层处理
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
* @date 2023-09-07
|
|
|
*/
|
|
|
@Service
|
|
|
-public class TShouhuanInfoServiceImpl implements ITShouhuanInfoService
|
|
|
-{
|
|
|
+public class TShouhuanInfoServiceImpl implements ITShouhuanInfoService {
|
|
|
@Autowired
|
|
|
private TShouhuanInfoMapper tShouhuanInfoMapper;
|
|
|
|
|
|
/**
|
|
|
* 查询手环信息 实时数据
|
|
|
- *
|
|
|
+ *
|
|
|
* @param id 手环信息 实时数据主键
|
|
|
* @return 手环信息 实时数据
|
|
|
*/
|
|
|
@Override
|
|
|
- public TShouhuanInfo selectTShouhuanInfoById(Long id)
|
|
|
- {
|
|
|
+ public TShouhuanInfo selectTShouhuanInfoById(Long id) {
|
|
|
return tShouhuanInfoMapper.selectTShouhuanInfoById(id);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询手环信息 实时数据列表
|
|
|
- *
|
|
|
+ *
|
|
|
* @param tShouhuanInfo 手环信息 实时数据
|
|
|
* @return 手环信息 实时数据
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<TShouhuanInfo> selectTShouhuanInfoList(TShouhuanInfo tShouhuanInfo)
|
|
|
- {
|
|
|
+ public List<TShouhuanInfo> selectTShouhuanInfoList(TShouhuanInfo tShouhuanInfo) {
|
|
|
return tShouhuanInfoMapper.selectTShouhuanInfoList(tShouhuanInfo);
|
|
|
}
|
|
|
|
|
@@ -52,49 +49,45 @@ public class TShouhuanInfoServiceImpl implements ITShouhuanInfoService
|
|
|
|
|
|
/**
|
|
|
* 新增手环信息 实时数据
|
|
|
- *
|
|
|
+ *
|
|
|
* @param tShouhuanInfo 手环信息 实时数据
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int insertTShouhuanInfo(TShouhuanInfo tShouhuanInfo)
|
|
|
- {
|
|
|
+ public int insertTShouhuanInfo(TShouhuanInfo tShouhuanInfo) {
|
|
|
return tShouhuanInfoMapper.insertTShouhuanInfo(tShouhuanInfo);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 修改手环信息 实时数据
|
|
|
- *
|
|
|
+ *
|
|
|
* @param tShouhuanInfo 手环信息 实时数据
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int updateTShouhuanInfo(TShouhuanInfo tShouhuanInfo)
|
|
|
- {
|
|
|
+ public int updateTShouhuanInfo(TShouhuanInfo tShouhuanInfo) {
|
|
|
return tShouhuanInfoMapper.updateTShouhuanInfo(tShouhuanInfo);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 批量删除手环信息 实时数据
|
|
|
- *
|
|
|
+ *
|
|
|
* @param ids 需要删除的手环信息 实时数据主键
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int deleteTShouhuanInfoByIds(Long[] ids)
|
|
|
- {
|
|
|
+ public int deleteTShouhuanInfoByIds(Long[] ids) {
|
|
|
return tShouhuanInfoMapper.deleteTShouhuanInfoByIds(ids);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除手环信息 实时数据信息
|
|
|
- *
|
|
|
+ *
|
|
|
* @param id 手环信息 实时数据主键
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int deleteTShouhuanInfoById(Long id)
|
|
|
- {
|
|
|
+ public int deleteTShouhuanInfoById(Long id) {
|
|
|
return tShouhuanInfoMapper.deleteTShouhuanInfoById(id);
|
|
|
}
|
|
|
|
|
@@ -107,4 +100,19 @@ public class TShouhuanInfoServiceImpl implements ITShouhuanInfoService
|
|
|
public Double selectTShouhuanInfoPercentage() {
|
|
|
return tShouhuanInfoMapper.selectTShouhuanInfoPercentage();
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer selectTShouhuanInfoAllCount() {
|
|
|
+ return tShouhuanInfoMapper.selectTShouhuanInfoAllCount();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer selectTShouhuanInfoAllOnlineCount() {
|
|
|
+ return tShouhuanInfoMapper.selectTShouhuanInfoAllOnlineCount();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer selectTShouhuanInfoAllUnOnlineCount() {
|
|
|
+ return tShouhuanInfoMapper.selectTShouhuanInfoAllUnOnlineCount();
|
|
|
+ }
|
|
|
}
|