浏览代码

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

QuietShadow 3 年之前
父节点
当前提交
e07d11d1a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/steerinfo/ems/trmcalpoint/mapper/TRmCalpointMapper.xml

+ 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>