yuansh il y a 2 mois
Parent
commit
85b40cfa65

+ 1 - 1
srm-module-code/src/main/java/org/jeecg/modules/baseCode/service/impl/SerialPatternServiceImpl.java

@@ -76,7 +76,7 @@ public class SerialPatternServiceImpl extends ServiceImpl<SerialPatternMapper, S
             // 查找最大值
             QueryWrapper<Map<String,String>> queryWrapper = new QueryWrapper<>();
             if(StringUtils.isNotBlank(prefix)){
-                queryWrapper.likeLeft(fieldName,prefix);
+                queryWrapper.likeRight(fieldName,prefix);
             }
             Map<String,Object> row = sysSerialPatternMapper.selectMax(tableName, fieldName, queryWrapper);
             String maxValue = "";