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
22dc9674
Commit
22dc9674
authored
Apr 17, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改水源导出携带参数
parent
6f055f2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
WaterResourceMapper.java
...os/boot/module/common/api/mapper/WaterResourceMapper.java
+1
-1
WaterResourceMapper.xml
...mon-api/src/main/resources/mapper/WaterResourceMapper.xml
+2
-2
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+1
-1
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 @
22dc9674
...
@@ -18,7 +18,7 @@ import java.util.Map;
...
@@ -18,7 +18,7 @@ import java.util.Map;
*/
*/
public
interface
WaterResourceMapper
extends
BaseMapper
<
WaterResource
>
{
public
interface
WaterResourceMapper
extends
BaseMapper
<
WaterResource
>
{
List
<
WaterResourceForExportDto
>
exportToExcel
(
@Param
(
"isDelete"
)
Boolean
isDelete
,
@Param
(
"name"
)
String
name
,
@Param
(
"
resourceType"
)
String
resourceTyp
e
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
WaterResourceForExportDto
>
exportToExcel
(
@Param
(
"isDelete"
)
Boolean
isDelete
,
@Param
(
"name"
)
String
name
,
@Param
(
"
equipCateGoryCode"
)
String
equipCateGoryCod
e
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/***
/***
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/WaterResourceMapper.xml
View file @
22dc9674
...
@@ -72,8 +72,8 @@
...
@@ -72,8 +72,8 @@
<if
test=
'name!=null and name!=""'
>
<if
test=
'name!=null and name!=""'
>
and r.name like concat('%',#{name}, '%')
and r.name like concat('%',#{name}, '%')
</if>
</if>
<if
test=
'
resourceType!=null and resourceTyp
e!=""'
>
<if
test=
'
equipCateGoryCode!=null and equipCateGoryCod
e!=""'
>
and r.
resource_type= #{resourceTyp
e}
and r.
equip_category_code = #{equipCateGoryCod
e}
</if>
</if>
<if
test=
'bizOrgCode !=null and bizOrgCode!=""'
>
<if
test=
'bizOrgCode !=null and bizOrgCode!=""'
>
and r.biz_org_code like concat('%',#{bizOrgCode}, '%')
and r.biz_org_code like concat('%',#{bizOrgCode}, '%')
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
22dc9674
...
@@ -285,7 +285,7 @@ public class ExcelServiceImpl {
...
@@ -285,7 +285,7 @@ public class ExcelServiceImpl {
List
<
WaterResourceForExportDto
>
waterResourceDtoList
=
null
;
List
<
WaterResourceForExportDto
>
waterResourceDtoList
=
null
;
if
(
par
.
size
()>
0
)
{
if
(
par
.
size
()>
0
)
{
waterResourceDtoList
=
waterResourceServiceImpl
.
exportToExcel
(
true
,
par
.
containsKey
(
"name"
)?
par
.
get
(
"name"
).
toString
():
null
,
waterResourceDtoList
=
waterResourceServiceImpl
.
exportToExcel
(
true
,
par
.
containsKey
(
"name"
)?
par
.
get
(
"name"
).
toString
():
null
,
par
.
containsKey
(
"
resourceType"
)?
par
.
get
(
"resourceTyp
e"
).
toString
():
null
,
par
.
containsKey
(
"bizOrgCode"
)?
par
.
get
(
"bizOrgCode"
).
toString
():
null
);
par
.
containsKey
(
"
equipCateGoryCode"
)?
par
.
get
(
"equipCateGoryCod
e"
).
toString
():
null
,
par
.
containsKey
(
"bizOrgCode"
)?
par
.
get
(
"bizOrgCode"
).
toString
():
null
);
}
else
{
}
else
{
waterResourceDtoList
=
waterResourceServiceImpl
.
exportToExcel
(
true
,
null
,
null
,
par
.
containsKey
(
"bizOrgCode"
)?
par
.
get
(
"bizOrgCode"
).
toString
():
null
);
waterResourceDtoList
=
waterResourceServiceImpl
.
exportToExcel
(
true
,
null
,
null
,
par
.
containsKey
(
"bizOrgCode"
)?
par
.
get
(
"bizOrgCode"
).
toString
():
null
);
}
}
...
...
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