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
15790e71
Commit
15790e71
authored
Dec 08, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
d6d9b143
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
26 deletions
+10
-26
FirefightersController.java
...oot/module/jcs/biz/controller/FirefightersController.java
+3
-3
view_all.sql
...stem-equip/src/main/resources/changelog/init/view_all.sql
+6
-22
application.properties
...boot-system-jcs/src/main/resources/application.properties
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/FirefightersController.java
View file @
15790e71
...
@@ -113,8 +113,8 @@ public class FirefightersController extends BaseController {
...
@@ -113,8 +113,8 @@ public class FirefightersController extends BaseController {
@Value
(
"${auth-key-fire-fighters:fire_fighters_info}"
)
@Value
(
"${auth-key-fire-fighters:fire_fighters_info}"
)
private
String
authKey
;
private
String
authKey
;
@Value
(
"${
system.type
}"
)
@Value
(
"${
logic
}"
)
private
String
type
;
private
Boolean
logic
;
@Autowired
@Autowired
IUserCarService
userCarService
;
IUserCarService
userCarService
;
...
@@ -428,7 +428,7 @@ public class FirefightersController extends BaseController {
...
@@ -428,7 +428,7 @@ public class FirefightersController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"所有的消防人员"
,
notes
=
"所有的消防人员"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"所有的消防人员"
,
notes
=
"所有的消防人员"
)
public
ResponseModel
<
Object
>
getAllFirefightersPerson
(
String
jobCode
)
throws
Exception
{
public
ResponseModel
<
Object
>
getAllFirefightersPerson
(
String
jobCode
)
throws
Exception
{
String
bizOrgCode
=
null
;
String
bizOrgCode
=
null
;
if
(
"dl"
.
equals
(
type
)
){
if
(
!
logic
){
// 获取登陆人角色firefighters/all/fire/person
// 获取登陆人角色firefighters/all/fire/person
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
...
...
amos-boot-system-equip/src/main/resources/changelog/init/view_all.sql
View file @
15790e71
...
@@ -7711,24 +7711,9 @@ ORDER BY
...
@@ -7711,24 +7711,9 @@ ORDER BY
-- 运维概览-韶山消防巡查统计
-- 运维概览-韶山消防巡查统计
DROP
VIEW
IF
EXISTS
`v_fire_check_num_shaoshan`
;
DROP
VIEW
IF
EXISTS
`v_fire_check_num_shaoshan`
;
CREATE
ALGORITHM
=
UNDEFINED
DEFINER
=
`root`
@
`%`
SQL
SECURITY
DEFINER
VIEW
`v_fire_check_num_shaoshan`
AS
CREATE
SELECT
ALGORITHM
=
UNDEFINED
(
SELECT
ifnull
(
sum
(
`p_plan_task`
.
`point_num`
),
0
)
FROM
`p_plan_task`
WHERE
`p_plan_task`
.
`check_date`
LIKE
concat
(
curdate
(),
'%'
)
)
AS
`point_num`
,
DEFINER
=
`root`
@
`%`
(
SQL
SECURITY
DEFINER
SELECT
VIEW
`v_fire_check_num_shaoshan`
AS
ifnull
(
sum
(
`p_plan_task`
.
`point_num`
),
0
)
select
(
select
ifnull
(
sum
(
`p_plan_task`
.
`point_num`
),
0
)
from
`p_plan_task`
where
(
`p_plan_task`
.
`check_date`
like
concat
(
curdate
(),
'%'
)))
AS
`point_num`
,(
select
ifnull
(
sum
(
`p_plan_task`
.
`point_num`
),
0
)
from
`p_plan_task`
where
((
`p_plan_task`
.
`finish_status`
=
3
)
and
(
`p_plan_task`
.
`check_date`
like
concat
(
curdate
(),
'%'
))))
AS
`miss_num`
,(
select
ifnull
(
sum
(
`p_plan_task`
.
`point_num`
),
0
)
from
`p_plan_task`
where
((
`p_plan_task`
.
`finish_status`
<>
2
)
and
(
`p_plan_task`
.
`check_date`
like
concat
(
curdate
(),
'%'
))))
AS
`unfinish_num`
;
FROM
`p_plan_task`
WHERE
`p_plan_task`
.
`finish_status`
=
3
AND
`p_plan_task`
.
`check_date`
LIKE
concat
(
curdate
(),
'%'
)
)
AS
`miss_num`
,
(
SELECT
ifnull
(
sum
(
`p_plan_task`
.
`point_num`
),
0
)
FROM
`p_plan_task`
WHERE
`p_plan_task`
.
`finish_status`
=
0
AND
`p_plan_task`
.
`check_date`
LIKE
concat
(
curdate
(),
'%'
)
)
AS
`unfinish_num`
;
\ No newline at end of file
amos-boot-system-jcs/src/main/resources/application.properties
View file @
15790e71
...
@@ -138,7 +138,7 @@ management.security.enabled=true
...
@@ -138,7 +138,7 @@ management.security.enabled=true
spring.security.user.name
=
admin
spring.security.user.name
=
admin
spring.security.user.password
=
a1234560
spring.security.user.password
=
a1234560
#?????????
#?????????
system.type
=
dl
#
system.type=dl
##代码中有部分逻辑冲突需要处理 为区分机场和电力逻辑 增加开关 若为true 则为机场逻辑 为false 则为电力逻辑
##代码中有部分逻辑冲突需要处理 为区分机场和电力逻辑 增加开关 若为true 则为机场逻辑 为false 则为电力逻辑
logic
=
false
logic
=
false
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