|
@@ -8,6 +8,7 @@ import com.ozs.common.core.controller.BaseController;
|
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
|
import com.ozs.common.core.domain.entity.SysDictData;
|
|
|
import com.ozs.common.enums.BusinessType;
|
|
|
+import com.ozs.common.utils.AppendUtils;
|
|
|
import com.ozs.common.utils.IdempotenceUtils;
|
|
|
import com.ozs.common.utils.StringUtils;
|
|
|
import com.ozs.common.utils.file.FileUtils;
|
|
@@ -79,6 +80,15 @@ public class BaseRailwayManagementController extends BaseController {
|
|
|
o.setRailwayTypeName(datum.getDictLabel());
|
|
|
}
|
|
|
}
|
|
|
+ String end = "";
|
|
|
+ if (!StringUtils.isEmptySunhh(o.getInitialMileage())) {
|
|
|
+ end = AppendUtils.stringAppend(o.getInitialMileage());
|
|
|
+ }
|
|
|
+ String begin = "";
|
|
|
+ if (!StringUtils.isEmptySunhh(o.getEndMileage())) {
|
|
|
+ begin = AppendUtils.stringAppend(o.getEndMileage());
|
|
|
+ }
|
|
|
+ o.setMilesRange(begin + "-" + end);
|
|
|
return o;
|
|
|
}).collect(Collectors.toList());
|
|
|
page.setRecords(dto1);
|
|
@@ -216,6 +226,15 @@ public class BaseRailwayManagementController extends BaseController {
|
|
|
baseRailwayManagement.setRailwayTypeName(datum.getDictLabel());
|
|
|
}
|
|
|
}
|
|
|
+ String end = "";
|
|
|
+ if (!StringUtils.isEmptySunhh(baseRailwayManagement.getInitialMileage())) {
|
|
|
+ end = AppendUtils.stringAppend(baseRailwayManagement.getInitialMileage());
|
|
|
+ }
|
|
|
+ String begin = "";
|
|
|
+ if (!StringUtils.isEmptySunhh(baseRailwayManagement.getEndMileage())) {
|
|
|
+ begin = AppendUtils.stringAppend(baseRailwayManagement.getEndMileage());
|
|
|
+ }
|
|
|
+ baseRailwayManagement.setMilesRange(begin + "-" + end);
|
|
|
return AjaxResult.success(baseRailwayManagement);
|
|
|
}
|
|
|
|