diff --git a/src/main/java/com/cm/systemcity/service/grid/impl/GridServiceImpl.java b/src/main/java/com/cm/systemcity/service/grid/impl/GridServiceImpl.java index 7acbb8a..5f1f146 100644 --- a/src/main/java/com/cm/systemcity/service/grid/impl/GridServiceImpl.java +++ b/src/main/java/com/cm/systemcity/service/grid/impl/GridServiceImpl.java @@ -597,7 +597,7 @@ public class GridServiceImpl extends BaseService implements IGridService { return areaCode + String.format("%03d", Integer.parseInt(areaLastPO.getGridCode().substring(areaLastPO.getGridCode().length() - 4)) + 1); } // 网格编码存在不更改 - return areaCode + String.format("%03d", Integer.parseInt(gridCode.substring(gridCode.length() - 4))); + return areaCode + String.format("%03d", Integer.parseInt(gridCode.substring(gridCode.length() - 3))); } }