接口修改
This commit is contained in:
parent
3a522f0166
commit
c5219e0053
@ -42,6 +42,8 @@ import java.util.ArrayList;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.das.modules.auth.mapper.BaseMapperPlus.log;
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Service
|
@Service
|
||||||
public class SysEquipmentServiceImpl implements SysEquipmentService {
|
public class SysEquipmentServiceImpl implements SysEquipmentService {
|
||||||
@ -124,8 +126,8 @@ public class SysEquipmentServiceImpl implements SysEquipmentService {
|
|||||||
if (sysOrg == null) {
|
if (sysOrg == null) {
|
||||||
throw new ServiceException("机构不存在");
|
throw new ServiceException("机构不存在");
|
||||||
}
|
}
|
||||||
List<SysEquipment> equipList = sysEquipmentMapper.queryEquipmentTree(sysEquipmentDto.getId());
|
List<SysEquipment> equipList = sysEquipmentMapper.queryEquipmentTree(sysEquipmentDto.getOrgId());
|
||||||
List<SysOrg> orgList = sysOrgMapper.queryAllOrgTree(sysEquipmentDto.getId());
|
List<SysOrg> orgList = sysOrgMapper.queryAllOrgTree(sysEquipmentDto.getOrgId());
|
||||||
sysOrg.setEquipChildren(equipList);
|
sysOrg.setEquipChildren(equipList);
|
||||||
sysOrg.setOrgChildren(orgList);
|
sysOrg.setOrgChildren(orgList);
|
||||||
return sysOrg;
|
return sysOrg;
|
||||||
|
Loading…
Reference in New Issue
Block a user