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
5eb0aff9
Commit
5eb0aff9
authored
Jul 15, 2023
by
shizhilong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
9dacc46c
78239ed7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
7 deletions
+31
-7
MovementRecordsMasterController.java
...CheckData/controller/MovementRecordsMasterController.java
+15
-4
MovementCourseDTO.java
...s/checkData/equipmentCheckData/dto/MovementCourseDTO.java
+3
-0
MovementCourseInfoDTO.java
...eckData/equipmentCheckData/dto/MovementCourseInfoDTO.java
+3
-1
MovementCourse.java
...s/checkData/equipmentCheckData/entity/MovementCourse.java
+3
-0
MovementCourseInfo.java
...eckData/equipmentCheckData/entity/MovementCourseInfo.java
+3
-0
MovementCourseInfoVO.java
...checkData/equipmentCheckData/vo/MovementCourseInfoVO.java
+2
-1
MovementCourseVO.java
...les/checkData/equipmentCheckData/vo/MovementCourseVO.java
+2
-1
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/MovementRecordsMasterController.java
View file @
5eb0aff9
...
...
@@ -101,7 +101,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
List
<
MovementCourse
>
listResult
=
movementCourseService
.
lambdaQuery
()
.
eq
(
ObjectUtil
.
isNotEmpty
(
id
),
MovementCourse:
:
getMovementMasterId
,
id
)
.
eq
(
MovementCourse:
:
getDelFlag
,
"0"
)
.
orderByAsc
(
MovementCourse:
:
get
CreateTime
)
.
orderByAsc
(
MovementCourse:
:
get
Sort
)
.
list
();
List
<
MovementCourseVO
>
resultList
=
new
ArrayList
<>();
if
(
listResult
!=
null
)
{
...
...
@@ -125,13 +125,16 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
.
eq
(
ObjectUtil
.
isNotEmpty
(
movementMasterId
),
MovementCourseInfo:
:
getMovementMasterId
,
movementMasterId
)
.
eq
(
ObjectUtil
.
isNotEmpty
(
movementCourseId
),
MovementCourseInfo:
:
getMovementCourseId
,
movementCourseId
)
.
eq
(
MovementCourseInfo:
:
getDelFlag
,
"0"
)
.
orderBy
Desc
(
MovementCourseInfo:
:
getTrackCode
)
.
orderBy
Asc
(
MovementCourseInfo:
:
getInfoSort
)
.
list
();
//初始化最终返回的集合
List
<
MovementCourseInfoOneVO
>
resultList
=
new
ArrayList
<>();
if
(
listResult
!=
null
&&
listResult
.
size
()
>
0
)
{
//获取去重后的项目名称的集合
Set
<
String
>
trackCodeList
=
listResult
.
stream
().
map
(
MovementCourseInfo:
:
getTrackCode
).
collect
(
Collectors
.
toSet
());
Set
<
String
>
trackCodeList1
=
listResult
.
stream
().
map
(
MovementCourseInfo:
:
getTrackCode
).
collect
(
Collectors
.
toSet
());
List
<
String
>
trackCodeList
=
trackCodeList1
.
stream
().
collect
(
Collectors
.
toList
());
//针对轨号进行倒序排序
Collections
.
reverse
(
trackCodeList
);
for
(
String
code
:
trackCodeList
)
{
//初始化最终返回的对象
MovementCourseInfoOneVO
resultModel
=
new
MovementCourseInfoOneVO
();
...
...
@@ -290,6 +293,10 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
// 如果做完了一个解析就跳过
MovementCourse
movementCourse
=
new
MovementCourse
();
List
<
MovementCourseInfo
>
resultList
=
new
ArrayList
<>();
//初始化里程排序
int
sort
=
0
;
//初始化轨号排序
int
infoSort
=
0
;
for
(
int
i
=
0
;
i
<
column
;
i
++)
{
skipColumnNum
++;
if
(
ObjectUtil
.
isEmpty
(
startingAndEndingMileageStr
))
{
...
...
@@ -368,6 +375,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
if
(
ObjectUtil
.
isNotEmpty
(
longExtent
))
{
movementCourse
.
setLongExtent
(
new
BigDecimal
(
longExtent
));
}
sort
++;
courseId
=
IdWorker
.
get32UUID
();
movementCourse
.
setId
(
courseId
);
movementCourse
.
setDelFlag
(
"0"
);
...
...
@@ -376,6 +384,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
movementCourse
.
setCreateBy
(
realname
);
movementCourse
.
setUpdateBy
(
realname
);
movementCourse
.
setRemark
(
remark
);
movementCourse
.
setSort
(
sort
);
movementCourseService
.
save
(
movementCourse
);
}
}
...
...
@@ -388,7 +397,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
continue
;
}
if
(
ObjectUtil
.
isNotEmpty
(
courseId
))
{
infoSort
++;
MovementCourseInfo
movementCourseInfo
=
new
MovementCourseInfo
();
movementCourseInfo
.
setId
(
IdWorker
.
get32UUID
());
movementCourseInfo
.
setDelFlag
(
"0"
);
...
...
@@ -398,6 +407,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
movementCourseInfo
.
setUpdateTime
(
new
Date
());
movementCourseInfo
.
setCreateBy
(
realname
);
movementCourseInfo
.
setUpdateBy
(
realname
);
movementCourseInfo
.
setInfoSort
(
infoSort
);
//获取轨号
List
<
Object
>
trackCodeList
=
rowRecords
.
get
(
6
);
String
trackCode
=
trackCodeList
.
get
(
i
).
toString
().
trim
();
...
...
@@ -472,6 +482,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
longExtent
=
""
;
remark
=
""
;
courseId
=
""
;
infoSort
=
0
;
movementCourse
=
new
MovementCourse
();
}
}
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/dto/MovementCourseDTO.java
View file @
5eb0aff9
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -65,5 +66,7 @@ public class MovementCourseDTO {
@ApiModelProperty
(
"是否删除(0:未删除;1:已删除)"
)
private
String
delFlag
;
@ApiModelProperty
(
"排序"
)
private
Integer
sort
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/dto/MovementCourseInfoDTO.java
View file @
5eb0aff9
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -71,5 +72,6 @@ public class MovementCourseInfoDTO {
@ApiModelProperty
(
"是否删除(0:未删除;1:已删除)"
)
private
String
delFlag
;
@ApiModelProperty
(
"导入顺序"
)
private
Integer
infoSort
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/entity/MovementCourse.java
View file @
5eb0aff9
...
...
@@ -94,5 +94,8 @@ public class MovementCourse implements Serializable {
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"排序"
)
@TableField
(
"sort"
)
private
Integer
sort
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/entity/MovementCourseInfo.java
View file @
5eb0aff9
...
...
@@ -102,5 +102,8 @@ public class MovementCourseInfo implements Serializable {
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"导入顺序"
)
@TableField
(
"info_sort"
)
private
Integer
infoSort
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/vo/MovementCourseInfoVO.java
View file @
5eb0aff9
...
...
@@ -77,5 +77,6 @@ public class MovementCourseInfoVO {
@ApiModelProperty
(
"是否删除(0:未删除;1:已删除)"
)
private
String
delFlag
;
@ApiModelProperty
(
"导入顺序"
)
private
Integer
infoSort
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/vo/MovementCourseVO.java
View file @
5eb0aff9
...
...
@@ -71,5 +71,6 @@ public class MovementCourseVO {
@ApiModelProperty
(
"是否删除(0:未删除;1:已删除)"
)
private
String
delFlag
;
@ApiModelProperty
(
"排序"
)
private
Integer
sort
;
}
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