|
|
@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<select id="selectDcRoadSectionList" parameterType="DcRoadSection" resultMap="DcRoadSectionResult"> |
|
|
|
<include refid="selectDcRoadSectionVo"/> |
|
|
|
<where> |
|
|
|
<if test="id != null "> and section.id = #{id}</if> |
|
|
|
<if test="deptId != null "> and section.dept_id = #{deptId}</if> |
|
|
|
<if test="roadId != null "> and section.road_id = #{roadId}</if> |
|
|
|
<if test="startStakeMark != null and startStakeMark != '' |
|
|
@ -56,7 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="roadCode != null and roadCode != ''"> and section.road_code = #{roadCode}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectName" resultType="com.zc.business.domain.DcRoadSection"> |
|
|
|
select id,section_name from dc_road_section |
|
|
|
</select> |
|
|
|
<select id="selectDcRoadSectionById" parameterType="Long" resultMap="DcRoadSectionResult"> |
|
|
|
<include refid="selectDcRoadSectionVo"/> |
|
|
|
where section.id = #{id} |
|
|
@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
+CAST(SUBSTRING_INDEX(stake_mark, '+', -1) AS UNSIGNED) stakeMark from dc_stake_mark where stake_mark!='222' |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateStakeMarkRecord"> |
|
|
|
update dc_stake_mark set section_id=#{sectionId} where stake_mark=#{stakeMark} |
|
|
|
</update> |
|
|
|