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
1f9b6aae
Commit
1f9b6aae
authored
Dec 07, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6_temp' of…
Merge branch 'develop_dl_plan6_temp' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6_temp
parents
fa720d7c
45e45bd4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
11 deletions
+35
-11
WaterResourceServiceImpl.java
...ule/common/biz/service/impl/WaterResourceServiceImpl.java
+3
-1
PointController.java
...join/amos/patrol/business/controller/PointController.java
+17
-0
RoutePointItemMapper.java
...amos/patrol/business/dao/mapper/RoutePointItemMapper.java
+1
-1
IPointClassifyDao.java
...mos/patrol/business/dao/repository/IPointClassifyDao.java
+5
-0
application.properties
...ot-system-equip/src/main/resources/application.properties
+1
-1
application.properties
...boot-system-jcs/src/main/resources/application.properties
+1
-1
routePointItemMapper.xml
...rol/src/main/resources/db/mapper/routePointItemMapper.xml
+7
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/WaterResourceServiceImpl.java
View file @
1f9b6aae
...
...
@@ -163,7 +163,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
break
;
case
"natural"
:
// 新增基础信息
model
.
setIsIot
(
fals
e
);
model
.
setIsIot
(
tru
e
);
createWithModel
(
model
);
WaterResourceNaturalDto
waterResourceNaturalDto
=
new
WaterResourceNaturalDto
();
BeanUtils
.
copyProperties
(
model
,
waterResourceNaturalDto
);
...
...
@@ -172,6 +172,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourceNaturalService
.
createWithModel
(
waterResourceNaturalDto
);
break
;
case
"industryPool"
:
case
"waterTank"
:
case
"pool"
:
// 新增基础信息
model
.
setIsIot
(
true
);
...
...
@@ -183,6 +184,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourcePoolService
.
createWithModel
(
waterResourcePoolDto
);
break
;
}
// 新增物联信息
// if (model.getIsIot()) {
// WaterResourceIotDto waterResourceIotDto = new WaterResourceIotDto();
...
...
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 @
1f9b6aae
...
...
@@ -204,6 +204,15 @@ public class PointController extends AbstractBaseController {
public
CommonResponse
addPointXcdx
(
@ApiParam
(
value
=
"新增巡查对象"
,
required
=
true
)
@RequestBody
PointInputItemNewVo
pointClassify
){
try
{
//增加判断
PointClassify
PointClassifyk
=
iPointClassifyDao
.
getPointClassifyByPointIdandcode
(
pointClassify
.
getPointId
(),
pointClassify
.
getCode
());
if
(
PointClassifyk
!=
null
){
if
(
PointClassifyk
.
getId
()!=
pointClassify
.
getId
()){
return
CommonResponseUtil
.
failure
(
"巡查对象code,不能重复!"
);
}
}
List
<
RoutePoint
>
routePointList
=
iRoutePointDao
.
queryByPointId
(
pointClassify
.
getPointId
());
AgencyUserModel
user
=
getUserInfo
();
PointClassify
newPointClassify
=
new
PointClassify
();
...
...
@@ -334,6 +343,14 @@ public class PointController extends AbstractBaseController {
List
<
RoutePoint
>
routePointList
=
iRoutePointDao
.
queryByPointId
(
pointClassifys
.
get
(
0
).
getPointId
());
for
(
PointInputItemNewVo
pointClassify
:
pointClassifys
)
{
PointClassify
PointClassifyk
=
iPointClassifyDao
.
getPointClassifyByPointIdandcode
(
pointClassify
.
getPointId
(),
pointClassify
.
getCode
());
if
(
PointClassifyk
!=
null
){
if
(
PointClassifyk
.
getId
()!=
pointClassify
.
getId
()){
return
CommonResponseUtil
.
failure
(
"巡查对象code,不能重复!"
);
}
}
PointClassify
newPointClassify
=
new
PointClassify
();
newPointClassify
.
setEquipmentId
(
pointClassify
.
getEquipmentId
());
newPointClassify
.
setName
(
pointClassify
.
getName
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/RoutePointItemMapper.java
View file @
1f9b6aae
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
dao
.
mapper
;
import
com.yeejoin.amos.patrol.dao.entity.RoutePointItem
;
import
com.yeejoin.amos.patrol.dao.entity.RoutePointItem
;
public
interface
RoutePointItemMapper
extends
BaseMapper
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/repository/IPointClassifyDao.java
View file @
1f9b6aae
...
...
@@ -50,4 +50,9 @@ public interface IPointClassifyDao extends BaseDao<PointClassify, Long> {
List
<
PointClassify
>
selectByOriginalId
(
String
id
);
PointClassify
findByOriginalId
(
String
originalId
);
@Query
(
value
=
"select * from p_point_classify where point_id = ?1 and code = ?2 and is_delete = 0 "
,
nativeQuery
=
true
)
PointClassify
getPointClassifyByPointIdandcode
(
long
id
,
String
code
);
}
amos-boot-system-equip/src/main/resources/application.properties
View file @
1f9b6aae
...
...
@@ -30,7 +30,7 @@ patrol.fegin.name=AMOS-PATROL
maintenance.feign.name
=
AMOS-MAINTENANCE-API
precontrol.feign.name
=
JEPCC-PRECONTROL-SERVER
security.privilege.name
=
AMOS-API-PRIVILEGE
security.systemctl.name
=
AMOS-API-
SYSTEMCTL
security.systemctl.name
=
AMOS-API-
PRIVILEGE
#jpush
Push.fegin.name
=
AppMessagePushService
dutyMode.fegin.name
=
AMOS-DUTYMODE
...
...
amos-boot-system-jcs/src/main/resources/application.properties
View file @
1f9b6aae
...
...
@@ -84,7 +84,7 @@ mqtt.topic.person.sign=sign/data/syn
#人员打卡同步中心级
mqtt.topic.person.sign.zxj
=
sign/data/synZxj
security.systemctl.name
=
AMOS-API-
SYSTEMCTL
security.systemctl.name
=
AMOS-API-
PRIVILEGE
jcs.company.topic.add
=
jcs/company/topic/add
jcs.company.topic.delete
=
jcs/company/topic/delete
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/routePointItemMapper.xml
View file @
1f9b6aae
...
...
@@ -64,13 +64,13 @@
(`id`, `route_point_id`, `order_no`, `point_input_item_id`, `creator_id`, `create_date`, `point_classify_id`, `basis_json`)
VALUES(
#{id},
#{route
_point_i
d},
#{order
_n
o},
#{point
_input_item_i
d},
#{creator
_i
d},
#{create
_d
ate},
#{point
_classify_i
d},
#{basis
_j
son})
#{route
PointI
d},
#{order
N
o},
#{point
InputItemI
d},
#{creator
I
d},
#{create
D
ate},
#{point
ClassifyI
d},
#{basis
J
son})
</insert>
...
...
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