Browse Source

update----计量点新增功能id格式错误

QuietShadow 3 years ago
parent
commit
e07d11d1a5

+ 1 - 1
src/main/java/com/steerinfo/ems/trmcalpoint/mapper/TRmCalpointMapper.xml

@@ -1297,7 +1297,7 @@
     </select>
 
   <select id="getMaxId" parameterType="com.steerinfo.ems.trmcalpoint.model.TRmCalpoint" resultType="string">
-    SELECT MAX(SUBSTR(ITEMID, 10)) FROM T_RM_CALPOINT
+    SELECT MAX(SUBSTR(ITEMID, -4)) FROM T_RM_CALPOINT
     where ITEMID like '${head}%'
   </select>