|
|
@@ -20,6 +20,7 @@ import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
/**
|
|
|
@@ -165,12 +166,18 @@ public class BusJlgzServiceImpl implements IBusJlgzService {
|
|
|
vo.setLineId(busJlgzQueryVo.getLineId());
|
|
|
vo.setXingbie(busJlgzQueryVo.getXingbie());
|
|
|
List<BusZzdzxx> zzList = busZzdzxxMapper.smartQuery(vo);
|
|
|
- if (zzList != null && zzList.size() > 0) {
|
|
|
+ if(zzList != null && zzList.size() == 1){
|
|
|
BusZzdzxx zz = zzList.get(0);
|
|
|
busJlgzQueryVo.setMarker(zz.getMarker());
|
|
|
+ return busJlgzMapper.getListByZz(busJlgzQueryVo);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return new ArrayList<BusJlgzListByZzVo>();
|
|
|
}
|
|
|
}
|
|
|
- return busJlgzMapper.getListByZz(busJlgzQueryVo);
|
|
|
+ else {
|
|
|
+ return new ArrayList<BusJlgzListByZzVo>();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|