|
@@ -311,7 +311,7 @@ public class DmpDeviceInfoServiceImpl extends AbstractCrudService<DmpDeviceInfoM
|
|
|
@Override
|
|
|
public List<Map<String, Object>> deviceCollect(List<Integer> productIds) {
|
|
|
QueryWrapper<DmpDeviceInfo> query = Wrappers.query();
|
|
|
- query.select("product_id as productId")
|
|
|
+ query.select("product_id as productId","count(*) as count","count(service_status != 1 or null) as serviceCount")
|
|
|
.in(CollectionUtil.isNotEmpty(productIds),"product_id",productIds)
|
|
|
.eq("delete_flag",0)
|
|
|
.eq("tenant_id",SecurityUtils.getTenantId())
|