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
aac0e86f
Commit
aac0e86f
authored
Oct 30, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.人工检查数据导入&轨检仪器数据修改
parent
c3e037b5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
14 deletions
+12
-14
MovementRecordsMasterController.java
...checkData/controller/MovementRecordsMasterController.java
+1
-1
RailInspectionEquipmentItemDetailMapper.java
...kData/mapper/RailInspectionEquipmentItemDetailMapper.java
+2
-1
RailInspectionEquipmentItemServiceImpl.java
.../service/impl/RailInspectionEquipmentItemServiceImpl.java
+9
-12
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/controller/MovementRecordsMasterController.java
View file @
aac0e86f
...
@@ -331,7 +331,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -331,7 +331,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
this
.
movementRecordsMasterFace
.
uploadFile
(
file
,
id
);
this
.
movementRecordsMasterFace
.
uploadFile
(
file
,
id
);
return
Result
.
OK
(
"
导入
成功"
);
return
Result
.
OK
(
"
操作
成功"
);
}
}
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/mapper/RailInspectionEquipmentItemDetailMapper.java
View file @
aac0e86f
package
org
.
jeecg
.
modules
.
checkData
.
mapper
;
package
org
.
jeecg
.
modules
.
checkData
.
mapper
;
import
org.jeecg.modules.base.mapper.RootMapper
;
import
org.jeecg.modules.checkData.entity.RailInspectionEquipmentItemDetail
;
import
org.jeecg.modules.checkData.entity.RailInspectionEquipmentItemDetail
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.checkData.vo.RailInspectionEquipmentItemDetailVO
;
import
org.jeecg.modules.checkData.vo.RailInspectionEquipmentItemDetailVO
;
...
@@ -14,7 +15,7 @@ import java.util.List;
...
@@ -14,7 +15,7 @@ import java.util.List;
* @author hkl
* @author hkl
* @since 2023-07-16
* @since 2023-07-16
*/
*/
public
interface
RailInspectionEquipmentItemDetailMapper
extends
Base
Mapper
<
RailInspectionEquipmentItemDetail
>
{
public
interface
RailInspectionEquipmentItemDetailMapper
extends
Root
Mapper
<
RailInspectionEquipmentItemDetail
>
{
List
<
RailInspectionEquipmentItemDetailVO
>
detailList
(
String
itemId
);
List
<
RailInspectionEquipmentItemDetailVO
>
detailList
(
String
itemId
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/service/impl/RailInspectionEquipmentItemServiceImpl.java
View file @
aac0e86f
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.common.exception.JeecgBootException
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.checkData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.entity.RailInspectionEquipmentItemDetail
;
import
org.jeecg.modules.checkData.entity.RailInspectionEquipmentItemDetail
;
...
@@ -59,12 +60,12 @@ public class RailInspectionEquipmentItemServiceImpl extends ServiceImpl<RailInsp
...
@@ -59,12 +60,12 @@ public class RailInspectionEquipmentItemServiceImpl extends ServiceImpl<RailInsp
for
(
int
i
=
0
;
i
<
rowRecords
.
size
();
)
{
for
(
int
i
=
0
;
i
<
rowRecords
.
size
();
)
{
List
<
Object
>
cols
=
rowRecords
.
get
(
i
);
List
<
Object
>
cols
=
rowRecords
.
get
(
i
);
String
titleHeader
=
Convert
.
toStr
(
cols
.
get
(
1
));
String
titleHeader
=
Convert
.
toStr
(
cols
.
get
(
13
));
if
(
ObjectUtil
.
isNotEmpty
(
titleHeader
)
&&
(
titleHeader
.
contains
(
"杭地2号"
)
||
titleHeader
.
contains
(
"正线"
)))
{
// 检查起始里程
// 检查起始里程
BigDecimal
courseStartingMileage
=
Convert
.
toBigDecimal
(
cols
.
get
(
3
));
BigDecimal
courseStartingMileage
=
Convert
.
toBigDecimal
(
cols
.
get
(
3
));
// 检查终点里程
// 检查终点里程
BigDecimal
courseEndMileage
=
Convert
.
toBigDecimal
(
cols
.
get
(
6
));
BigDecimal
courseEndMileage
=
Convert
.
toBigDecimal
(
cols
.
get
(
6
));
if
((
ObjectUtil
.
isNotEmpty
(
titleHeader
)
&&
titleHeader
.
contains
(
"股道"
))
&&
(
ObjectUtil
.
isNotEmpty
(
courseStartingMileage
)
&&
ObjectUtil
.
isNotEmpty
(
courseEndMileage
)))
{
// 曲线半径
// 曲线半径
BigDecimal
curveRadius
=
null
;
BigDecimal
curveRadius
=
null
;
if
(
ObjectUtil
.
isNotEmpty
(
cols
.
get
(
18
).
toString
().
trim
()))
{
if
(
ObjectUtil
.
isNotEmpty
(
cols
.
get
(
18
).
toString
().
trim
()))
{
...
@@ -113,14 +114,10 @@ public class RailInspectionEquipmentItemServiceImpl extends ServiceImpl<RailInsp
...
@@ -113,14 +114,10 @@ public class RailInspectionEquipmentItemServiceImpl extends ServiceImpl<RailInsp
railInspectionEquipmentItemDetailMapper
.
delete
(
queryWrapper
);
railInspectionEquipmentItemDetailMapper
.
delete
(
queryWrapper
);
railInspectionEquipmentItemDetailMapper
.
insertBatch
(
itemDetails
);
this
.
saveBatch
(
items
);
this
.
saveBatch
(
items
);
itemDetails
.
forEach
(
itemDetail
->
{
itemDetail
.
setRailInspectionEquipmentId
(
masterId
);
railInspectionEquipmentItemDetailMapper
.
insert
(
itemDetail
);
});
}
catch
(
IOException
io
)
{
}
catch
(
IOException
io
)
{
log
.
error
(
"读取文件失败"
);
throw
new
JeecgBootException
(
io
);
}
}
...
...
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