소스 검색

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>