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
1c4e1494
Commit
1c4e1494
authored
Jul 26, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
b5bd46e7
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
144 additions
and
23 deletions
+144
-23
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+5
-0
InputItemController.java
.../amos/patrol/business/controller/InputItemController.java
+6
-0
MsgController.java
...eejoin/amos/patrol/business/controller/MsgController.java
+5
-0
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+4
-1
PlanTaskController.java
...n/amos/patrol/business/controller/PlanTaskController.java
+36
-0
PointController.java
...join/amos/patrol/business/controller/PointController.java
+3
-3
RouteController.java
...join/amos/patrol/business/controller/RouteController.java
+4
-1
PlanTaskPageParam.java
...yeejoin/amos/patrol/business/param/PlanTaskPageParam.java
+14
-0
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+8
-0
IPlanTaskService.java
.../amos/patrol/business/service/intfc/IPlanTaskService.java
+9
-0
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+50
-18
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/CheckController.java
View file @
1c4e1494
...
...
@@ -126,6 +126,11 @@ public class CheckController extends AbstractBaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
param
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
param
.
setOrderBy
(
"checkDate desc"
);
if
(
commonPageable
!=
null
){
param
.
setPageNumber
(
commonPageable
.
getPageNumber
()-
1
);
param
.
setPageSize
(
commonPageable
.
getPageSize
());
}
Page
<
CheckInfoVo
>
list
=
checkService
.
getCheckInfo
(
null
,
null
,
null
,
param
);
return
CommonResponseUtil
.
success
(
list
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/InputItemController.java
View file @
1c4e1494
...
...
@@ -84,6 +84,12 @@ public class InputItemController extends AbstractBaseController {
//查询向上查询所属单位的bizOrgCode
String
bizOrgCode
=
((
Map
<
String
,
Object
>)
companyByBizOrgCodeList
.
getResult
()).
get
(
"bizOrgCode"
).
toString
();
criterias
.
setBizOrgCode
(
bizOrgCode
);
if
(
pageable
!=
null
)
{
criterias
.
setPageNumber
(
pageable
.
getPageNumber
()-
1
);
criterias
.
setPageSize
(
pageable
.
getPageSize
());
}
Page
<
InputItemVo
>
page
=
inputItemService
.
queryInputItemByPageNew
(
criterias
);
return
CommonResponseUtil
.
success
(
page
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/MsgController.java
View file @
1c4e1494
...
...
@@ -100,6 +100,11 @@ public class MsgController extends AbstractBaseController {
try
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
param
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
if
(
commonPageable
!=
null
)
{
param
.
setPageNumber
(
commonPageable
.
getPageNumber
());
param
.
setPageSize
(
commonPageable
.
getPageSize
());
}
Page
<
MsgVo
>
dataList
=
iMsgService
.
queryMsgInfoList
(
param
);
return
CommonResponseUtil
.
success
(
dataList
);
}
catch
(
Exception
e
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanController.java
View file @
1c4e1494
...
...
@@ -46,7 +46,10 @@ public class PlanController extends AbstractBaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
queryRequests
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
if
(
commonPageable
!=
null
){
queryRequests
.
setPageNumber
(
commonPageable
.
getPageNumber
()-
1
);
queryRequests
.
setPageSize
(
commonPageable
.
getPageSize
());
}
Page
<
HashMap
<
String
,
Object
>>
list
=
planService
.
getPlanInfo
(
queryRequests
);
return
CommonResponseUtil
.
success
(
list
);
}
...
...
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 @
1c4e1494
...
...
@@ -64,6 +64,42 @@ public class PlanTaskController extends AbstractBaseController {
/* @Autowired
private IUserService userService;*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"计划执行查询"
,
notes
=
"计划执行查询"
)
@RequestMapping
(
value
=
"/listNew"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
getPlanTaskListNew
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
PlanTaskPageParam
params
,
@ApiParam
(
value
=
"分页参数"
,
required
=
true
)
CommonPageable
commonPageable
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
params
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
if
(!
ObjectUtils
.
isEmpty
(
commonPageable
))
{
params
.
setPageNumber
(
commonPageable
.
getPageNumber
()-
1
);
params
.
setPageSize
(
commonPageable
.
getPageSize
());
}
Page
<
HashMap
<
String
,
Object
>>
list
=
planTaskService
.
getPlanTaskInfoNew
(
params
);
return
CommonResponseUtil
.
success
(
list
);
}
/**
* 计划执行查询
*
...
...
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 @
1c4e1494
...
...
@@ -1247,12 +1247,12 @@ public class PointController extends AbstractBaseController {
@ApiParam
(
value
=
"区域"
)
@RequestParam
(
value
=
"riskSourceId"
,
required
=
false
)
Long
riskSourceId
,
@ApiParam
(
value
=
"点编号"
)
@RequestParam
(
value
=
"pointNo"
,
required
=
false
)
String
pointNo
,
@ApiParam
(
value
=
"点名称"
)
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"
current"
,
defaultValue
=
"1"
)
int
current
,
@RequestParam
(
value
=
"
size"
,
defaultValue
=
"10"
)
int
s
ize
)
{
@RequestParam
(
value
=
"
pageNumber"
,
defaultValue
=
"0"
)
int
pageNumber
,
@RequestParam
(
value
=
"
pageSize"
,
defaultValue
=
"10"
)
int
pageS
ize
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
companyBizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
return
CommonResponseUtil
.
success
(
iPointService
.
queryPointList4RouteNew
(
companyBizOrgCode
,
riskSourceId
,
pointNo
,
name
,
current
,
s
ize
));
return
CommonResponseUtil
.
success
(
iPointService
.
queryPointList4RouteNew
(
companyBizOrgCode
,
riskSourceId
,
pointNo
,
name
,
pageNumber
-
1
,
pageS
ize
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/RouteController.java
View file @
1c4e1494
...
...
@@ -89,7 +89,10 @@ public class RouteController extends AbstractBaseController {
//获取所在公司code
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
queryRequests
.
setBizOrgCode
(
bizOrgCode
);
if
(
commonPageable
!=
null
){
queryRequests
.
setPageNumber
(
commonPageable
.
getPageNumber
()-
1
);
queryRequests
.
setPageSize
(
commonPageable
.
getPageSize
());
}
Page
<
HashMap
<
String
,
Object
>>
routeList
=
routeService
.
getRouteInfo
(
null
,
null
,
null
,
queryRequests
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/param/PlanTaskPageParam.java
View file @
1c4e1494
...
...
@@ -48,6 +48,20 @@ public class PlanTaskPageParam extends CommonPageable {
*/
private
String
userId
;
/**
* 单位
* */
private
String
bizOrgCode
;
public
String
getBizOrgCode
()
{
return
bizOrgCode
;
}
public
void
setBizOrgCode
(
String
bizOrgCode
)
{
this
.
bizOrgCode
=
bizOrgCode
;
}
public
String
getPointNo
()
{
return
pointNo
;
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
1c4e1494
...
...
@@ -249,6 +249,14 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
@Override
public
Page
<
HashMap
<
String
,
Object
>>
getPlanTaskInfoNew
(
PlanTaskPageParam
params
)
{
long
total
=
planTaskMapper
.
countPlanTask
(
params
);
List
<
HashMap
<
String
,
Object
>>
content
=
planTaskMapper
.
getPlanTaskInfo
(
params
);
Page
<
HashMap
<
String
,
Object
>>
result
=
new
PageImpl
<
HashMap
<
String
,
Object
>>(
content
,
params
,
total
);
return
result
;
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
reGenPlanTask
(
HashMap
<
String
,
Object
>
param
)
throws
ParseException
{
//1.公共参数准备
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/IPlanTaskService.java
View file @
1c4e1494
...
...
@@ -25,6 +25,15 @@ public interface IPlanTaskService {
*/
Page
<
HashMap
<
String
,
Object
>>
getPlanTaskInfo
(
String
toke
,
String
product
,
String
appKey
,
PlanTaskPageParam
params
);
/**
* 计划执行查询新
*/
Page
<
HashMap
<
String
,
Object
>>
getPlanTaskInfoNew
(
PlanTaskPageParam
params
);
/**
* 计划执行重做
*/
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
1c4e1494
...
...
@@ -13,21 +13,37 @@
<where>
<if
test=
"pointNo!=null"
>
and d.point_no like concat('%',#{pointNo},'%')
</if>
<if
test=
"pointName!=null"
>
and d.name like concat('%',#{pointName},'%')
</if>
AND
((
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
)
OR
(
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[<=]]>
#{beginDate} AND a.end_Time
<![CDATA[>=]]>
#{beginDate}
</if>
)
OR
(
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[<=]]>
#{endDate} AND a.end_Time
<![CDATA[>=]]>
#{endDate}
</if>
)
OR
(
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[<=]]>
#{beginDate} AND a.end_Time
<![CDATA[>=]]>
#{endDate}
</if>
)
)
<!-- AND-->
<!-- ((<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[>=]]> #{beginDate} AND a.end_Time <![CDATA[<=]]> #{endDate}</if>)-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{beginDate}</if>)-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{endDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- )-->
<if
test=
"beginDate!=null and endDate!=null"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate==null and endDate != null"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate!=null and endDate == null"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
<if
test=
"status!=null"
>
and b.is_finish = #{status}
</if>
<if
test=
"planId!=null"
>
and a.plan_id = #{planId}
</if>
<if
test=
"routeId!=null"
>
and a.route_id = #{routeId}
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"bizOrgCode!=null"
>
and d.biz_org_code = #{bizOrgCode}
</if>
</where>
order by b.id) t
</select>
...
...
@@ -66,18 +82,34 @@
<where>
<if
test=
"pointNo!=null"
>
and d.point_no like concat('%',#{pointNo},'%')
</if>
<if
test=
"pointName!=null"
>
and d.name like concat('%',#{pointName},'%')
</if>
AND
((
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
)
OR
(
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[<=]]>
#{beginDate} AND a.end_Time
<![CDATA[>=]]>
#{beginDate}
</if>
)
OR
(
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[<=]]>
#{endDate} AND a.end_Time
<![CDATA[>=]]>
#{endDate}
</if>
)
OR
(
<if
test=
"beginDate!=null and endDate!=null"
>
a.begin_Time
<![CDATA[<=]]>
#{beginDate} AND a.end_Time
<![CDATA[>=]]>
#{endDate}
</if>
)
)
<!-- AND-->
<!-- ((<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[>=]]> #{beginDate} AND a.end_Time <![CDATA[<=]]> #{endDate}</if>)-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{beginDate}</if>)-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{endDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- )-->
<if
test=
"beginDate!=null and endDate!=null"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate==null and endDate != null"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate!=null and endDate == null"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
<if
test=
"status!=null"
>
and b.is_finish = #{status}
</if>
<if
test=
"routeId!=null"
>
and a.route_id = #{routeId}
</if>
<if
test=
"planId!=null"
>
and a.plan_id = #{planId}
</if>
<if
test=
"bizOrgCode!=null"
>
and d.biz_org_code = #{bizOrgCode}
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</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