|  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(dto.getOriSta()) && !Cools.isEmpty(dto.getOriLoc())) { | 
|---|
|  |  |  | return "OriSta and OriLoc cannot exist at the same time!"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (Cools.isEmpty(dto.getOriSta()) && Cools.isEmpty(dto.getOriLoc())) { | 
|---|
|  |  |  | return "OriSta and OriLoc must have one!"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!Cools.isEmpty(dto.getOriSta())) { | 
|---|
|  |  |  | if (Cools.isEmpty(dto.getDestSta()) && Cools.isEmpty(dto.getDestLoc())) { | 
|---|
|  |  |  | return "Destination cannot be empty!"; | 
|---|
|  |  |  | 
|---|
|  |  |  | if (!Cools.isEmpty(dto.getDestSta()) && !Cools.isEmpty(dto.getDestLoc())) { | 
|---|
|  |  |  | return "DestSta and DestLoc cannot exist at the same time!"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (Cools.isEmpty(dto.getDestSta()) && Cools.isEmpty(dto.getDestLoc())) { | 
|---|
|  |  |  | return "DestSta and DestLoc must have one!"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!Cools.isEmpty(dto.getDestSta())) { | 
|---|
|  |  |  | if (Cools.isEmpty(dto.getOriSta()) && Cools.isEmpty(dto.getOriLoc())) { | 
|---|
|  |  |  | return "Origin cannot be empty!"; | 
|---|