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
27340856
Commit
27340856
authored
Aug 26, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
b4d60ab0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
17 deletions
+20
-17
CheckController.java
...amos/supervision/business/controller/CheckController.java
+4
-4
CheckServiceImpl.java
...s/supervision/business/service/impl/CheckServiceImpl.java
+2
-0
application-dev.properties
...supervision/src/main/resources/application-dev.properties
+8
-7
dbTemplate_check.xml
...rvision/src/main/resources/db/mapper/dbTemplate_check.xml
+6
-6
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/CheckController.java
View file @
27340856
...
@@ -618,9 +618,9 @@ public class CheckController extends AbstractBaseController {
...
@@ -618,9 +618,9 @@ public class CheckController extends AbstractBaseController {
public
ResponseModel
getPlanExecuteInfo
(
public
ResponseModel
getPlanExecuteInfo
(
@ApiParam
(
value
=
"计划id"
)
@RequestParam
(
value
=
"planId"
)
Long
planId
,
@ApiParam
(
value
=
"计划id"
)
@RequestParam
(
value
=
"planId"
)
Long
planId
,
@ApiParam
(
value
=
"点id"
)
@RequestParam
(
value
=
"pointId"
,
required
=
false
)
Long
pointId
,
@ApiParam
(
value
=
"点id"
)
@RequestParam
(
value
=
"pointId"
,
required
=
false
)
Long
pointId
,
@ApiParam
(
value
=
"
点id"
)
@RequestParam
(
value
=
"pointId
"
,
required
=
false
)
String
executeState
,
@ApiParam
(
value
=
"
执行状态"
)
@RequestParam
(
value
=
"executeState
"
,
required
=
false
)
String
executeState
,
@ApiParam
(
value
=
"
点id"
)
@RequestParam
(
value
=
"pointId
"
,
required
=
false
)
String
status
,
@ApiParam
(
value
=
"
状态"
)
@RequestParam
(
value
=
"status
"
,
required
=
false
)
String
status
,
@ApiParam
(
value
=
"
点id"
)
@RequestParam
(
value
=
"pointId"
,
required
=
false
)
String
teamId
,
@ApiParam
(
value
=
"
单位id"
)
@RequestParam
(
value
=
"companyName"
,
required
=
false
)
String
companyName
,
@ApiParam
(
value
=
"当前页"
)
@RequestParam
(
value
=
"pageNumber"
)
int
pageNumber
,
@ApiParam
(
value
=
"当前页"
)
@RequestParam
(
value
=
"pageNumber"
)
int
pageNumber
,
@ApiParam
(
value
=
"页大小"
)
@RequestParam
(
value
=
"pageSize"
)
int
pageSize
)
{
@ApiParam
(
value
=
"页大小"
)
@RequestParam
(
value
=
"pageSize"
)
int
pageSize
)
{
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
...
@@ -628,7 +628,7 @@ public class CheckController extends AbstractBaseController {
...
@@ -628,7 +628,7 @@ public class CheckController extends AbstractBaseController {
map
.
put
(
"pointId"
,
pointId
);
map
.
put
(
"pointId"
,
pointId
);
map
.
put
(
"executeState"
,
executeState
);
map
.
put
(
"executeState"
,
executeState
);
map
.
put
(
"status"
,
status
);
map
.
put
(
"status"
,
status
);
map
.
put
(
"
teamId"
,
teamId
);
map
.
put
(
"
companyName"
,
companyName
);
CommonPageable
pageable
=
new
CommonPageable
(
pageNumber
,
pageSize
);
CommonPageable
pageable
=
new
CommonPageable
(
pageNumber
,
pageSize
);
return
ResponseHelper
.
buildResponse
(
checkService
.
getPlanExecuteInfo
(
map
,
pageable
));
return
ResponseHelper
.
buildResponse
(
checkService
.
getPlanExecuteInfo
(
map
,
pageable
));
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/CheckServiceImpl.java
View file @
27340856
...
@@ -1156,6 +1156,8 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1156,6 +1156,8 @@ public class CheckServiceImpl implements ICheckService {
if
(
total
==
0
)
{
if
(
total
==
0
)
{
return
new
PageImpl
<>(
content
,
page
,
total
);
return
new
PageImpl
<>(
content
,
page
,
total
);
}
}
;
map
.
put
(
"status"
,
PlanTaskFinishStatusEnum
.
getValue
(
String
.
valueOf
(
map
.
get
(
"status"
))));
map
.
put
(
"offset"
,
page
.
getOffset
());
map
.
put
(
"offset"
,
page
.
getOffset
());
map
.
put
(
"pageSize"
,
page
.
getPageSize
());
map
.
put
(
"pageSize"
,
page
.
getPageSize
());
content
=
checkMapper
.
getCheckItems
(
map
);
content
=
checkMapper
.
getCheckItems
(
map
);
...
...
amos-boot-system-supervision/src/main/resources/application-dev.properties
View file @
27340856
...
@@ -3,7 +3,7 @@ spring.datasource.url = jdbc:mysql://172.16.11.20:3306/amos-supervision_v1.0?use
...
@@ -3,7 +3,7 @@ spring.datasource.url = jdbc:mysql://172.16.11.20:3306/amos-supervision_v1.0?use
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.password
=
root_123
## eureka properties:
## eureka properties:
eureka.client.serviceUrl.defaultZone
=
http://172.16.1
0.72
:10001/eureka/
eureka.client.serviceUrl.defaultZone
=
http://172.16.1
1.20
:10001/eureka/
security.password
=
a1234560
security.password
=
a1234560
security.loginId
=
jc_wjk006
security.loginId
=
jc_wjk006
...
@@ -12,10 +12,10 @@ security.productApp=STUDIO_APP_MOBILE
...
@@ -12,10 +12,10 @@ security.productApp=STUDIO_APP_MOBILE
security.appKey
=
studio_normalapp_3168830
security.appKey
=
studio_normalapp_3168830
#redis 配置
#redis 配置
spring.redis.database
=
0
spring.redis.database
=
1
spring.redis.host
=
172.16.1
0.85
spring.redis.host
=
172.16.1
1.20
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
amos2019Redis
spring.redis.password
=
1234560
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.max-idle
=
10
...
@@ -45,9 +45,9 @@ linux.img.path = /
...
@@ -45,9 +45,9 @@ linux.img.path = /
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}-1
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}-1
emqx.broker
=
tcp://172.16.1
0.85
:1883
emqx.broker
=
tcp://172.16.1
1.33
:1883
emqx.user-name
=
super
emqx.user-name
=
admin
emqx.password
=
a123456
emqx.password
=
public
emqx.max-inflight
=
1000
emqx.max-inflight
=
1000
file.url
=
http://39.98.45.134:9000/
file.url
=
http://39.98.45.134:9000/
\ No newline at end of file
amos-boot-system-supervision/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
27340856
...
@@ -1894,7 +1894,7 @@
...
@@ -1894,7 +1894,7 @@
d.date
d.date
</select>
</select>
<select
id=
"getItemCount"
resultType=
"
Map
"
>
<select
id=
"getItemCount"
resultType=
"
long
"
>
SELECT
SELECT
count(1)
count(1)
FROM
FROM
...
@@ -1934,17 +1934,17 @@
...
@@ -1934,17 +1934,17 @@
pc.id = pci.check_id
pc.id = pci.check_id
AND pc.plan_task_detail_id = pptd.id
AND pc.plan_task_detail_id = pptd.id
AND pc.plan_id = #{planId}
AND pc.plan_id = #{planId}
<if
test=
"pointId != null and pointId != ''"
>
<if
test=
"pointId != null and pointId != ''
and pointId != -1
"
>
AND pc.point_id = #{pointId}
AND pc.point_id = #{pointId}
</if>
</if>
<if
test=
"
executeState != null and executeState
!= ''"
>
<if
test=
"
status != null and status
!= ''"
>
AND pptd.is_finish = #{
executeState
}
AND pptd.is_finish = #{
status
}
</if>
</if>
<!-- <if test="status != null and status != ''">-->
<!-- <if test="status != null and status != ''">-->
<!-- AND pc.point_id = #{status}-->
<!-- AND pc.point_id = #{status}-->
<!-- </if>-->
<!-- </if>-->
<if
test=
"
teamId != null and teamId
!= ''"
>
<if
test=
"
companyName != null and companyName
!= ''"
>
AND pc.company_
id = #{teamId
}
AND pc.company_
name = #{company_name
}
</if>
</if>
LIMIT limit #{offset},#{pageSize}
LIMIT limit #{offset},#{pageSize}
</select>
</select>
...
...
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