package org.sxkj.system.feign; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import lombok.AllArgsConstructor; import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tenant.annotation.NonDS; import org.springblade.core.tool.utils.StringUtil; import org.springframework.web.bind.annotation.RestController; import org.sxkj.system.cache.SysCache; import org.sxkj.system.entity.DevicePerShareEntity; import org.sxkj.system.service.IDevicePerShareService; import org.sxkj.system.vo.ShareParam; import springfox.documentation.annotations.ApiIgnore; import java.util.Collections; import java.util.List; /** * @Description 借调服务远程调度 * @Author AIX * @Date 2025/9/18 17:04 * @Version 1.0 */ @NonDS @ApiIgnore @RestController @AllArgsConstructor public class ManageDevicePerShareClient implements IManageDevicePerShareClient { private final IDevicePerShareService devicePerShareService; @Override public List findActiveLoansByToDeptId(ShareParam param, Long deptId) { // 参数校验 if (deptId == null) { return Collections.emptyList(); } // 执行自定义SQL查询 return devicePerShareService.findActiveLoansByToDeptId(param, SysCache.getDeptParentIds(deptId)); } @Override public List findActiveLoansAreaCodeByToDeptId(ShareParam param, Long deptId) { // 参数校验 if (deptId == null) { return Collections.emptyList(); } // 执行自定义SQL查询 return devicePerShareService.findActiveLoansAreaCodeByToDeptId(param, SysCache.getDeptParentIds(deptId)); } }