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
1c4285c5
Commit
1c4285c5
authored
Sep 29, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增厂站消防数据更新接口
parent
f119683d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
2 deletions
+45
-2
IdxFeignService.java
...ejoin/amos/boot/module/tdc/api/feign/IdxFeignService.java
+5
-0
CheckReportService.java
.../amos/boot/module/tdc/api/service/CheckReportService.java
+5
-0
CheckReportController.java
...boot/module/tdc/biz/controller/CheckReportController.java
+16
-0
CheckReportImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckReportImpl.java
+19
-2
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/feign/IdxFeignService.java
View file @
1c4285c5
...
@@ -32,4 +32,9 @@ public interface IdxFeignService {
...
@@ -32,4 +32,9 @@ public interface IdxFeignService {
*/
*/
@RequestMapping
(
value
=
"/v1/subject-tree"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/v1/subject-tree"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
JSONObject
>>
subjectTree
(
@RequestParam
(
"projectId"
)
String
projectId
);
ResponseModel
<
List
<
JSONObject
>>
subjectTree
(
@RequestParam
(
"projectId"
)
String
projectId
);
@RequestMapping
(
value
=
"/report/getTasks/v1"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
JSONObject
>
getInfo
(
@RequestParam
(
"pageNumber"
)
int
pageNumber
,
@RequestParam
(
"pageSize"
)
int
pageSize
);
}
}
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/service/CheckReportService.java
View file @
1c4285c5
...
@@ -5,10 +5,15 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -5,10 +5,15 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
/**
/**
* @author DELL
* @author DELL
*/
*/
@Service
@Service
public
interface
CheckReportService
extends
IService
<
CheckReport
>
{
public
interface
CheckReportService
extends
IService
<
CheckReport
>
{
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
);
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
);
Map
getInfo
(
int
pageNumber
,
int
pageSize
);
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/CheckReportController.java
View file @
1c4285c5
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.tdc.biz.controller;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.tdc.biz.controller;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
import
com.yeejoin.amos.boot.module.tdc.biz.service.impl.CheckReportImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -14,6 +15,8 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...
@@ -14,6 +15,8 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.Map
;
/**
/**
* 校验报告
* 校验报告
* @author DELL
* @author DELL
...
@@ -37,4 +40,17 @@ public class CheckReportController {
...
@@ -37,4 +40,17 @@ public class CheckReportController {
return
ResponseHelper
.
buildResponse
(
checkReportService
.
selectAll
(
current
,
size
,
amosOrgCode
));
return
ResponseHelper
.
buildResponse
(
checkReportService
.
selectAll
(
current
,
size
,
amosOrgCode
));
}
}
/**
*
* return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"getInfo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"厂站消防数据更新"
,
notes
=
"厂站消防数据更新"
)
public
ResponseModel
<
Map
>
getInfo
(
int
pageNumber
,
int
pageSize
)
{
return
ResponseHelper
.
buildResponse
(
checkReportService
.
getInfo
(
pageNumber
,
pageSize
));
}
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckReportImpl.java
View file @
1c4285c5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.feign.IdxFeignService
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.CheckReportMapper
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.CheckReportMapper
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.List
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
* @author DELL
* @author DELL
...
@@ -20,6 +23,9 @@ import java.util.List;
...
@@ -20,6 +23,9 @@ import java.util.List;
@Service
@Service
public
class
CheckReportImpl
extends
ServiceImpl
<
CheckReportMapper
,
CheckReport
>
implements
CheckReportService
{
public
class
CheckReportImpl
extends
ServiceImpl
<
CheckReportMapper
,
CheckReport
>
implements
CheckReportService
{
@Autowired
IdxFeignService
idxFeignService
;
@Override
@Override
public
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
)
{
public
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
)
{
Page
<
CheckReport
>
page
=
new
Page
<>(
current
,
size
);
Page
<
CheckReport
>
page
=
new
Page
<>(
current
,
size
);
...
@@ -31,6 +37,17 @@ public class CheckReportImpl extends ServiceImpl<CheckReportMapper, CheckReport>
...
@@ -31,6 +37,17 @@ public class CheckReportImpl extends ServiceImpl<CheckReportMapper, CheckReport>
wrapper
.
likeRight
(
CheckReport:
:
getAmosOrgCode
,
amosOrgCode
);
wrapper
.
likeRight
(
CheckReport:
:
getAmosOrgCode
,
amosOrgCode
);
return
this
.
page
(
page
,
wrapper
);
return
this
.
page
(
page
,
wrapper
);
}
}
}
@Override
public
Map
getInfo
(
int
pageNumber
,
int
pageSize
){
Map
map
=
new
HashMap
<>();
JSONObject
object
=
idxFeignService
.
getInfo
(
pageNumber
,
pageSize
).
getResult
();
map
.
put
(
"current"
,
object
.
getString
(
"pageNumber"
));
map
.
put
(
"records"
,
object
.
getJSONArray
(
"taskListModel"
));
map
.
put
(
"total"
,
object
.
getString
(
"total"
));
return
map
;
}
}
}
}
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