Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
H
hzsomms
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZTGK
hzsomms
Commits
8fe6203a
Commit
8fe6203a
authored
Jul 20, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.提交更新数据
parent
a263cc96
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
256 additions
and
104 deletions
+256
-104
RailInspectionEquipmentItemController.java
...ata/controller/RailInspectionEquipmentItemController.java
+51
-4
IRailInspectionEquipmentItemService.java
...tricData/service/IRailInspectionEquipmentItemService.java
+6
-0
RailInspectionEquipmentItemServiceImpl.java
.../service/impl/RailInspectionEquipmentItemServiceImpl.java
+60
-0
MovementAdditiveInfoController.java
...tCheckData/controller/MovementAdditiveInfoController.java
+0
-23
MovementCourseController.java
...uipmentCheckData/controller/MovementCourseController.java
+0
-23
MovementCourseInfoController.java
...entCheckData/controller/MovementCourseInfoController.java
+0
-23
MovementRecordsMasterController.java
...CheckData/controller/MovementRecordsMasterController.java
+90
-16
RailManagementController.java
...ules/deviceAsset/controller/RailManagementController.java
+4
-1
LightRailController.java
...modules/subwayNetwork/controller/LightRailController.java
+10
-12
ILightRailService.java
...eecg/modules/subwayNetwork/service/ILightRailService.java
+3
-0
LightRailServiceImpl.java
...ules/subwayNetwork/service/impl/LightRailServiceImpl.java
+18
-0
SubwaySectionServiceImpl.java
.../subwayNetwork/service/impl/SubwaySectionServiceImpl.java
+12
-2
SysUserController.java
...rg/jeecg/modules/system/controller/SysUserController.java
+1
-0
SysUserServiceImpl.java
...jeecg/modules/system/service/impl/SysUserServiceImpl.java
+1
-0
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/dynamicStaticGeometricData/controller/RailInspectionEquipmentItemController.java
View file @
8fe6203a
...
@@ -8,15 +8,16 @@ import org.jeecg.common.api.vo.Result;
...
@@ -8,15 +8,16 @@ import org.jeecg.common.api.vo.Result;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemDetail
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemDetailVO
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemDetailVO
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemVO
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemVO
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.service.IRailInspectionEquipmentItemDetailService
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.service.IRailInspectionEquipmentItemService
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.service.IRailInspectionEquipmentItemService
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.service.impl.RailInspectionEquipmentItemServiceImpl
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -32,6 +33,9 @@ import java.util.List;
...
@@ -32,6 +33,9 @@ import java.util.List;
@ApiOperation
(
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-检查项目"
)
@ApiOperation
(
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-检查项目"
)
public
class
RailInspectionEquipmentItemController
extends
JeecgController
<
RailInspectionEquipmentItem
,
IRailInspectionEquipmentItemService
>
{
public
class
RailInspectionEquipmentItemController
extends
JeecgController
<
RailInspectionEquipmentItem
,
IRailInspectionEquipmentItemService
>
{
@Resource
private
IRailInspectionEquipmentItemDetailService
railInspectionEquipmentItemDetailService
;
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目列表查询"
)
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目列表查询"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目列表查询"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目列表查询"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目列表查询"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目列表查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
...
@@ -43,6 +47,41 @@ public class RailInspectionEquipmentItemController extends JeecgController<RailI
...
@@ -43,6 +47,41 @@ public class RailInspectionEquipmentItemController extends JeecgController<RailI
return
Result
.
OK
(
record
);
return
Result
.
OK
(
record
);
}
}
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-保存"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-保存"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-保存"
)
@PostMapping
(
value
=
"/saveRecord"
)
public
Result
<
String
>
saveRecord
(
@RequestBody
RailInspectionEquipmentItem
record
)
{
this
.
service
.
saveRecord
(
record
);
return
Result
.
OK
(
"保存成功"
);
}
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-编辑"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-编辑"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-编辑"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
RailInspectionEquipmentItem
record
)
{
this
.
service
.
updateRecord
(
record
);
return
Result
.
OK
(
"保存成功"
);
}
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-删除"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-编辑"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-删除"
)
@GetMapping
(
value
=
"/deleteRecord"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"id"
,
value
=
"轨检仪静态检查项目id"
)
})
public
Result
<
String
>
deleteRecord
(
String
id
)
{
this
.
service
.
deleteRecord
(
id
);
return
Result
.
OK
(
"保存成功"
);
}
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细列表"
)
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细列表"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细列表"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细列表"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细列表"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细列表"
)
@GetMapping
(
value
=
"/detailList"
)
@GetMapping
(
value
=
"/detailList"
)
...
@@ -54,6 +93,14 @@ public class RailInspectionEquipmentItemController extends JeecgController<RailI
...
@@ -54,6 +93,14 @@ public class RailInspectionEquipmentItemController extends JeecgController<RailI
return
Result
.
OK
(
record
);
return
Result
.
OK
(
record
);
}
}
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细更新"
)
@ApiOperation
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细更新"
,
notes
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-项目明细更新"
)
@PostMapping
(
value
=
"/detailUpdateRecord"
)
public
Result
<
String
>
detailUpdateRecord
(
@RequestBody
RailInspectionEquipmentItemDetail
record
)
{
railInspectionEquipmentItemDetailService
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
@PostMapping
(
value
=
"/upload"
)
@PostMapping
(
value
=
"/upload"
)
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-导入"
)
@AutoLog
(
value
=
"检查数据-动静态几何尺寸数据-轨检仪静态检查数据-导入"
)
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/dynamicStaticGeometricData/service/IRailInspectionEquipmentItemService.java
View file @
8fe6203a
...
@@ -23,4 +23,10 @@ public interface IRailInspectionEquipmentItemService extends IService<RailInspec
...
@@ -23,4 +23,10 @@ public interface IRailInspectionEquipmentItemService extends IService<RailInspec
void
uploadFile
(
String
masterId
,
MultipartFile
file
);
void
uploadFile
(
String
masterId
,
MultipartFile
file
);
List
<
RailInspectionEquipmentItemDetailVO
>
detailList
(
String
masterId
);
List
<
RailInspectionEquipmentItemDetailVO
>
detailList
(
String
masterId
);
void
saveRecord
(
RailInspectionEquipmentItem
record
);
void
updateRecord
(
RailInspectionEquipmentItem
record
);
void
deleteRecord
(
String
itemId
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/dynamicStaticGeometricData/service/impl/RailInspectionEquipmentItemServiceImpl.java
View file @
8fe6203a
...
@@ -6,6 +6,9 @@ import cn.hutool.poi.excel.ExcelReader;
...
@@ -6,6 +6,9 @@ import cn.hutool.poi.excel.ExcelReader;
import
cn.hutool.poi.excel.ExcelUtil
;
import
cn.hutool.poi.excel.ExcelUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemDetail
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemDetail
;
...
@@ -191,4 +194,61 @@ public class RailInspectionEquipmentItemServiceImpl extends ServiceImpl<RailInsp
...
@@ -191,4 +194,61 @@ public class RailInspectionEquipmentItemServiceImpl extends ServiceImpl<RailInsp
return
railInspectionEquipmentItemDetailMapper
.
detailList
(
itemId
);
return
railInspectionEquipmentItemDetailMapper
.
detailList
(
itemId
);
}
}
@Override
public
void
saveRecord
(
RailInspectionEquipmentItem
record
)
{
// 保存item表
record
.
setId
(
UUIDGenerator
.
generate
());
record
.
setDelFlag
(
"0"
);
this
.
save
(
record
);
// 初始化明细表
List
<
RailInspectionEquipmentItemDetail
>
itemDetails
=
new
ArrayList
<>();
int
measurePoint
=
1
;
int
sort
=
1
;
for
(
int
i
=
2
;
i
<
32
;
i
++)
{
RailInspectionEquipmentItemDetail
itemDetail
=
new
RailInspectionEquipmentItemDetail
();
itemDetail
.
setId
(
UUIDGenerator
.
generate
());
itemDetail
.
setRailInspectionEquipmentId
(
record
.
getRailInspectionEquipmentId
());
itemDetail
.
setRailInspectionEquipmentItemId
(
record
.
getId
());
// 检查项目
itemDetail
.
setCheckItem
(
""
);
//轨距
itemDetail
.
setTrackGauge
(
""
);
//水平
itemDetail
.
setLevel
(
""
);
//三角坑
itemDetail
.
setTriangularPit
(
""
);
//解析轨向、高低及其它
itemDetail
.
setOther
(
""
);
// 测点
itemDetail
.
setMeasurePoint
(
measurePoint
-
1
);
if
(
measurePoint
%
10
==
0
)
{
measurePoint
=
1
;
}
else
{
measurePoint
++;
}
itemDetail
.
setInfoSort
(
sort
++);
itemDetails
.
add
(
itemDetail
);
}
itemDetails
.
forEach
(
itemDetail
->
{
railInspectionEquipmentItemDetailMapper
.
insert
(
itemDetail
);
});
}
@Override
public
void
updateRecord
(
RailInspectionEquipmentItem
record
)
{
this
.
updateById
(
record
);
}
@Override
public
void
deleteRecord
(
String
itemId
)
{
this
.
removeById
(
itemId
);
LambdaUpdateWrapper
<
RailInspectionEquipmentItemDetail
>
wrapper
=
Wrappers
.
lambdaUpdate
();
railInspectionEquipmentItemDetailMapper
.
delete
(
wrapper
.
eq
(
RailInspectionEquipmentItemDetail:
:
getRailInspectionEquipmentItemId
,
itemId
));
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/MovementAdditiveInfoController.java
deleted
100644 → 0
View file @
a263cc96
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
controller
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementAdditiveInfo
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IMovementAdditiveInfoService
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.jeecg.common.system.base.controller.JeecgController
;
/**
* <p>
* 动静态几何尺寸对应的添乘仪详情表 前端控制器
* </p>
*
* @author hkl
* @since 2023-07-17
*/
@RestController
@RequestMapping
(
"/movement/additive"
)
public
class
MovementAdditiveInfoController
extends
JeecgController
<
MovementAdditiveInfo
,
IMovementAdditiveInfoService
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/MovementCourseController.java
deleted
100644 → 0
View file @
a263cc96
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
controller
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementCourse
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IMovementCourseService
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.jeecg.common.system.base.controller.JeecgController
;
/**
* <p>
* 动静态几何尺寸对应得里程相关信息表 前端控制器
* </p>
*
* @author hkl
* @since 2023-07-11
*/
@RestController
@RequestMapping
(
"/movement/course"
)
public
class
MovementCourseController
extends
JeecgController
<
MovementCourse
,
IMovementCourseService
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/MovementCourseInfoController.java
deleted
100644 → 0
View file @
a263cc96
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
controller
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementCourseInfo
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IMovementCourseInfoService
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.jeecg.common.system.base.controller.JeecgController
;
/**
* <p>
* 动静态几何尺寸对应得里程相关信息详情表 前端控制器
* </p>
*
* @author hkl
* @since 2023-07-11
*/
@RestController
@RequestMapping
(
"/movement/courseInfo"
)
public
class
MovementCourseInfoController
extends
JeecgController
<
MovementCourseInfo
,
IMovementCourseInfoService
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/MovementRecordsMasterController.java
View file @
8fe6203a
...
@@ -11,13 +11,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -11,13 +11,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.*
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.shiro.SecurityUtils
;
import
org.apache.shiro.SecurityUtils
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.vo.LoginUser
;
import
org.jeecg.common.system.vo.LoginUser
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementAdditiveInfoDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementAdditiveInfoDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementAdditiveInfo
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementAdditiveInfo
;
...
@@ -100,6 +100,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -100,6 +100,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
/**
/**
* 动静态几何新增时初始化回显数据
* 动静态几何新增时初始化回显数据
*
* @param lightRailId
* @param lightRailId
* @param lineAliasId
* @param lineAliasId
* @param sectionId
* @param sectionId
...
@@ -247,15 +248,15 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -247,15 +248,15 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
if
(
"1"
.
equals
(
type
))
{
if
(
"1"
.
equals
(
type
))
{
//人工静态检查相关
//人工静态检查相关
//删除里程详情
//删除里程详情
LambdaUpdateWrapper
<
MovementCourseInfo
>
lambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
();
//
LambdaUpdateWrapper<MovementCourseInfo> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
lambdaUpdateWrapper
.
set
(
MovementCourseInfo:
:
getDelFlag
,
"1"
);
//
lambdaUpdateWrapper.set(MovementCourseInfo::getDelFlag, "1");
lambdaUpdateWrapper
.
eq
(
MovementCourseInfo:
:
getMovementMasterId
,
id
);
//
lambdaUpdateWrapper.eq(MovementCourseInfo::getMovementMasterId, id);
movementCourseInfoService
.
update
(
lambdaUpdateWrapper
);
movementCourseInfoService
.
lambdaUpdate
().
eq
(
MovementCourseInfo:
:
getMovementMasterId
,
id
).
remove
(
);
//删除里程相关
//删除里程相关
LambdaUpdateWrapper
<
MovementCourse
>
updateWrapper
=
Wrappers
.
lambdaUpdate
();
//
LambdaUpdateWrapper<MovementCourse> updateWrapper = Wrappers.lambdaUpdate();
updateWrapper
.
set
(
MovementCourse:
:
getDelFlag
,
"1"
);
//
updateWrapper.set(MovementCourse::getDelFlag, "1");
updateWrapper
.
eq
(
MovementCourse:
:
getMovementMasterId
,
id
);
//
updateWrapper.eq(MovementCourse::getMovementMasterId, id);
movementCourseService
.
update
(
updateWrapper
);
movementCourseService
.
lambdaUpdate
().
eq
(
MovementCourse:
:
getMovementMasterId
,
id
).
remove
(
);
}
else
if
(
"4"
.
equals
(
type
))
{
}
else
if
(
"4"
.
equals
(
type
))
{
//删除添乘仪详情
//删除添乘仪详情
LambdaUpdateWrapper
<
MovementAdditiveInfo
>
updateQuery
=
Wrappers
.
lambdaUpdate
();
LambdaUpdateWrapper
<
MovementAdditiveInfo
>
updateQuery
=
Wrappers
.
lambdaUpdate
();
...
@@ -406,7 +407,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -406,7 +407,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
movementCourse
.
setLongExtent
(
new
BigDecimal
(
longExtent
));
movementCourse
.
setLongExtent
(
new
BigDecimal
(
longExtent
));
}
}
sort
++;
sort
++;
courseId
=
IdWorker
.
get32UUID
();
courseId
=
UUIDGenerator
.
generate
();
movementCourse
.
setId
(
courseId
);
movementCourse
.
setId
(
courseId
);
movementCourse
.
setDelFlag
(
"0"
);
movementCourse
.
setDelFlag
(
"0"
);
movementCourse
.
setCreateTime
(
new
Date
());
movementCourse
.
setCreateTime
(
new
Date
());
...
@@ -530,10 +531,83 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -530,10 +531,83 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
}
}
return
Result
.
ok
(
"操作成功"
);
return
Result
.
ok
(
"操作成功"
);
}
}
//**********************************添乘仪检查******************************
@AutoLog
(
value
=
"人工静态检查数据-保存曲线半径信息"
)
@ApiOperation
(
value
=
"人工静态检查数据-保存曲线半径信息"
,
notes
=
"人工静态检查数据-保存曲线半径信息"
)
@PostMapping
(
value
=
"/saveAdditive"
)
public
Result
<
String
>
saveAdditive
(
@RequestBody
MovementCourse
record
)
{
// 保存人工项目检查表
record
.
setId
(
UUIDGenerator
.
generate
());
record
.
setDelFlag
(
"0"
);
movementCourseService
.
save
(
record
);
// 初始化下面的格子模板
List
<
MovementCourseInfo
>
movementCourseInfos
=
new
ArrayList
<>();
int
measurePoint
=
1
;
String
trackCode
=
"1"
;
for
(
int
i
=
0
;
i
<
24
;
i
++)
{
MovementCourseInfo
movementCourseInfo
=
new
MovementCourseInfo
();
movementCourseInfo
.
setMovementMasterId
(
record
.
getMovementMasterId
());
movementCourseInfo
.
setMovementCourseId
(
record
.
getId
());
movementCourseInfo
.
setMeasurePoint
(
measurePoint
);
movementCourseInfo
.
setDelFlag
(
"0"
);
movementCourseInfo
.
setTrackCode
(
trackCode
);
if
(
measurePoint
%
8
==
0
)
{
measurePoint
=
1
;
trackCode
=
String
.
valueOf
(
Integer
.
valueOf
(
trackCode
)
+
1
);
}
movementCourseInfos
.
add
(
movementCourseInfo
);
}
movementCourseInfoService
.
saveBatch
(
movementCourseInfos
);
return
Result
.
OK
(
"操作成功"
);
}
@AutoLog
(
value
=
"人工静态检查数据-更新曲线半径信息"
)
@ApiOperation
(
value
=
"人工静态检查数据-更新曲线半径信息"
,
notes
=
"人工静态检查数据-更新曲线半径信息"
)
@PostMapping
(
value
=
"/updateAdditive"
)
public
Result
<
String
>
updateAdditive
(
@RequestBody
MovementCourse
record
)
{
// 保存人工项目检查表
movementCourseService
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
@AutoLog
(
value
=
"人工静态检查数据-删除曲线半径信息"
)
@ApiOperation
(
value
=
"人工静态检查数据-删除曲线半径信息"
,
notes
=
"人工静态检查数据-删除曲线半径信息"
)
@GetMapping
(
value
=
"/deleteAdditive"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"movementCourseId"
,
required
=
true
,
value
=
"曲线半径信息Id"
)
})
public
Result
<
String
>
deleteAdditive
(
String
movementCourseId
)
{
//删除里程详情
movementCourseInfoService
.
lambdaUpdate
()
.
eq
(
MovementCourseInfo:
:
getMovementCourseId
,
movementCourseId
)
.
remove
();
//删除里程相关
movementCourseService
.
removeById
(
movementCourseId
);
return
Result
.
OK
(
"操作成功"
);
}
@AutoLog
(
value
=
"人工静态检查数据-更新轨道信息"
)
@ApiOperation
(
value
=
"人工静态检查数据-更新轨道信息"
,
notes
=
"人工静态检查数据-更新轨道信息"
)
@PostMapping
(
value
=
"/updateAdditiveDetail"
)
public
Result
<
String
>
updateAdditiveDetail
(
@RequestBody
MovementCourseInfo
record
)
{
movementCourseInfoService
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
//**********************************添乘仪检查******************************
/**
/**
* 查询添乘仪详情
* 查询添乘仪详情
*
* @param pageNo
* @param pageNo
* @param pageSize
* @param pageSize
* @param dto
* @param dto
...
@@ -543,9 +617,9 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -543,9 +617,9 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
@ApiOperation
(
value
=
"查询添乘仪详情"
,
notes
=
"查询添乘仪详情"
)
@ApiOperation
(
value
=
"查询添乘仪详情"
,
notes
=
"查询添乘仪详情"
)
@GetMapping
(
value
=
"/getMovementAdditiveInfo"
)
@GetMapping
(
value
=
"/getMovementAdditiveInfo"
)
public
Result
<
IPage
<
MovementAdditiveInfoVO
>>
getMovementAdditiveInfo
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
public
Result
<
IPage
<
MovementAdditiveInfoVO
>>
getMovementAdditiveInfo
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
MovementAdditiveInfoDTO
dto
)
{
MovementAdditiveInfoDTO
dto
)
{
if
(
ObjectUtil
.
isEmpty
(
dto
.
getMovementMasterId
()))
{
if
(
ObjectUtil
.
isEmpty
(
dto
.
getMovementMasterId
()))
{
return
Result
.
error
(
"参数不完整"
);
return
Result
.
error
(
"参数不完整"
);
}
}
Page
<
MovementAdditiveInfoVO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
Page
<
MovementAdditiveInfoVO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/controller/RailManagementController.java
View file @
8fe6203a
...
@@ -33,6 +33,8 @@ import java.util.Arrays;
...
@@ -33,6 +33,8 @@ import java.util.Arrays;
@RequestMapping
(
"/deviceAsset/railManagement"
)
@RequestMapping
(
"/deviceAsset/railManagement"
)
@Api
(
tags
=
"资产管理-钢轨管理"
)
@Api
(
tags
=
"资产管理-钢轨管理"
)
public
class
RailManagementController
extends
JeecgController
<
RailManagement
,
IRailManagementService
>
{
public
class
RailManagementController
extends
JeecgController
<
RailManagement
,
IRailManagementService
>
{
@AutoLog
(
value
=
"资产管理-钢轨管理-分页列表查询"
)
@AutoLog
(
value
=
"资产管理-钢轨管理-分页列表查询"
)
@ApiOperation
(
value
=
"资产管理-道岔管理-分页列表查询"
,
notes
=
"资产管理-道岔管理-分页列表查询"
)
@ApiOperation
(
value
=
"资产管理-道岔管理-分页列表查询"
,
notes
=
"资产管理-道岔管理-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
...
@@ -75,7 +77,8 @@ public class RailManagementController extends JeecgController<RailManagement, IR
...
@@ -75,7 +77,8 @@ public class RailManagementController extends JeecgController<RailManagement, IR
@ApiOperation
(
value
=
"资产管理-钢轨管理-智能生成"
,
notes
=
"资产管理-钢轨管理-智能生成"
)
@ApiOperation
(
value
=
"资产管理-钢轨管理-智能生成"
,
notes
=
"资产管理-钢轨管理-智能生成"
)
@GetMapping
(
value
=
"/intelligentGeneration"
)
@GetMapping
(
value
=
"/intelligentGeneration"
)
public
Result
<
String
>
intelligentGeneration
()
{
public
Result
<
String
>
intelligentGeneration
()
{
this
.
service
.
intelligentGeneration
(
"1671390979417616386"
);
String
id
=
"1671390979417616386"
;
// 线路id
this
.
service
.
intelligentGeneration
(
id
);
return
Result
.
OK
(
"生成成功"
);
return
Result
.
OK
(
"生成成功"
);
}
}
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/controller/LightRailController.java
View file @
8fe6203a
...
@@ -41,15 +41,13 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
...
@@ -41,15 +41,13 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
@RequestMapping
(
"/subwayNetwork/lightRail"
)
@RequestMapping
(
"/subwayNetwork/lightRail"
)
@Slf4j
@Slf4j
public
class
LightRailController
extends
JeecgController
<
LightRail
,
ILightRailService
>
{
public
class
LightRailController
extends
JeecgController
<
LightRail
,
ILightRailService
>
{
@Autowired
private
ILightRailService
lightRailService
;
@AutoLog
(
value
=
"线路车站-轻轨线路-分页列表查询"
)
@AutoLog
(
value
=
"线路车站-轻轨线路-分页列表查询"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-分页列表查询"
,
notes
=
"线路车站-轻轨线路-分页列表查询"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-分页列表查询"
,
notes
=
"线路车站-轻轨线路-分页列表查询"
)
@PostMapping
(
value
=
"/list"
)
@PostMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
LightRailQueryVO
>>
queryPageList
(
@RequestBody
PageSearch
<
LightRailQueryDTO
>
dto
)
{
public
Result
<
IPage
<
LightRailQueryVO
>>
queryPageList
(
@RequestBody
PageSearch
<
LightRailQueryDTO
>
dto
)
{
IPage
<
LightRailQueryVO
>
pageList
=
lightRailS
ervice
.
queryPageList
(
dto
);
IPage
<
LightRailQueryVO
>
pageList
=
this
.
s
ervice
.
queryPageList
(
dto
);
return
Result
.
OK
(
pageList
);
return
Result
.
OK
(
pageList
);
}
}
...
@@ -62,9 +60,9 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
...
@@ -62,9 +60,9 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
lightRail
.
setUpdateTime
(
new
Date
());
lightRail
.
setUpdateTime
(
new
Date
());
if
(
ObjectUtil
.
isEmpty
(
lightRail
.
getId
()))
{
if
(
ObjectUtil
.
isEmpty
(
lightRail
.
getId
()))
{
lightRail
.
setCreateTime
(
new
Date
());
lightRail
.
setCreateTime
(
new
Date
());
lightRailS
ervice
.
save
(
lightRail
);
this
.
s
ervice
.
save
(
lightRail
);
}
else
{
}
else
{
lightRailS
ervice
.
updateById
(
lightRail
);
this
.
s
ervice
.
updateById
(
lightRail
);
}
}
return
Result
.
OK
(
"编辑成功!"
);
return
Result
.
OK
(
"编辑成功!"
);
...
@@ -80,7 +78,7 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
...
@@ -80,7 +78,7 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
@ApiOperation
(
value
=
"线路车站-轻轨线路-通过id删除"
,
notes
=
"线路车站-轻轨线路-通过id删除"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-通过id删除"
,
notes
=
"线路车站-轻轨线路-通过id删除"
)
@GetMapping
(
value
=
"/delete"
)
@GetMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
lightRailS
ervice
.
removeById
(
id
);
this
.
s
ervice
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
return
Result
.
OK
(
"删除成功!"
);
}
}
...
@@ -94,7 +92,7 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
...
@@ -94,7 +92,7 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
@ApiOperation
(
value
=
"线路车站-轻轨线路-批量删除"
,
notes
=
"线路车站-轻轨线路-批量删除"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-批量删除"
,
notes
=
"线路车站-轻轨线路-批量删除"
)
@GetMapping
(
value
=
"/deleteBatch"
)
@GetMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
lightRailS
ervice
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
this
.
s
ervice
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
return
Result
.
OK
(
"批量删除成功!"
);
}
}
...
@@ -108,7 +106,7 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
...
@@ -108,7 +106,7 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
@ApiOperation
(
value
=
"线路车站-轻轨线路-通过id查询"
,
notes
=
"线路车站-轻轨线路-通过id查询"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-通过id查询"
,
notes
=
"线路车站-轻轨线路-通过id查询"
)
@GetMapping
(
value
=
"/queryById"
)
@GetMapping
(
value
=
"/queryById"
)
public
Result
<
LightRail
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
public
Result
<
LightRail
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
LightRail
lightRail
=
lightRailS
ervice
.
getById
(
id
);
LightRail
lightRail
=
this
.
s
ervice
.
getById
(
id
);
if
(
lightRail
==
null
)
{
if
(
lightRail
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
);
return
Result
.
error
(
"未找到对应数据"
);
}
}
...
@@ -119,23 +117,23 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
...
@@ -119,23 +117,23 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
@ApiOperation
(
value
=
"线路车站-轻轨线路-获取全部线路"
,
notes
=
"线路车站-轻轨线路-获取全部线路"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-获取全部线路"
,
notes
=
"线路车站-轻轨线路-获取全部线路"
)
@GetMapping
(
value
=
"/listAll"
)
@GetMapping
(
value
=
"/listAll"
)
public
Result
<
List
<
Map
<
String
,
Object
>>>
listAll
()
{
public
Result
<
List
<
Map
<
String
,
Object
>>>
listAll
()
{
List
<
LightRail
>
pageList
=
lightRailS
ervice
.
list
();
List
<
LightRail
>
pageList
=
this
.
s
ervice
.
list
();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
for
(
LightRail
lightRail
:
pageList
)
{
for
(
LightRail
lightRail
:
pageList
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"label"
,
lightRail
.
getRailLineName
());
map
.
put
(
"label"
,
lightRail
.
getRailLineName
());
map
.
put
(
"value"
,
lightRail
.
getId
()
);
map
.
put
(
"value"
,
lightRail
.
getId
());
list
.
add
(
map
);
list
.
add
(
map
);
}
}
return
Result
.
OK
(
list
);
return
Result
.
OK
(
list
);
}
}
@AutoLog
(
value
=
"线路车站-
线别管理
-获取区间车站映射"
)
@AutoLog
(
value
=
"线路车站-
轻轨线路
-获取区间车站映射"
)
@ApiOperation
(
value
=
"线路车站-线别管理-获取区间车站映射"
,
notes
=
"线路车站-线别管理-获取区间车站映射"
)
@ApiOperation
(
value
=
"线路车站-线别管理-获取区间车站映射"
,
notes
=
"线路车站-线别管理-获取区间车站映射"
)
@GetMapping
(
value
=
"/getSectionStation"
)
@GetMapping
(
value
=
"/getSectionStation"
)
public
Result
<
List
<
SectionStationMapVO
>>
getSectionStation
()
{
public
Result
<
List
<
SectionStationMapVO
>>
getSectionStation
()
{
return
Result
.
OK
(
lightRailS
ervice
.
getSectionStation
());
return
Result
.
OK
(
this
.
s
ervice
.
getSectionStation
());
}
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/service/ILightRailService.java
View file @
8fe6203a
...
@@ -9,6 +9,7 @@ import org.jeecg.modules.subwayNetwork.vo.LightRailQueryVO;
...
@@ -9,6 +9,7 @@ import org.jeecg.modules.subwayNetwork.vo.LightRailQueryVO;
import
org.jeecg.modules.subwayNetwork.vo.SectionStationMapVO
;
import
org.jeecg.modules.subwayNetwork.vo.SectionStationMapVO
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @Description: 线路车站-轻轨线路
* @Description: 线路车站-轻轨线路
...
@@ -27,4 +28,6 @@ public interface ILightRailService extends IService<LightRail> {
...
@@ -27,4 +28,6 @@ public interface ILightRailService extends IService<LightRail> {
IPage
<
LightRailQueryVO
>
queryPageList
(
PageSearch
<
LightRailQueryDTO
>
dto
);
IPage
<
LightRailQueryVO
>
queryPageList
(
PageSearch
<
LightRailQueryDTO
>
dto
);
List
<
SectionStationMapVO
>
getSectionStation
();
List
<
SectionStationMapVO
>
getSectionStation
();
List
<
Map
<
String
,
Object
>>
getTree
();
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/service/impl/LightRailServiceImpl.java
View file @
8fe6203a
...
@@ -7,12 +7,17 @@ import org.jeecg.common.api.dto.PageSearch;
...
@@ -7,12 +7,17 @@ import org.jeecg.common.api.dto.PageSearch;
import
org.jeecg.modules.subwayNetwork.dto.LightRailQueryDTO
;
import
org.jeecg.modules.subwayNetwork.dto.LightRailQueryDTO
;
import
org.jeecg.modules.subwayNetwork.entity.LightRail
;
import
org.jeecg.modules.subwayNetwork.entity.LightRail
;
import
org.jeecg.modules.subwayNetwork.mapper.LightRailMapper
;
import
org.jeecg.modules.subwayNetwork.mapper.LightRailMapper
;
import
org.jeecg.modules.subwayNetwork.mapper.SubwaySectionMapper
;
import
org.jeecg.modules.subwayNetwork.service.ILightRailService
;
import
org.jeecg.modules.subwayNetwork.service.ILightRailService
;
import
org.jeecg.modules.subwayNetwork.service.ISubwaySectionService
;
import
org.jeecg.modules.subwayNetwork.service.ITrainStationService
;
import
org.jeecg.modules.subwayNetwork.vo.LightRailQueryVO
;
import
org.jeecg.modules.subwayNetwork.vo.LightRailQueryVO
;
import
org.jeecg.modules.subwayNetwork.vo.SectionStationMapVO
;
import
org.jeecg.modules.subwayNetwork.vo.SectionStationMapVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @Description: 线路车站-线别管理
* @Description: 线路车站-线别管理
...
@@ -20,6 +25,12 @@ import java.util.List;
...
@@ -20,6 +25,12 @@ import java.util.List;
@Service
@Service
public
class
LightRailServiceImpl
extends
ServiceImpl
<
LightRailMapper
,
LightRail
>
implements
ILightRailService
{
public
class
LightRailServiceImpl
extends
ServiceImpl
<
LightRailMapper
,
LightRail
>
implements
ILightRailService
{
@Resource
private
SubwaySectionMapper
subwaySectionMapper
;
@Resource
private
ITrainStationService
trainStationService
;
@Override
@Override
public
IPage
<
LightRailQueryVO
>
queryPageList
(
PageSearch
<
LightRailQueryDTO
>
dto
)
{
public
IPage
<
LightRailQueryVO
>
queryPageList
(
PageSearch
<
LightRailQueryDTO
>
dto
)
{
IPage
<
LightRailQueryVO
>
page
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
IPage
<
LightRailQueryVO
>
page
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
...
@@ -32,4 +43,11 @@ public class LightRailServiceImpl extends ServiceImpl<LightRailMapper, LightRail
...
@@ -32,4 +43,11 @@ public class LightRailServiceImpl extends ServiceImpl<LightRailMapper, LightRail
public
List
<
SectionStationMapVO
>
getSectionStation
()
{
public
List
<
SectionStationMapVO
>
getSectionStation
()
{
return
this
.
baseMapper
.
getSectionStation
();
return
this
.
baseMapper
.
getSectionStation
();
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
getTree
()
{
// 1.查询所有线路
return
null
;
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/service/impl/SubwaySectionServiceImpl.java
View file @
8fe6203a
...
@@ -74,9 +74,19 @@ public class SubwaySectionServiceImpl extends ServiceImpl<SubwaySectionMapper, S
...
@@ -74,9 +74,19 @@ public class SubwaySectionServiceImpl extends ServiceImpl<SubwaySectionMapper, S
// 3.2 查询这个单行区间的车站
// 3.2 查询这个单行区间的车站
QueryWrapper
<
TrainStation
>
tsQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
TrainStation
>
tsQueryWrapper
=
new
QueryWrapper
<>();
tsQueryWrapper
.
lambda
().
ge
(
TrainStation:
:
getSeq
,
startTrainStation
.
getSeq
())
// 可能会存在先选开始里程大的那个,再选开始里程小的那个
int
startSeq
=
startTrainStation
.
getSeq
();
int
endSeq
=
endTrainStation
.
getSeq
();
if
(
startTrainStation
.
getStartingMileage
().
compareTo
(
endTrainStation
.
getStartingMileage
())
>
0
)
{
startSeq
=
endTrainStation
.
getSeq
();
endSeq
=
startTrainStation
.
getSeq
();
}
tsQueryWrapper
.
lambda
()
.
ge
(
TrainStation:
:
getSeq
,
startSeq
)
.
le
(
TrainStation:
:
getSeq
,
endSeq
)
.
eq
(
TrainStation:
:
getLineAliasId
,
dto
.
getLineAliasId
())
.
eq
(
TrainStation:
:
getLineAliasId
,
dto
.
getLineAliasId
())
.
le
(
TrainStation:
:
getSeq
,
endTrainStation
.
getSeq
())
.
eq
(
TrainStation:
:
getLightRailId
,
subwaySection
.
getLightRailId
());
.
eq
(
TrainStation:
:
getLightRailId
,
subwaySection
.
getLightRailId
());
List
<
TrainStation
>
trainStations
=
trainStationMapper
.
selectList
(
tsQueryWrapper
);
List
<
TrainStation
>
trainStations
=
trainStationMapper
.
selectList
(
tsQueryWrapper
);
LightRail
lightRail
=
lightRailMapper
.
selectById
(
subwaySection
.
getLightRailId
());
LightRail
lightRail
=
lightRailMapper
.
selectById
(
subwaySection
.
getLightRailId
());
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
View file @
8fe6203a
...
@@ -150,6 +150,7 @@ public class SysUserController {
...
@@ -150,6 +150,7 @@ public class SysUserController {
@RequestMapping
(
value
=
"/listAll"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/listAll"
,
method
=
RequestMethod
.
GET
)
public
Result
<
IPage
<
SysUser
>>
queryAllPageList
(
SysUser
user
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
public
Result
<
IPage
<
SysUser
>>
queryAllPageList
(
SysUser
user
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
QueryWrapper
<
SysUser
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
user
,
req
.
getParameterMap
());
QueryWrapper
<
SysUser
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
user
,
req
.
getParameterMap
());
return
sysUserService
.
queryPageList
(
req
,
queryWrapper
,
pageSize
,
pageNo
);
return
sysUserService
.
queryPageList
(
req
,
queryWrapper
,
pageSize
,
pageNo
);
}
}
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java
View file @
8fe6203a
...
@@ -100,6 +100,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
...
@@ -100,6 +100,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
@Override
@Override
public
Result
<
IPage
<
SysUser
>>
queryPageList
(
HttpServletRequest
req
,
QueryWrapper
<
SysUser
>
queryWrapper
,
Integer
pageSize
,
Integer
pageNo
)
{
public
Result
<
IPage
<
SysUser
>>
queryPageList
(
HttpServletRequest
req
,
QueryWrapper
<
SysUser
>
queryWrapper
,
Integer
pageSize
,
Integer
pageNo
)
{
Result
<
IPage
<
SysUser
>>
result
=
new
Result
<
IPage
<
SysUser
>>();
Result
<
IPage
<
SysUser
>>
result
=
new
Result
<
IPage
<
SysUser
>>();
String
realname
=
req
.
getParameter
(
"realname"
);
//update-begin-Author:wangshuai--Date:20211119--for:【vue3】通过部门id查询用户,通过code查询id
//update-begin-Author:wangshuai--Date:20211119--for:【vue3】通过部门id查询用户,通过code查询id
//部门ID
//部门ID
String
departId
=
req
.
getParameter
(
"departId"
);
String
departId
=
req
.
getParameter
(
"departId"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment