|  |  | 
 |  |  | //                task.setOriCode(oriLoc.getCode()); | 
 |  |  |             } | 
 |  |  |             if (!Cools.isEmpty(taskDto.getOriSta())) { | 
 |  |  |                 Sta oriSta = staService.selectByStaNo(taskDto.getOriSta()); | 
 |  |  |                 Sta oriSta = staService.selectByStaNoOrName(taskDto.getOriSta()); | 
 |  |  |  | 
 |  |  |                 if (null == oriSta) { | 
 |  |  |                     throw new BusinessException("oriSta: " + taskDto.getOriSta() + " doesn't exist!"); | 
 |  |  |                 } | 
 |  |  | 
 |  |  |                 task.setDestCode(destLoc.getCode()); | 
 |  |  |             } | 
 |  |  |             if (!Cools.isEmpty(taskDto.getDestSta())) { | 
 |  |  |                 Sta destSta = staService.selectByStaNo(taskDto.getDestSta()); | 
 |  |  |                 Sta destSta = staService.selectByStaNoOrName(taskDto.getDestSta()); | 
 |  |  |                 if (null == destSta) { | 
 |  |  |                     throw new BusinessException("destSta: " + taskDto.getDestSta() + " doesn't exist!"); | 
 |  |  |                 } |