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
8ed928b0
Commit
8ed928b0
authored
May 10, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
4d285259
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
EquipmentSpecific.java
.../yeejoin/equipmanage/common/entity/EquipmentSpecific.java
+8
-0
EquipmentDetailController.java
...oin/equipmanage/controller/EquipmentDetailController.java
+7
-0
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecific.java
View file @
8ed928b0
...
...
@@ -170,4 +170,12 @@ public class EquipmentSpecific extends BaseEntity {
@TableField
(
"warranty_period"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
warrantyPeriod
;
@ApiModelProperty
(
value
=
"是否遥测"
)
@TableField
(
exist
=
false
)
private
Boolean
isTrend
;
@ApiModelProperty
(
value
=
"指标单位"
)
@TableField
(
exist
=
false
)
private
String
unit
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentDetailController.java
View file @
8ed928b0
...
...
@@ -113,6 +113,9 @@ public class EquipmentDetailController extends AbstractBaseController {
@Value
(
"${equip.enabled}"
)
private
Boolean
enabled
;
@Autowired
IEquipmentIndexService
equipmentIndexService
;
@Value
(
"${iot.code.prefix.have.used:20210003,20210004,20210005}"
)
private
String
haveUsedIotPrefix
;
...
...
@@ -242,6 +245,10 @@ public class EquipmentDetailController extends AbstractBaseController {
@RequestParam
(
required
=
false
)
Long
stockDetailId
)
{
EquipmentDate
equipmentDate
=
new
EquipmentDate
();
EquipmentSpecific
equipmentSpecific
=
equipmentSpecificSerivce
.
getBaseMapper
().
selectOne
(
new
QueryWrapper
<
EquipmentSpecific
>().
eq
(
"code"
,
code
));
EquipmentIndex
equipmentIndex
=
equipmentIndexService
.
getById
(
equipmentSpecific
.
getRealtimeIotIndexId
());
equipmentSpecific
.
setIsTrend
(
equipmentIndex
.
getIsTrend
());
equipmentSpecific
.
setUnit
(
equipmentIndex
.
getUnit
());
FireFightingSystemEntity
fightingSystemEntity
=
new
FireFightingSystemEntity
();
if
(!
ObjectUtils
.
isEmpty
(
equipmentSpecific
.
getSystemId
())){
fightingSystemEntity
=
fireFightingSystemService
.
getOneById
(
Long
.
valueOf
(
equipmentSpecific
.
getSystemId
()));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
8ed928b0
...
...
@@ -191,7 +191,7 @@ public class PointServiceImpl implements IPointService {
// BeanUtils.copyProperties(param, point);
int
count
=
iPointDao
.
findByPointNo
(
param
.
getPointNo
(),
orgCode
);
if
(
count
>
0
)
{
// 该单位已存在该编号的点
continue
;
throw
new
BadRequest
(
param
.
getPointNo
()+
"该编号已存在"
)
;
}
if
(
ObjectUtils
.
isEmpty
(
param
.
getChargePersonId
()))
{
throw
new
BadRequest
(
"责任人不能为空"
);
...
...
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