Commit fa272b0a authored by hkl's avatar hkl

feat:1.单元编号划分

parent b8ad4197
...@@ -117,9 +117,9 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper, ...@@ -117,9 +117,9 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
for (int i = 0; i < allRailList.size(); i++) { for (int i = 0; i < allRailList.size(); i++) {
RailManagement railManagement = allRailList.get(i); RailManagement railManagement = allRailList.get(i);
String railCode = "钢轨[上行]" + (i + 1); String railCode = "钢轨[上行]" + UnitCodeUtil.supplementZero(4, i + 1);
railManagement.setRailCode(railCode); railManagement.setRailCode(railCode);
String unitCode = "SXXGG" + UnitCodeUtil.supplementZero(4, i); String unitCode = "SXXGG" + UnitCodeUtil.supplementZero(4, i + 1);
railManagement.setUnitCode(unitCode); railManagement.setUnitCode(unitCode);
railManagement.setRailOrderNum(i + 1); railManagement.setRailOrderNum(i + 1);
railManagement.setCreateTime(new Date()); railManagement.setCreateTime(new Date());
...@@ -170,11 +170,6 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper, ...@@ -170,11 +170,6 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
return result; return result;
} }
// public static void main(String[] args) {
// List<RailManagement> generate = generate(BigDecimal.ZERO, new BigDecimal("64.709"), "1");
// System.out.printf(JSONObject.toJSONString(generate));
// }
@Override @Override
public List<Map<String, Object>> getLineSpecialRail(String lineAliasId) { public List<Map<String, Object>> getLineSpecialRail(String lineAliasId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment