|
@@ -60,8 +60,8 @@ public class TOrganizationServiceImpl implements ITOrganizationService
|
|
|
private void addExtra(TOrganization organization) {
|
|
|
Long id = organization.getId();
|
|
|
//处理连续检测设备总数 实验室设备总数
|
|
|
- organization.setLxjcCounts(bizDeviceMapper.selectBizDeviceList(BizDevice.builder().deviceWorks(id).type("2").build()).size());
|
|
|
- organization.setRobotCounts(bizDeviceMapper.selectBizDeviceList(BizDevice.builder().deviceWorks(id).type("1").build()).size());
|
|
|
+ organization.setLxjcCounts(bizDeviceMapper.selectChildDeviceCountsByType(id, "2"));
|
|
|
+ organization.setRobotCounts(bizDeviceMapper.selectChildDeviceCountsByType(id, "1"));
|
|
|
//处理省市区名字
|
|
|
organization.setProvinceName(this.sysRegionMapper.selectNameByCode(organization.getProvinceCode()));
|
|
|
organization.setCityName(this.sysRegionMapper.selectNameByCode(organization.getCityCode()));
|