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
db8e3d5d
Commit
db8e3d5d
authored
Sep 06, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隔离119 里面120数据
parent
fa8ac5ae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
9 deletions
+34
-9
DataDictionaryController.java
.../boot/biz/common/controller/DataDictionaryController.java
+10
-0
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+10
-6
PowerTransferMapper.xml
...jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
+14
-3
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/controller/DataDictionaryController.java
View file @
db8e3d5d
...
@@ -197,6 +197,16 @@ public class DataDictionaryController extends BaseController {
...
@@ -197,6 +197,16 @@ public class DataDictionaryController extends BaseController {
Collection
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
Collection
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
,
null
,
null
);
"getParent"
,
null
,
null
);
if
(
type
.
equals
(
"JQLB"
)){
for
(
Menu
menu
:
menus
)
{
if
(
menu
.
id
==
1214
){
menus
.
remove
(
menu
);
break
;
}
}
}
redisUtils
.
set
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
,
JSON
.
toJSON
(
menus
),
time
);
redisUtils
.
set
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
,
JSON
.
toJSON
(
menus
),
time
);
return
ResponseHelper
.
buildResponse
(
menus
);
return
ResponseHelper
.
buildResponse
(
menus
);
}
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
db8e3d5d
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
sum( CASE WHEN alert_type_code = 230 THEN 1 ELSE 0 END ) majorAlertCount
sum( CASE WHEN alert_type_code = 230 THEN 1 ELSE 0 END ) majorAlertCount
FROM
FROM
jc_alert_called
jc_alert_called
WHERE 1 = 1
WHERE 1 = 1 and jc_alert_called.alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
"beginDate != null and beginDate != ''"
>
<if
test=
"beginDate != null and beginDate != ''"
>
and call_time >= #{beginDate}
and call_time >= #{beginDate}
</if>
</if>
...
@@ -42,7 +43,7 @@
...
@@ -42,7 +43,7 @@
WHEN '1166' THEN '原地待命'
WHEN '1166' THEN '原地待命'
ELSE '' END responseLevelCode
ELSE '' END responseLevelCode
FROM jc_alert_called a
FROM jc_alert_called a
where a.is_delete=0
where a.is_delete=0
and a.alert_type_code
<![CDATA[ <> ]]>
1214
<!--AND a.coordinate_x IS NOT NULL
<!--AND a.coordinate_x IS NOT NULL
AND a.coordinate_y IS NOT NULL-->
AND a.coordinate_y IS NOT NULL-->
<if
test=
'par.status==0'
>
<if
test=
'par.status==0'
>
...
@@ -86,7 +87,7 @@
...
@@ -86,7 +87,7 @@
SELECT
SELECT
COUNT(*)
COUNT(*)
FROM jc_alert_called a
FROM jc_alert_called a
where a.is_delete=0
where a.is_delete=0
and a.alert_type_code
<![CDATA[ <> ]]>
1214
AND a.coordinate_x IS NOT NULL
AND a.coordinate_x IS NOT NULL
AND a.coordinate_y IS NOT NULL
AND a.coordinate_y IS NOT NULL
<if
test=
'par.status==0'
>
<if
test=
'par.status==0'
>
...
@@ -143,7 +144,8 @@
...
@@ -143,7 +144,8 @@
, jc_power_transfer j
, jc_power_transfer j
</if>
</if>
<where>
<where>
a.is_delete = 0
a.is_delete = 0 and a.alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
"alertStatus!= null "
>
<if
test=
"alertStatus!= null "
>
and a.alert_status = #{alertStatus}
and a.alert_status = #{alertStatus}
</if>
</if>
...
@@ -186,7 +188,8 @@
...
@@ -186,7 +188,8 @@
<if
test=
"isFatherAlert!= null and isFatherAlert == 'true' "
>
<if
test=
"isFatherAlert!= null and isFatherAlert == 'true' "
>
,jc_power_transfer j
,jc_power_transfer j
</if>
</if>
<where>
a.is_delete = 0
<where>
a.is_delete = 0 and a.alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
"alertStatus!= null "
>
<if
test=
"alertStatus!= null "
>
and a.alert_status = #{alertStatus}
and a.alert_status = #{alertStatus}
</if>
</if>
...
@@ -212,7 +215,8 @@
...
@@ -212,7 +215,8 @@
<select
id=
"AlertCalledcountTime"
resultType=
"Integer"
>
<select
id=
"AlertCalledcountTime"
resultType=
"Integer"
>
select COUNT(*) from jc_alert_called where is_delete=0
select COUNT(*) from jc_alert_called where is_delete=0 and alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
'type==1'
>
<if
test=
'type==1'
>
and YEAR(call_time)=YEAR(NOW())
and YEAR(call_time)=YEAR(NOW())
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
View file @
db8e3d5d
...
@@ -72,7 +72,10 @@
...
@@ -72,7 +72,10 @@
from jc_power_transfer pt
from jc_power_transfer pt
left join jc_power_transfer_company ptc on pt.sequence_nbr = ptc.power_transfer_id
left join jc_power_transfer_company ptc on pt.sequence_nbr = ptc.power_transfer_id
left join jc_power_transfer_company_resources ptcr on ptc.sequence_nbr = ptcr.power_transfer_company_id
left join jc_power_transfer_company_resources ptcr on ptc.sequence_nbr = ptcr.power_transfer_company_id
LEFT JOIN jc_alert_called a ON pt.alert_called_id = a.sequence_nbr
<where>
<where>
a.alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
"beginDate != null and beginDate != ''"
>
<if
test=
"beginDate != null and beginDate != ''"
>
AND pt.rec_date
>
= #{beginDate}
AND pt.rec_date
>
= #{beginDate}
</if>
</if>
...
@@ -85,9 +88,13 @@
...
@@ -85,9 +88,13 @@
</select>
</select>
<select
id=
"getPowerTransferInfo"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto"
>
<select
id=
"getPowerTransferInfo"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto"
>
select sequence_nbr, rescue_grid
select
from jc_power_transfer pt
pt.sequence_nbr,
pt.rescue_grid
from jc_power_transfer pt LEFT JOIN jc_alert_called a ON pt.alert_called_id = a.sequence_nbr
<where>
<where>
a.alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
"beginDate != null and beginDate != ''"
>
<if
test=
"beginDate != null and beginDate != ''"
>
AND pt.rec_date
>
= #{beginDate}
AND pt.rec_date
>
= #{beginDate}
</if>
</if>
...
@@ -103,7 +110,10 @@
...
@@ -103,7 +110,10 @@
select ptc.sequence_nbr, ptc.company_name, ptc.is_distribution_agencies, ptc.power_transfer_id
select ptc.sequence_nbr, ptc.company_name, ptc.is_distribution_agencies, ptc.power_transfer_id
from jc_power_transfer pt
from jc_power_transfer pt
left join jc_power_transfer_company ptc on pt.sequence_nbr = ptc.power_transfer_id
left join jc_power_transfer_company ptc on pt.sequence_nbr = ptc.power_transfer_id
LEFT JOIN jc_alert_called a ON pt.alert_called_id = a.sequence_nbr
<where>
<where>
a.alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
"beginDate != null and beginDate != ''"
>
<if
test=
"beginDate != null and beginDate != ''"
>
AND pt.rec_date
>
= #{beginDate}
AND pt.rec_date
>
= #{beginDate}
</if>
</if>
...
@@ -120,7 +130,8 @@
...
@@ -120,7 +130,8 @@
from jc_power_transfer pt
from jc_power_transfer pt
left join jc_power_transfer_company ptc on pt.sequence_nbr = ptc.power_transfer_id
left join jc_power_transfer_company ptc on pt.sequence_nbr = ptc.power_transfer_id
left join jc_power_transfer_company_resources ptcr on ptc.sequence_nbr = ptcr.power_transfer_company_id
left join jc_power_transfer_company_resources ptcr on ptc.sequence_nbr = ptcr.power_transfer_company_id
where ptc.is_distribution_agencies = 0
LEFT JOIN jc_alert_called a ON pt.alert_called_id = a.sequence_nbr
where ptc.is_distribution_agencies = 0 and a.alert_type_code
<![CDATA[ <> ]]>
1214
<if
test=
"beginDate != null and beginDate != ''"
>
<if
test=
"beginDate != null and beginDate != ''"
>
AND pt.rec_date
>
= #{beginDate}
AND pt.rec_date
>
= #{beginDate}
</if>
</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