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
b3493783
Commit
b3493783
authored
Jul 25, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
af878b99
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
5 deletions
+50
-5
Point.java
...c/main/java/com/yeejoin/amos/patrol/dao/entity/Point.java
+15
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+1
-0
PointController.java
...join/amos/patrol/business/controller/PointController.java
+31
-2
IPointInputItemDao.java
...os/patrol/business/dao/repository/IPointInputItemDao.java
+1
-1
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-patrol-api/src/main/java/com/yeejoin/amos/patrol/dao/entity/Point.java
View file @
b3493783
...
...
@@ -26,6 +26,14 @@ import cn.afterturn.easypoi.excel.annotation.Excel;
public
class
Point
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
public
String
getChargePersonName
()
{
return
chargePersonName
;
}
public
void
setChargePersonName
(
String
chargePersonName
)
{
this
.
chargePersonName
=
chargePersonName
;
}
/**
* 参考地址
*/
...
...
@@ -193,6 +201,13 @@ public class Point extends BasicEntity {
private
String
chargePersonId
;
/**
* 负责人id
*/
@Column
(
name
=
"charge_person_name"
)
private
String
chargePersonName
;
/**
* 状态:0 未纳入巡检,1 合格;2 不合格;3 漏检
*/
@Column
(
name
=
"status"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
b3493783
...
...
@@ -2365,6 +2365,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<
OrgUsr
>();
wrapper
.
eq
(
OrgUsr:
:
getIsDelete
,
false
);
wrapper
.
eq
(
OrgUsr:
:
getBizOrgType
,
OrgPersonEnum
.
人员
.
getKey
());
wrapper
.
isNotNull
(
OrgUsr:
:
getAmosOrgId
);
wrapper
.
likeRight
(
OrgUsr:
:
getBizOrgCode
,
company
.
getBizOrgCode
());
return
this
.
baseMapper
.
selectList
(
wrapper
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
b3493783
...
...
@@ -180,12 +180,37 @@ public class PointController extends AbstractBaseController {
newPointClassify
.
setCategoryName
(
pointClassify
.
getCategoryName
());
newPointClassify
.
setCode
(
pointClassify
.
getCode
());
iPointService
.
addPointClassifyByPointId
(
newPointClassify
);
}
else
{
newPointClassify
.
setId
(
pointClassify
.
getId
());
}
List
<
PointInputItemVo
>
oldInputItemList
=
iPointService
.
queryOldPointInputItem
(
pointClassify
.
getPointId
());
// 新的巡检项的补集,即需要删除的项
List
<
PointInputItemVo
>
newInputItemList
=
new
ArrayList
<>();
List
<
PointInputItemVo
>
classList
=
pointClassify
.
getEquipIputDetailData
();
newInputItemList
.
addAll
(
classList
);
List
<
Long
>
ids
=
new
ArrayList
<>();
newInputItemList
.
forEach
(
item
->
{
// PointInputItem pii = iPointInputItemDao.getPointInputItem(pointId, item.getPointItemId());
// if (pii != null) {
ids
.
add
(
item
.
getPointItemId
());
// }
});
List
<
Long
>
pItemIds
=
new
ArrayList
<>();
oldInputItemList
.
forEach
(
item
->
{
if
(!
ids
.
contains
(
item
.
getPointItemId
()))
{
pItemIds
.
add
(
item
.
getPointItemId
());
}
});
if
(
pItemIds
.
size
()
>
0
)
{
iPointInputItemDao
.
delPointInputItemById
(
pItemIds
);
iRoutePointItemDao
.
delRoutePointItemByItemId
(
pItemIds
);
// 删除p_route_point_item中使用到该项的行
}
}
iPointService
.
addPointClassifyByPointId
(
newPointClassify
);
List
<
PointInputItemVo
>
customInputList
=
pointClassify
.
getEquipIputDetailData
();
//巡检项
for
(
PointInputItemVo
pItemVo
:
customInputList
)
{
...
...
@@ -1289,6 +1314,10 @@ public class PointController extends AbstractBaseController {
ResponseModel
<
Object
>
companyInfo
=
jcsFeignClient
.
getCompanyInfo
(
point
.
getChargeDeptId
());
FeignClientResult
userInfo
=
jcsFeignClient
.
selectById
(
point
.
getChargePersonId
());
Object
result
=
userInfo
.
getResult
();
String
personName
=
((
Map
<
String
,
Object
>)
result
).
get
(
"personName"
).
toString
();
point
.
setChargePersonName
(
personName
);
Object
obj
=
companyInfo
.
getResult
();
String
bizOrgCode
=
((
Map
<
String
,
Object
>)
obj
).
get
(
"bizOrgCode"
).
toString
();
String
bizOrgName
=
((
Map
<
String
,
Object
>)
obj
).
get
(
"bizOrgName"
).
toString
();
...
...
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 @
b3493783
...
...
@@ -50,5 +50,5 @@ public interface IPointInputItemDao extends BaseDao<PointInputItem, Long> {
@Modifying
@Transactional
@Query
(
value
=
"DELETE FROM p_point_inputitem WHERE classify_ids IN (?1)"
,
nativeQuery
=
true
)
PointInputItem
deleteClassifyId
(
Long
classifyId
);
void
deleteClassifyId
(
Long
classifyId
);
}
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
b3493783
...
...
@@ -85,7 +85,7 @@
p.*
from p_point p
<where>
1=1
p.is_delete = 0
<if
test=
"pointParams.pointNo != null and pointParams.pointNo != ''"
>
and p.point_no LIKE CONCAT ('%',#{pointParams.pointNo},'%')
</if>
...
...
@@ -110,7 +110,7 @@
count(*) as number
from p_point
<where>
1=1
is_delete = 0
<if
test=
"pointNo != null and pointNo != ''"
>
and point_no LIKE CONCAT ('%',#{pointNo},'%')
</if>
...
...
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