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
0ff3f829
Commit
0ff3f829
authored
Jan 04, 2022
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防水源消防队伍改造
parent
ac9da698
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
WaterResourceMapper.java
...os/boot/module/common/api/mapper/WaterResourceMapper.java
+3
-3
WaterResourceMapper.xml
...mon-api/src/main/resources/mapper/WaterResourceMapper.xml
+4
-3
WaterResourceController.java
...module/common/biz/controller/WaterResourceController.java
+3
-2
WaterResourceServiceImpl.java
...ule/common/biz/service/impl/WaterResourceServiceImpl.java
+0
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/WaterResourceMapper.java
View file @
0ff3f829
...
...
@@ -47,7 +47,7 @@ public interface WaterResourceMapper extends BaseMapper<WaterResource> {
*/
Page
<
WaterResourceDto
>
getWaterResourcePageByParams
(
Page
<
WaterResourceDto
>
page
,
String
name
,
String
resourceType
,
ArrayList
<
Long
>
belongBuildingId
,
Long
belongFightingSystemId
,
Long
sequenceNbr
,
String
equipId
,
String
bizOrgCode
);
Map
<
String
,
Object
>
getWaterTypeByBizOrgCode
(
String
bizOrgCode
);
Long
sequenceNbr
,
String
equipId
,
String
bizOrgCode
,
String
equipCateGoryCode
);
List
<
Map
<
String
,
Object
>
>
getWaterTypeByBizOrgCode
(
String
bizOrgCode
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/WaterResourceMapper.xml
View file @
0ff3f829
...
...
@@ -134,6 +134,7 @@
select * from cb_water_resource where is_delete = 1
<if
test=
"sequenceNbr != null and sequenceNbr != ''"
>
and sequence_nbr = #{sequenceNbr}
</if>
<if
test=
"resourceType != null and resourceType != ''"
>
and resource_type = #{resourceType}
</if>
<if
test=
"equipCateGoryCode != null and equipCateGoryCode != ''"
>
and equip_category_code = #{equipCateGoryCode}
</if>
<if
test=
"equipId != null and equipId != ''"
>
and equip_id = #{equipId}
</if>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"belongFightingSystemId != null"
>
...
...
@@ -152,15 +153,15 @@
</select>
<select
id=
"getWaterTypeByBizOrgCode"
resultType=
"map"
>
SELECT
equip_category_cod
e,
equip_category_code typ
e,
COUNT(sequence_nbr) as num
FROM
cb_water_resource
WHERE
is_delete =
0
is_delete =
1
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND biz_org_code like concat( #{bizOrgCode}, '%')
</if>
GROUP BY
equip_category_code
equip_category_code
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/WaterResourceController.java
View file @
0ff3f829
...
...
@@ -465,14 +465,15 @@ public class WaterResourceController extends BaseController {
Long
belongFightingSystemId
,
Long
sequenceNbr
,
String
resourceType
,
String
classifyId
,
String
bizOrgCode
)
{
String
bizOrgCode
,
String
equipCateGoryCode
)
{
Page
<
WaterResourceDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
pageNum
);
page
.
setSize
(
pageSize
);
/*bug 2913 更换保存方式 存储到公共附件表 chenzhao 2021-10-18 start*/
Page
<
WaterResourceDto
>
waterResourceDtoPage
=
waterResourceServiceImpl
.
queryForWaterResourcePage
(
page
,
name
,
resourceType
,
belongBuildingId
,
belongFightingSystemId
,
sequenceNbr
,
classifyId
,
bizOrgCode
);
belongBuildingId
,
belongFightingSystemId
,
sequenceNbr
,
classifyId
,
bizOrgCode
,
equipCateGoryCode
);
List
<
WaterResourceDto
>
records
=
waterResourceDtoPage
.
getRecords
();
records
.
forEach
(
i
->{
Map
<
String
,
List
<
AttachmentDto
>>
attachments
=
sourceFileService
.
getAttachments
(
i
.
getSequenceNbr
());
...
...
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 @
0ff3f829
This diff is collapsed.
Click to expand it.
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