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
47ec6628
Commit
47ec6628
authored
Dec 05, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_bugfix_0723' into develop_dl_bugfix_0723
parents
0c2be6c1
3030f80e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
108 additions
and
86 deletions
+108
-86
PoolStatisticController.java
...ejoin/equipmanage/controller/PoolStatisticController.java
+14
-4
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+1
-1
PlanTaskMapper.java
...ejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
+6
-3
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+50
-59
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+1
-5
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+36
-14
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/PoolStatisticController.java
View file @
47ec6628
package
com
.
yeejoin
.
equipmanage
.
controller
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -231,8 +232,7 @@ public class PoolStatisticController {
sortOrder
=
sorter
.
split
(
"@"
)[
1
];
}
Page
<
Map
<
String
,
Object
>>
page1
=
fireFightingSystemMapper
.
getWaterInfoList
(
page
,
bizOrgCode
,
sortField
,
sortOrder
,
status
);
List
<
Map
<
String
,
Object
>>
res
=
page1
.
getRecords
();
List
<
Map
<
String
,
Object
>>
res
=
fireFightingSystemMapper
.
getWaterInfoList
(
bizOrgCode
,
sortField
,
sortOrder
);
if
(!
res
.
isEmpty
())
{
for
(
Map
<
String
,
Object
>
m
:
res
)
{
Map
<
String
,
Object
>
transResult
=
UnitTransformUtil
.
transformValues
(
String
.
valueOf
(
m
.
get
(
"nowLevel"
)),
...
...
@@ -263,9 +263,19 @@ public class PoolStatisticController {
m
.
put
(
"status"
,
"0"
);
}
}
page1
.
setRecords
(
res
);
if
(
StrUtil
.
isNotEmpty
(
status
))
{
String
finalStatus
=
status
;
res
=
res
.
stream
().
filter
(
item
->
finalStatus
.
equals
(
item
.
get
(
"status"
).
toString
())).
collect
(
Collectors
.
toList
());
}
page
.
setTotal
(
res
.
size
());
List
<
Map
<
String
,
Object
>>
collect
=
res
.
stream
()
.
skip
((
long
)
(
commonPageable
.
getPageNumber
()
-
1
)
*
commonPageable
.
getPageSize
())
.
limit
(
commonPageable
.
getPageSize
())
.
collect
(
Collectors
.
toList
());
page
.
setRecords
(
collect
);
}
return
CommonResponseUtil
.
success
(
page
1
);
return
CommonResponseUtil
.
success
(
page
);
}
@RequestMapping
(
value
=
"/selectWaterLevelDetail"
,
method
=
RequestMethod
.
GET
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
47ec6628
...
...
@@ -356,7 +356,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
* @param bizOrgCode
* @return
*/
Page
<
Map
<
String
,
Object
>>
getWaterInfoList
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"sortField"
)
String
sortField
,
@Param
(
"sortOrder"
)
String
sortOrder
,
@Param
(
"status"
)
String
status
);
List
<
Map
<
String
,
Object
>>
getWaterInfoList
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"sortField"
)
String
sortField
,
@Param
(
"sortOrder"
)
String
sortOrder
);
/**
* 水源信息统计
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
View file @
47ec6628
...
...
@@ -343,10 +343,7 @@ public interface PlanTaskMapper extends BaseMapper {
List
<
Map
<
String
,
Object
>>
queryPatrolInfo
(
@Param
(
value
=
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
value
=
"startDate"
)
Date
startDate
,
@Param
(
value
=
"endDate"
)
Date
endDate
);
List
<
HashMap
<
String
,
Object
>>
selectPatrolRecordPage
(
@Param
(
value
=
"offset"
)
long
offset
,
@Param
(
value
=
"pageSize"
)
long
pageSize
,
@Param
(
value
=
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
value
=
"missStatus"
)
String
missStatus
,
@Param
(
value
=
"date"
)
String
date
);
Long
selectPatrolRecordTotal
(
...
...
@@ -359,4 +356,10 @@ public interface PlanTaskMapper extends BaseMapper {
@Param
(
value
=
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
value
=
"date"
)
String
date
);
Integer
getDoneNum
(
@Param
(
value
=
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
value
=
"date"
)
String
date
);
List
<
Map
<
String
,
Object
>>
getDoneList
(
@Param
(
value
=
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
value
=
"date"
)
String
date
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
47ec6628
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
47ec6628
...
...
@@ -5273,11 +5273,7 @@
) a1
)) b1
) c1 GROUP BY bizOrgName1) d ON d.bizOrgName1 = c.bizOrgName
<where>
<if
test=
"status != null and status != ''"
>
c.`status` = #{status}
</if>
</where>
<if
test=
"sortField == 'bizOrgName'"
>
<choose>
<when
test=
"sortOrder == 'ascend'"
>
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
47ec6628
...
...
@@ -1533,7 +1533,8 @@
FROM
p_plan_task
<where>
(finish_status = 2 OR finish_status = 3)
<!-- (finish_status = 2 OR finish_status = 3)-->
finish_num > 0
AND DATE_FORMAT( check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
...
...
@@ -1782,10 +1783,8 @@
s1.date
</select>
<select
id=
"selectPatrolRecordPage"
resultType=
"Map"
>
SELECT
*
FROM (
<select
id=
"selectPatrolRecordPage"
resultType=
"java.util.HashMap"
>
SELECT LEFT
( t.org_code, 18 ) AS bizOrgCode,
u.biz_org_name AS bizOrgName,
...
...
@@ -1810,15 +1809,7 @@
</where>
GROUP BY
LEFT ( t.org_code, 18 ),t.id
) t
<where>
<if
test=
"missStatus == 'miss'"
>
AND missPointCount > 0
</if>
<if
test=
"missStatus == 'noMiss'"
>
AND missPointCount = 0
</if>
</where>
</select>
<select
id=
"selectPatrolRecordTotal"
resultType=
"long"
>
...
...
@@ -1865,4 +1856,34 @@
GROUP BY
LEFT(t.org_code, 18)
</select>
<select
id=
"getDoneNum"
resultType=
"java.lang.Integer"
>
SELECT
COUNT(DISTINCT LEFT(p_plan_task.org_code, 18)) AS value
FROM
p_plan_task
<where>
finish_num > 0
AND DATE_FORMAT( check_date, '%Y-%m-%d' ) = #{date}
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
</where>
</select>
<select
id=
"getDoneList"
resultType=
"java.util.Map"
>
SELECT
COUNT( 1 ) AS num,
LEFT ( p_plan_task.org_code, 18 ) AS `code`
FROM
p_plan_task
<where>
finish_num > 0
AND DATE_FORMAT( check_date, '%Y-%m-%d' ) = #{date}
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
</where>
GROUP BY LEFT ( p_plan_task.org_code, 18 )
</select>
</mapper>
\ No newline at end of file
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