mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
获取机台树Bug修改
This commit is contained in:
+5
-1
@@ -232,7 +232,11 @@ public class MachineServiceImpl implements MachineService {
|
||||
.eqIfPresent(MachineDO::getMachineType, type));
|
||||
|
||||
List<Long> brandIds = machineDOS.stream().map(MachineDO::getBrandId).toList();
|
||||
List<MachineBrandDO> machineBrandDOS = machineBrandMapper.selectBatchIds(brandIds);
|
||||
List<MachineBrandDO> machineBrandDOS = new ArrayList<>();
|
||||
|
||||
if(!brandIds.isEmpty()) {
|
||||
machineBrandDOS = machineBrandMapper.selectBatchIds(brandIds);
|
||||
}
|
||||
|
||||
List<MachineVO> machineVOS = BeanUtils.toBean(machineDOS, MachineVO.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user