市场法规清单排序号bug修改
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
<select id="getOneByManifestNo" resultType="java.lang.String">
|
||||
select max(manifest_no) as manifest_no from laws_market_standard where manifest_no like CONCAT(#{str},'%')
|
||||
select CONCAT(max(REPLACE(manifest_no,#{str},'') * 1), '') as manifest_no from laws_market_standard where manifest_no like CONCAT(#{str},'%')
|
||||
<if test = "oldStr != null and oldStr != ''">
|
||||
and manifest_no <> #{oldStr}
|
||||
</if>
|
||||
|
||||
+1
-2
@@ -247,8 +247,7 @@ public class LawsMarketStandardServiceImpl extends ServiceImpl<LawsMarketStandar
|
||||
if(StringUtils.isBlank(manifestNo)){
|
||||
return s + "01";
|
||||
}
|
||||
String num = manifestNo.substring(manifestNo.length() - 2);
|
||||
int m = Integer.parseInt(num);
|
||||
int m = Integer.parseInt(manifestNo);
|
||||
return s + (m >= 10 ? (m + 1) : "0" + (m + 1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user