|  |  |  | 
|---|
|  |  |  | .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type) | 
|---|
|  |  |  | .eq(Loc::getAreaId, area) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(locMast2)) { | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | loc = locMast2; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type) | 
|---|
|  |  |  | .eq(Loc::getAreaId, area) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(locMast2)) { | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | loc = locMast2; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type) | 
|---|
|  |  |  | .eq(Loc::getAreaId, area) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(locMast2)) { | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | loc = locMast2; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | 
|---|
|  |  |  | .in(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_D.type, LocStsType.LOC_STS_TYPE_D.type) | 
|---|
|  |  |  | .eq(Loc::getAreaId, area) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(locMast2)) { | 
|---|
|  |  |  | if (null != orgMoveLoc){ | 
|---|
|  |  |  | if (!locMast2.getChannel().equals(orgMoveLoc.getChannel())) { | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | loc = locMast1; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|