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
86e64509
Commit
86e64509
authored
Mar 03, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检代码
parent
c1c09215
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
InputItemController.java
.../amos/patrol/business/controller/InputItemController.java
+7
-0
IPointInputItemDao.java
...os/patrol/business/dao/repository/IPointInputItemDao.java
+3
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/InputItemController.java
View file @
86e64509
...
...
@@ -10,6 +10,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.patrol.business.dao.mapper.InputItemMapper
;
import
com.yeejoin.amos.patrol.business.dao.repository.IPointInputItemDao
;
import
com.yeejoin.amos.patrol.business.feign.JcsFeignClient
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -76,6 +77,8 @@ public class InputItemController extends AbstractBaseController {
JcsFeignClient
jcsFeignClient
;
@Autowired
InputItemMapper
inputItemMapper
;
@Autowired
IPointInputItemDao
iPointInputItemDao
;
@Value
(
"${equipment.hierarchy}"
)
private
String
hierarchy
;
...
...
@@ -312,6 +315,10 @@ public class InputItemController extends AbstractBaseController {
if
(
ObjectUtils
.
isEmpty
(
itemIDs
))
{
return
CommonResponseUtil
.
failure
(
"请选择要删除的检查项"
);
}
//查询该巡查项是否已有巡查点绑定 有就返回
if
(
iPointInputItemDao
.
selectByITemId
(
itemIDs
)
>
0
)
{
return
CommonResponseUtil
.
failure
(
"该巡检项已绑定,请先删除巡检设备的巡检项"
);
}
String
[]
ids
=
itemIDs
.
split
(
","
);
inputItemService
.
batchDelInputItem
(
ids
);
redisUtils
.
del
(
EQUIP_AND_FIRE_TREE
+
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
()
==
null
?
""
:
reginParams
.
getPersonIdentity
().
getBizOrgCode
()));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/repository/IPointInputItemDao.java
View file @
86e64509
...
...
@@ -54,4 +54,7 @@ public interface IPointInputItemDao extends BaseDao<PointInputItem, Long> {
@Query
(
value
=
"SELECT input_item_id FROM p_point_inputitem WHERE id IN (?1) "
,
nativeQuery
=
true
)
List
<
String
>
selectItemIdByid
(
List
<
String
>
ids
);
@Query
(
value
=
"SELECT count(*) FROM p_point_inputitem WHERE input_item_id IN(?1) "
,
nativeQuery
=
true
)
int
selectByITemId
(
String
inputItemIds
);
}
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