|
@@ -83,17 +83,14 @@ public class SpSj2017ServiceImpl extends AbstractCrudService<SpSj2017Mapper, SpS
|
|
|
List<Map<String, Object>> deviceStatusList1 = this.listMaps(queryWrapper1);
|
|
|
return deviceStatusList1;
|
|
|
}
|
|
|
- public Long countDevice(String requestBody) {
|
|
|
+ public Integer countDevice(String requestBody) {
|
|
|
JSONObject requestVO = JSONObject.parseObject(requestBody);
|
|
|
String companyCode = requestVO.get("companyCode").toString();
|
|
|
-
|
|
|
QueryWrapper<SpSj2017> queryWrapper1 = Wrappers.query();
|
|
|
queryWrapper1.select("DISTINCT device_code")
|
|
|
.inSql("device_code", "SELECT device_code FROM yt_device_status WHERE company_code = '" + companyCode + "'");
|
|
|
List<SpSj2017> SpSj2017 = this.list(queryWrapper1);
|
|
|
-
|
|
|
- Long deviceCount = Long.valueOf(SpSj2017.size());
|
|
|
-
|
|
|
+ Integer deviceCount = SpSj2017.size();
|
|
|
return deviceCount;
|
|
|
}
|
|
|
}
|