Commit 06cf65d0 authored by duanruiming's avatar duanruiming

[add] 实时监控-路口恢复原始方案

parent 9ff4f78e
package net.wanji.opt.dao.mapper; package net.wanji.opt.dao.mapper;
import net.wanji.opt.po.base.CrossPhasePO; import net.wanji.opt.po.base.CrossPhasePO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
...@@ -17,5 +18,5 @@ public interface CrossPhaseMapper { ...@@ -17,5 +18,5 @@ public interface CrossPhaseMapper {
* 查询相位基础信息列表 * 查询相位基础信息列表
* @return * @return
*/ */
List<CrossPhasePO> listCrossPhase(); List<CrossPhasePO> listCrossPhase(@Param("crossId") String crossId, @Param("schemeId") String schemeId);
} }
package net.wanji.opt.dao.mapper; package net.wanji.opt.dao.mapper;
import net.wanji.opt.po.base.CrossSchemePO; import net.wanji.opt.po.base.CrossSchemePO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
...@@ -18,6 +19,6 @@ public interface CrossSchemeMapper { ...@@ -18,6 +19,6 @@ public interface CrossSchemeMapper {
* @param crossId * @param crossId
* @return * @return
*/ */
List<CrossSchemePO> listCrossSchemeInfo(String crossId); List<CrossSchemePO> listCrossSchemeInfo(@Param("crossId") String crossId, @Param("schemeNo")String schemeNo);
} }
...@@ -40,7 +40,7 @@ public class CrossPhaseServiceImpl implements CrossPhaseService { ...@@ -40,7 +40,7 @@ public class CrossPhaseServiceImpl implements CrossPhaseService {
public List<CrossPhaseDTO> listCrossPhase() { public List<CrossPhaseDTO> listCrossPhase() {
// 获取相位信息 // 获取相位信息
List<CrossPhasePO> crossPhasePOList = crossPhaseMapper.listCrossPhase(); List<CrossPhasePO> crossPhasePOList = crossPhaseMapper.listCrossPhase("", "");
return BeanListUtils.populateList(crossPhasePOList, new ArrayList<>(), CrossPhaseDTO.class); return BeanListUtils.populateList(crossPhasePOList, new ArrayList<>(), CrossPhaseDTO.class);
} }
......
...@@ -34,7 +34,7 @@ public class CrossSchemeServiceImpl implements CrossSchemeService { ...@@ -34,7 +34,7 @@ public class CrossSchemeServiceImpl implements CrossSchemeService {
@Override @Override
public List<CrossSchemeDTO> listCrossSchemeInfo(String crossId) { public List<CrossSchemeDTO> listCrossSchemeInfo(String crossId) {
List<CrossSchemePO> schemePOList = crossSchemeMapper.listCrossSchemeInfo(crossId); List<CrossSchemePO> schemePOList = crossSchemeMapper.listCrossSchemeInfo(crossId, "");
return BeanListUtils.populateList(schemePOList, new ArrayList<>(), CrossSchemeDTO.class); return BeanListUtils.populateList(schemePOList, new ArrayList<>(), CrossSchemeDTO.class);
} }
......
...@@ -15,19 +15,22 @@ ...@@ -15,19 +15,22 @@
<!-- 查询方案基础信息列表 --> <!-- 查询方案基础信息列表 -->
<select id="listCrossSchemeInfo" parameterType="String" resultMap="BaseResultMap"> <select id="listCrossSchemeInfo" parameterType="String" resultMap="BaseResultMap">
select select
id id,
,scheme_no scheme_no,
,name name,
,cross_id cross_id,
,cycle cycle,
,coord_phase coord_phase,
,offset offset
from from
t_base_cross_scheme t_base_cross_scheme
where 1=1 where 1=1
<if test="crossId != null and crossId != ''"> <if test="crossId != null and crossId != ''">
and cross_id = #{crossId} and cross_id = #{crossId}
</if> </if>
<if test="schemeNo != null and schemeNo != ''">
and scheme_no = #{schemeNo}
</if>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment