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
4fee119a
Commit
4fee119a
authored
Sep 18, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
225aa454
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
155 additions
and
5 deletions
+155
-5
PlanTaskController.java
...n/amos/patrol/business/controller/PlanTaskController.java
+6
-5
CommonPatrolResponseUtil.java
...n/amos/patrol/business/util/CommonPatrolResponseUtil.java
+64
-0
Constant.java
.../java/com/yeejoin/amos/patrol/business/util/Constant.java
+85
-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/PlanTaskController.java
View file @
4fee119a
...
@@ -41,6 +41,7 @@ import org.springframework.web.context.request.RequestContextHolder;
...
@@ -41,6 +41,7 @@ import org.springframework.web.context.request.RequestContextHolder;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -1082,15 +1083,15 @@ public class PlanTaskController extends AbstractBaseController {
...
@@ -1082,15 +1083,15 @@ public class PlanTaskController extends AbstractBaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"idx消防巡查报表调用"
,
notes
=
"idx消防巡查报表调用"
)
@ApiOperation
(
value
=
"idx消防巡查报表调用"
,
notes
=
"idx消防巡查报表调用"
)
@RequestMapping
(
value
=
"/report/info"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/report/info"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
getPlanTaskInfoList
(
@ApiParam
(
value
=
"站编码"
)
@RequestParam
(
required
=
false
)
String
bizOrgCode
,
public
ResponseModel
getPlanTaskInfoList
(
@ApiParam
(
value
=
"站编码"
)
@RequestParam
(
required
=
false
)
String
bizOrgCode
,
@ApiParam
(
value
=
"开始日期"
)
@RequestParam
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
startDate
,
@ApiParam
(
value
=
"开始日期"
)
@RequestParam
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
startDate
,
@ApiParam
(
value
=
"结束日期"
)
@RequestParam
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
endDate
)
{
@ApiParam
(
value
=
"结束日期"
)
@RequestParam
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
endDate
)
{
try
{
try
{
Map
<
String
,
Object
>
map
=
planTaskService
.
queryPatrolInfoList
(
bizOrgCode
,
startDate
,
endDate
);
Map
<
String
,
Object
>
map
=
planTaskService
.
queryPatrolInfoList
(
bizOrgCode
,
startDate
,
endDate
);
return
CommonResponseUtil
.
success
(
map
);
return
Common
Patrol
ResponseUtil
.
success
(
map
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
"远程查询巡检信息失败!"
);
return
Common
Patrol
ResponseUtil
.
failure
(
"远程查询巡检信息失败!"
);
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/util/CommonPatrolResponseUtil.java
0 → 100644
View file @
4fee119a
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
util
;
import
org.springframework.http.HttpStatus
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
public
class
CommonPatrolResponseUtil
{
private
CommonPatrolResponseUtil
()
{
}
public
static
ResponseModel
success
()
{
ResponseModel
res
=
new
ResponseModel
<>();
res
.
setDevMessage
(
Constant
.
RESULT_SUCCESS
);
res
.
setStatus
(
HttpStatus
.
OK
.
value
());
return
res
;
}
public
static
ResponseModel
success
(
Object
obj
)
{
ResponseModel
<
Object
>
res
=
new
ResponseModel
<>();
res
.
setResult
(
obj
);
res
.
setDevMessage
(
Constant
.
RESULT_SUCCESS
);
res
.
setStatus
(
HttpStatus
.
OK
.
value
());
return
res
;
}
public
static
ResponseModel
success
(
Object
obj
,
String
message
)
{
ResponseModel
res
=
new
ResponseModel
<>();
res
.
setResult
(
obj
);
res
.
setDevMessage
(
message
);
res
.
setStatus
(
HttpStatus
.
OK
.
value
());
return
res
;
}
public
static
ResponseModel
failure
()
{
ResponseModel
res
=
new
ResponseModel
<>();
res
.
setDevMessage
(
Constant
.
RESULT_FAILURE
);
res
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
return
res
;
}
public
static
ResponseModel
failure
(
String
message
)
{
ResponseModel
res
=
new
ResponseModel
<>();
res
.
setDevMessage
(
Constant
.
RESULT_FAILURE
);
res
.
setMessage
(
message
);
res
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
return
res
;
}
public
static
ResponseModel
failure
(
Object
obj
,
String
message
)
{
ResponseModel
res
=
new
ResponseModel
<>();
res
.
setResult
(
obj
);
res
.
setMessage
(
message
);
res
.
setDevMessage
(
Constant
.
RESULT_FAILURE
);
res
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
return
res
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/util/Constant.java
0 → 100644
View file @
4fee119a
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
util
;
/**
* @Description: 常量类
* @Author: duanwei
* @Date: 2019/7/29
*/
public
interface
Constant
{
String
RESULT_SUCCESS
=
"SUCCESS"
;
String
RESULT_FAILURE
=
"FAILURE"
;
/**
* 请求成功
*/
String
SUCCESS
=
"200"
;
String
NULL
=
""
;
/**
* 数字换流站大小屏数据编码
* //fireResources(资源概率);fireCAFSSys(CAFS系统);fireAlarmSys(火灾报警系统);
* fireONLSys(排油系统);fireFoamSys(泡沫灭火系统);
* fireWaterSys(消防给水系统);fireFoamMistSys(细水雾涡扇炮系统)
*/
String
threeBigTopicfireResources
=
"threeBigTopicfireResources"
;
String
threeSmallTopicfireResources
=
"threeSmallTopicfireResources"
;
String
fourBigTopicfireResources
=
"fourBigTopicfireResources"
;
String
fourSmallTopicfireResources
=
"fourSmallTopicfireResources"
;
String
threeBigTopicfireCAFSSys
=
"threeBigTopicfireCAFSSys"
;
String
threeSmallTopicfireCAFSSys
=
"threeSmallTopicfireCAFSSys"
;
String
fourSmallTopicfireCAFSSys
=
"fourSmallTopicfireCAFSSys"
;
String
threeBigTopicfireAlarmSys
=
"threeBigTopicfireAlarmSys"
;
String
threeSmallTopicfireAlarmSys
=
"threeSmallTopicfireAlarmSys"
;
String
fourSmallTopicfireAlarmSys
=
"fourSmallTopicfireAlarmSys"
;
String
threeBigTopicfireONLSys
=
"threeBigTopicfireONLSys"
;
String
threeSmallTopicfireONLSys
=
"threeSmallTopicfireONLSys"
;
String
fourSmallTopicfireONLSys
=
"fourSmallTopicfireONLSys"
;
String
threeBigTopicfireFoamSys
=
"threeBigTopicfireFoamSys"
;
String
threeSmallTopicfireFoamSys
=
"threeSmallTopicfireFoamSys"
;
String
fourSmallTopicfireFoamSys
=
"fourSmallTopicfireFoamSys"
;
String
threeBigTopicfireWaterSys
=
"threeBigTopicfireWaterSys"
;
String
threeSmallTopicfireWaterSys
=
"threeSmallTopicfireWaterSys"
;
String
fourSmallTopicfireWaterSys
=
"fourSmallTopicfireWaterSys"
;
String
threeBigTopicfireFoamMistSys
=
"threeBigTopicfireFoamMistSys"
;
String
threeSmallTopicfireFoamMistSys
=
"threeSmallTopicfireFoamMistSys"
;
String
fourSmallTopicfireFoamMistSys
=
"fourSmallTopicfireFoamMistSys"
;
}
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