|
|
@@ -1,11 +1,14 @@
|
|
|
package com.railway.business.baseinfo.service.impl;
|
|
|
|
|
|
import com.railway.business.baseinfo.domain.BusFjxgmd;
|
|
|
+import com.railway.business.baseinfo.domain.BusZzdzxx;
|
|
|
import com.railway.business.baseinfo.domain.vo.BusFjxgmdQueryVo;
|
|
|
+import com.railway.business.baseinfo.mapper.BusZzdzxxMapper;
|
|
|
import com.railway.common.enums.DelFlagEnum;
|
|
|
import com.railway.business.baseinfo.mapper.BusFjxgmdMapper;
|
|
|
import com.railway.business.baseinfo.service.IBusFjxgmdService;
|
|
|
import com.railway.common.utils.SecurityUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@@ -21,9 +24,11 @@ import java.util.List;
|
|
|
public class BusFjxgmdServiceImpl implements IBusFjxgmdService{
|
|
|
|
|
|
private final BusFjxgmdMapper busFjxgmdMapper;
|
|
|
+ private final BusZzdzxxMapper busZzdzxxMapper;
|
|
|
|
|
|
- public BusFjxgmdServiceImpl(BusFjxgmdMapper busFjxgmdMapper) {
|
|
|
+ public BusFjxgmdServiceImpl(BusFjxgmdMapper busFjxgmdMapper, BusZzdzxxMapper busZzdzxxMapper) {
|
|
|
this.busFjxgmdMapper = busFjxgmdMapper;
|
|
|
+ this.busZzdzxxMapper = busZzdzxxMapper;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -86,9 +91,21 @@ public class BusFjxgmdServiceImpl implements IBusFjxgmdService{
|
|
|
*/
|
|
|
@Override
|
|
|
public List<BusFjxgmd> getListByZz(BusFjxgmdQueryVo busFjxgmdQueryVo) {
|
|
|
- if (busFjxgmdQueryVo.getPillarArea() == null) {
|
|
|
+ if (StringUtils.isBlank(busFjxgmdQueryVo.getPillarArea())) {
|
|
|
busFjxgmdQueryVo.setPillarArea("500");
|
|
|
}
|
|
|
+ // 有站场区间,支柱号 查询支柱公里标
|
|
|
+ if (StringUtils.isNoneBlank(busFjxgmdQueryVo.getPillarCode())
|
|
|
+ && busFjxgmdQueryVo.getStationId() != null) {
|
|
|
+ BusZzdzxx busZzdzxx = new BusZzdzxx();
|
|
|
+ busZzdzxx.setPillarCode(busFjxgmdQueryVo.getPillarCode());
|
|
|
+ busZzdzxx.setStationId(busFjxgmdQueryVo.getStationId());
|
|
|
+ List<BusZzdzxx> zzList = busZzdzxxMapper.getList(busZzdzxx);
|
|
|
+ if (zzList != null && zzList.size() > 0) {
|
|
|
+ BusZzdzxx zz = zzList.get(0);
|
|
|
+ busFjxgmdQueryVo.setMarker(zz.getMarker());
|
|
|
+ }
|
|
|
+ }
|
|
|
return busFjxgmdMapper.getListByZz(busFjxgmdQueryVo);
|
|
|
}
|
|
|
}
|