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
b5bd46e7
Commit
b5bd46e7
authored
Jul 26, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增接口
parent
268d9fb5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
0 deletions
+52
-0
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+33
-0
PlanInfoPageParam.java
...yeejoin/amos/patrol/business/param/PlanInfoPageParam.java
+14
-0
dbTemplate_plan.xml
...m-patrol/src/main/resources/db/mapper/dbTemplate_plan.xml
+5
-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/PlanController.java
View file @
b5bd46e7
...
...
@@ -32,6 +32,39 @@ public class PlanController extends AbstractBaseController {
@Autowired
private
IPlanService
planService
;
/**
* 新加接口
*
* **/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"巡检计划查询"
,
notes
=
"巡检计划查询"
)
@RequestMapping
(
value
=
"/listNew"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
qryCheckInfoPageNew
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
PlanInfoPageParam
queryRequests
,
@ApiParam
(
value
=
"分页参数"
,
required
=
true
)
CommonPageable
commonPageable
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
queryRequests
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
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/param/PlanInfoPageParam.java
View file @
b5bd46e7
...
...
@@ -42,6 +42,20 @@ public class PlanInfoPageParam extends CommonPageable {
*/
private
String
userId
;
/**
* 单位
* */
private
String
bizOrgCode
;
public
String
getBizOrgCode
()
{
return
bizOrgCode
;
}
public
void
setBizOrgCode
(
String
bizOrgCode
)
{
this
.
bizOrgCode
=
bizOrgCode
;
}
public
String
getDeptId
()
{
return
deptId
;
}
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan.xml
View file @
b5bd46e7
...
...
@@ -125,6 +125,9 @@
<if
test=
"deptId!=null"
>
and a.dept_id = #{deptId}
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"bizOrgCode!=null"
>
and b.biz_org_code like concat(concat("%",#{bizOrgCode}),"%")
</if>
</select>
<!--巡检计划查询 -->
<select
id=
"getPlanInfo"
resultType=
"java.util.HashMap"
>
...
...
@@ -143,6 +146,8 @@
<if
test=
"remark!=null"
>
and a.remark1 like concat(concat("%",#{remark}),"%")
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"bizOrgCode!=null"
>
and b.biz_org_code like concat(concat("%",#{bizOrgCode}),"%")
</if>
order by a.id desc
<choose>
<when
test=
"pageSize==-1"
></when>
...
...
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