Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
ea9231fd
Commit
ea9231fd
authored
Dec 07, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://36.40.66.175:5000/moa/amos-boot-biz
into develop_tzs_register
parents
cad6c711
ba9ca9d0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
1 deletion
+38
-1
PlanMapper.java
...m/yeejoin/amos/patrol/business/dao/mapper/PlanMapper.java
+2
-0
PlanTaskDetailMapper.java
...amos/patrol/business/dao/mapper/PlanTaskDetailMapper.java
+3
-0
RoutePointItemMapper.java
...amos/patrol/business/dao/mapper/RoutePointItemMapper.java
+1
-0
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+0
-0
RouteServiceImpl.java
...n/amos/patrol/business/service/impl/RouteServiceImpl.java
+5
-1
dbTemplate_plan.xml
...trol-biz/src/main/resources/db/mapper/dbTemplate_plan.xml
+8
-0
plan_task_detail.xml
...rol-biz/src/main/resources/db/mapper/plan_task_detail.xml
+9
-0
routePointItemMapper.xml
...biz/src/main/resources/db/mapper/routePointItemMapper.xml
+10
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanMapper.java
View file @
ea9231fd
...
...
@@ -60,4 +60,6 @@ public interface PlanMapper extends BaseMapper {
void
initUpdatePlanNextGenDate
();
Plan
getPlan
(
String
planId
);
int
checkData
(
@Param
(
"planId"
)
Long
planId
);
}
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanTaskDetailMapper.java
View file @
ea9231fd
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
dao
.
mapper
;
import
com.yeejoin.amos.patrol.dao.entity.ESTaskDetailDto
;
import
com.yeejoin.amos.patrol.dao.entity.PlanTaskDetail
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -14,4 +15,6 @@ public interface PlanTaskDetailMapper extends BaseMapper {
List
<
PlanTaskDetail
>
findAllByIdInAndStatus
(
@Param
(
"planTaskIds"
)
List
<
Long
>
planTaskNo
,
@Param
(
"status"
)
String
status
);
List
<
ESTaskDetailDto
>
findAllByTaskNos
(
@Param
(
"ids"
)
String
ids
);
}
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/RoutePointItemMapper.java
View file @
ea9231fd
...
...
@@ -26,4 +26,5 @@ public interface RoutePointItemMapper extends BaseMapper {
*/
HashMap
<
String
,
String
>
getEquipByCode
(
String
equipCode
);
int
delRoutePointItemInExclude
(
@Param
(
"routePointId"
)
Long
routePointId
,
@Param
(
"inputItemIds"
)
List
<
Long
>
inputItemIds
);
}
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
ea9231fd
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/RouteServiceImpl.java
View file @
ea9231fd
...
...
@@ -573,7 +573,11 @@ public class RouteServiceImpl extends ServiceImpl<RouteMapper, Route> implement
// }
// });
// List<Long> lastList = Stream.concat(otherClassify.stream(), inputItemIds.stream()).distinct().collect(Collectors.toList());
RoutePoint
.
setExcludeItems
(
StringUtils
.
join
(
inputItemIds
,
","
));
List
<
Long
>
itemIds
=
inputItemIds
.
stream
().
filter
(
Objects:
:
nonNull
).
collect
(
Collectors
.
toList
());
//保存到route_point的exclude_items字段
RoutePoint
.
setExcludeItems
(
StringUtils
.
join
(
itemIds
,
","
));
//删除route_point_item的多余关联项
routePointItemMapper
.
delRoutePointItemInExclude
(
RoutePoint
.
getId
(),
itemIds
);
// }
// else {
// RoutePoint.setExcludeItems(StringUtils.join(inputItemIds.toArray(),","));
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/resources/db/mapper/dbTemplate_plan.xml
View file @
ea9231fd
...
...
@@ -174,4 +174,11 @@
<select
id=
"getPlan"
resultType=
"com.yeejoin.amos.patrol.dao.entity.Plan"
>
select * from p_plan where id = #{planId}
</select>
<select
id=
"checkData"
resultType=
"java.lang.Integer"
>
SELECT count(1) FROM "p_plan" plan
INNER JOIN p_route_point route on plan.route_id = route.route_id
INNER JOIN p_point_inputitem item on route.point_id = item.point_id
WHERE plan.id = #{planId}
</select>
</mapper>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/resources/db/mapper/plan_task_detail.xml
View file @
ea9231fd
...
...
@@ -30,4 +30,12 @@
pptd.task_no in
<foreach
collection=
"planTaskIds"
item=
"planTaskId"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{planTaskId}
</foreach>
and pptd.status = #{status}
</select>
<select
id=
"findAllByTaskNos"
resultType=
"com.yeejoin.amos.patrol.dao.entity.PlanTaskDetail"
>
select
pptd.id
from
"p_plan_task_detail" pptd
where
pptd.task_no in #{ids}
</select>
</mapper>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/resources/db/mapper/routePointItemMapper.xml
View file @
ea9231fd
...
...
@@ -76,6 +76,16 @@
delete from p_route_point WHERE point_id = #{pointId} and route_id = #{routeId}
</delete>
<delete
id=
"delRoutePointItemInExclude"
>
delete from p_route_point_item
WHERE route_point_id = #{routePointId}
and point_input_item_id in
<foreach
collection=
"inputItemIds"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</delete>
<insert
id=
"insertRoutePointItem"
>
insert into p_route_point_item
(id, route_point_id, order_no, point_input_item_id, creator_id, create_date, point_classify_id, basis_json)
...
...
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