|
@@ -233,7 +233,11 @@
|
|
|
<if test="remark!=null and remark!=''">
|
|
<if test="remark!=null and remark!=''">
|
|
|
AND REGEXP_LIKE("remark", #{remark})
|
|
AND REGEXP_LIKE("remark", #{remark})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lastIndex!=null">
|
|
|
|
|
+ and "operationsNameId" < #{lastIndex}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
|
|
+ order by "operationsNameId" desc
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
)
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|
|
@@ -373,10 +377,16 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lastIndex!=null">
|
|
|
|
|
+ and "personnelId" < #{lastIndex}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
|
ORDER BY "countNumber" DESC
|
|
ORDER BY "countNumber" DESC
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="!(capacityId!=null and capacityId!='')">
|
|
|
|
|
+ order by "personnelId" desc
|
|
|
|
|
+ </if>
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
)
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|
|
@@ -494,9 +504,17 @@
|
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
<if test="capacityId!=null and capacityId!=''">
|
|
|
AND RCA .CAPACITY_ID = #{capacityId}
|
|
AND RCA .CAPACITY_ID = #{capacityId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="lastIndex!=null">
|
|
|
|
|
+ and RCA.CAPACITY_ID < #{lastIndex}
|
|
|
|
|
+ </if>
|
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
<if test="(driverId!=null and driverId!='') or (driverId2!=null and driverId2!='')">
|
|
|
ORDER BY "countNumber" DESC
|
|
ORDER BY "countNumber" DESC
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="!((driverId!=null and driverId!='') or (driverId2!=null and driverId2!=''))">
|
|
|
|
|
+ order by RCA.CAPACITY_ID desc
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
)
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|
|
@@ -739,7 +757,11 @@
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lastIndex!=null">
|
|
|
|
|
+ and "transrangeId" < #{lastIndex}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
|
|
+ order by "transrangeId" desc
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getCategoryCodeByLike" resultType="java.util.Map">
|
|
<select id="getCategoryCodeByLike" resultType="java.util.Map">
|
|
@@ -799,8 +821,12 @@
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lastIndex!=null">
|
|
|
|
|
+ and RCT.CAPACITY_TYPE_ID < #{lastIndex}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
- GROUP BY RCT .CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
|
|
|
|
|
+ GROUP BY RCT.CAPACITY_TYPE_ID,RCT.CAPACITY_TYPE_NAME,RCT .CAPACITY_MAX_LOAD
|
|
|
|
|
+ ORDER BY RCT.CAPACITY_TYPE_ID desc
|
|
|
FETCH NEXT 10 ROWS ONLY
|
|
FETCH NEXT 10 ROWS ONLY
|
|
|
)
|
|
)
|
|
|
<if test="id!=null and id.size>0">
|
|
<if test="id!=null and id.size>0">
|