|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 
|---|
|  |  |  | import com.vincent.rsf.framework.common.SpringUtils; | 
|---|
|  |  |  | import com.vincent.rsf.framework.exception.CoolException; | 
|---|
|  |  |  | import com.vincent.rsf.server.manager.entity.DeviceSite; | 
|---|
|  |  |  | import com.vincent.rsf.server.manager.entity.Loc; | 
|---|
|  |  |  | import com.vincent.rsf.server.manager.service.DeviceSiteService; | 
|---|
|  |  |  | import com.vincent.rsf.server.manager.service.LocService; | 
|---|
|  |  |  | import com.vincent.rsf.server.system.enums.LocStsType; | 
|---|
|  |  |  | import org.apache.commons.lang3.StringUtils; | 
|---|
|  |  |  | import com.vincent.rsf.server.manager.enums.LocStsType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Objects; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>() | 
|---|
|  |  |  | .eq(Loc::getAreaId, areaId) | 
|---|
|  |  |  | .orderByAsc(Loc::getLev) | 
|---|
|  |  |  | .orderByAsc(Loc::getCol) | 
|---|
|  |  |  | .orderByAsc(Loc::getRow) | 
|---|
|  |  |  | .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type), false | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|