|
@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="roadId != null "> and section.road_id = #{roadId}</if> |
|
|
<if test="roadId != null "> and section.road_id = #{roadId}</if> |
|
|
<if test="startStakeMark != null and startStakeMark != '' |
|
|
<if test="startStakeMark != null and startStakeMark != '' |
|
|
and endStakeMark != null and endStakeMark != ''"> |
|
|
and endStakeMark != null and endStakeMark != ''"> |
|
|
CAST(SUBSTRING(SUBSTRING_INDEX(start_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
|
and CAST(SUBSTRING(SUBSTRING_INDEX(start_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
|
+CAST(SUBSTRING_INDEX(start_stake_mark, '+', -1) AS UNSIGNED)>#{startStakeMark} |
|
|
+CAST(SUBSTRING_INDEX(start_stake_mark, '+', -1) AS UNSIGNED)>#{startStakeMark} |
|
|
and |
|
|
and |
|
|
CAST(SUBSTRING(SUBSTRING_INDEX(end_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
|
CAST(SUBSTRING(SUBSTRING_INDEX(end_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
@ -44,12 +44,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</if> |
|
|
</if> |
|
|
<if test="startStakeMark != null and startStakeMark != '' |
|
|
<if test="startStakeMark != null and startStakeMark != '' |
|
|
and endStakeMark == null "> |
|
|
and endStakeMark == null "> |
|
|
CAST(SUBSTRING(SUBSTRING_INDEX(start_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
|
and CAST(SUBSTRING(SUBSTRING_INDEX(start_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
|
+CAST(SUBSTRING_INDEX(start_stake_mark, '+', -1) AS UNSIGNED)>#{startStakeMark} |
|
|
+CAST(SUBSTRING_INDEX(start_stake_mark, '+', -1) AS UNSIGNED)>#{startStakeMark} |
|
|
</if> |
|
|
</if> |
|
|
<if test=" endStakeMark != null and endStakeMark != '' |
|
|
<if test=" endStakeMark != null and endStakeMark != '' |
|
|
and startStakeMark == null "> |
|
|
and startStakeMark == null "> |
|
|
CAST(SUBSTRING(SUBSTRING_INDEX(end_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
|
and CAST(SUBSTRING(SUBSTRING_INDEX(end_stake_mark,'+',1),2)AS UNSIGNED)*1000 |
|
|
+CAST(SUBSTRING_INDEX(end_stake_mark, '+', -1) AS UNSIGNED)<#{endStakeMark} |
|
|
+CAST(SUBSTRING_INDEX(end_stake_mark, '+', -1) AS UNSIGNED)<#{endStakeMark} |
|
|
</if> |
|
|
</if> |
|
|
<if test="sectionName != null and sectionName != ''"> and section.section_name like concat('%', #{sectionName}, '%')</if> |
|
|
<if test="sectionName != null and sectionName != ''"> and section.section_name like concat('%', #{sectionName}, '%')</if> |
|
|