|
@@ -94,7 +94,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getMaxSort" resultType="java.lang.Long">
|
|
|
- SELECT MAX(SORT) from T_CM_0310
|
|
|
+ SELECT nvl(MAX(SORT),0) from T_CM_0310
|
|
|
</select>
|
|
|
|
|
|
<select id="getMaxId" resultType="java.lang.String">
|
|
@@ -108,7 +108,6 @@
|
|
|
and DETECTIONDEPARTMENT = #{detectiondepartment,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</delete>
|
|
|
-
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from T_CM_0310
|
|
|
where WATERCODE = #{watercode,jdbcType=VARCHAR}
|