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
f0edbff5
Commit
f0edbff5
authored
Jul 25, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
7f627600
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
PointController.java
...join/amos/patrol/business/controller/PointController.java
+34
-0
PointImportQueryParam.java
...oin/amos/patrol/business/param/PointImportQueryParam.java
+10
-0
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+3
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
f0edbff5
...
...
@@ -734,7 +734,10 @@ public class PointController extends AbstractBaseController {
return
CommonResponseUtil
.
failure
(
"用户session过期"
);
}
try
{
PointImportQueryParam
pointImportQueryParam
=
PointParamUtils
.
fillPointImportQuery
(
queryRequests
);
pointImportQueryParam
.
setOrgCode
(
orgCode
);
List
<
PointVo
>
pointList
=
iPointService
.
queryPointInfoListByIds
(
pointImportQueryParam
);
if
(
exportType
==
0
)
{
...
...
@@ -749,6 +752,37 @@ public class PointController extends AbstractBaseController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"查询巡检点信息"
,
notes
=
"查询巡检点信息"
)
@PostMapping
(
value
=
"/exportListPointNew"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
exportListPointNew
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
List
<
CommonRequest
>
queryRequests
,
@RequestParam
(
value
=
"exportType"
,
required
=
false
)
int
exportType
,
HttpServletResponse
response
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
companyBizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
if
(
ObjectUtils
.
isEmpty
(
reginParams
))
{
return
CommonResponseUtil
.
failure
(
"用户session过期"
);
}
try
{
PointImportQueryParam
pointImportQueryParam
=
new
PointImportQueryParam
();
pointImportQueryParam
.
setBizOrgCode
(
companyBizOrgCode
);
List
<
PointVo
>
pointList
=
iPointService
.
queryPointInfoListByIds
(
pointImportQueryParam
);
if
(
exportType
==
0
)
{
FileHelper
.
exportExcel
(
pointList
,
"巡检点列表"
,
"巡检点信息"
,
PointVo
.
class
,
"巡检点.xls"
,
response
);
}
else
if
(
exportType
==
1
)
{
FileHelper
.
exportQRCode
(
pointList
,
"巡检点二维码"
,
response
);
}
return
CommonResponseUtil
.
success
(
"导出成功"
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
"查询巡检点信息失败"
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"查询巡检点信息"
,
notes
=
"查询巡检点信息"
)
@GetMapping
(
value
=
"/exportListPointByIds"
,
produces
=
"application/json;charset=UTF-8"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/param/PointImportQueryParam.java
View file @
f0edbff5
...
...
@@ -8,8 +8,18 @@ public class PointImportQueryParam {
private
String
orgCode
;
private
String
bizOrgCode
;
private
String
pointNo
;
public
String
getBizOrgCode
()
{
return
bizOrgCode
;
}
public
void
setBizOrgCode
(
String
bizOrgCode
)
{
this
.
bizOrgCode
=
bizOrgCode
;
}
private
String
name
;
private
String
isFixed
;
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
f0edbff5
...
...
@@ -950,6 +950,9 @@
<if
test=
"orgCode !=null and orgCode !=''"
>
and p.org_code = #{orgCode}
</if>
<if
test=
"bizOrgCode !=null and bizOrgCode !=''"
>
and p.biz_org_code like CONCAT(#{bizOrgCode},'%')
</if>
<if
test=
"pointNo !=null and pointNo !=''"
>
and p.point_no like concat(concat("%",#{pointNo}),"%")
</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