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
77fda14d
Commit
77fda14d
authored
Jun 10, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改维保记录查询BUG
parent
ba58da42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
CheckController.java
...amos/maintenance/business/controller/CheckController.java
+7
-1
dbTemplate_check.xml
...tenance/src/main/resources/db/mapper/dbTemplate_check.xml
+8
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/controller/CheckController.java
View file @
77fda14d
...
...
@@ -504,6 +504,13 @@ public class CheckController extends AbstractBaseController {
String
loginOrgCode
=
getOrgCode
(
reginParams
);
Map
<
String
,
Object
>
authMap
=
Bean
.
BeantoMap
(
reginParams
.
getPersonIdentity
());
params
.
putAll
(
authMap
);
params
.
put
(
"person"
,
person
);
if
(
StringUtil
.
isNotEmpty
(
person
))
{
ResponseModel
<
String
>
idByAmosOrgId
=
jcsFeignClient
.
getIdByAmosOrgId
(
person
);
if
(
StringUtil
.
isNotEmpty
(
idByAmosOrgId
.
getResult
()))
{
params
.
put
(
"person"
,
idByAmosOrgId
.
getResult
());
}
}
params
.
put
(
"userId"
,
userId
);
if
(
StringUtil
.
isNotEmpty
(
userId
))
{
ResponseModel
<
String
>
idByAmosOrgId
=
jcsFeignClient
.
getIdByAmosOrgId
(
userId
);
...
...
@@ -518,7 +525,6 @@ public class CheckController extends AbstractBaseController {
}
params
.
put
(
"beginTime"
,
beginTime
);
params
.
put
(
"endTime"
,
endTime
);
params
.
put
(
"person"
,
person
);
params
.
put
(
"companyId"
,
companyId
);
params
.
put
(
"equipId"
,
equipId
);
params
.
put
(
"orgCode"
,
loginOrgCode
);
...
...
amos-boot-system-maintenance/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
77fda14d
...
...
@@ -1916,6 +1916,10 @@
pc.org_code AS orgCode
FROM p_check pc
LEFT JOIN p_point pp ON pp.id = pc.point_id
<if
test=
"person != null and person != ''"
>
LEFT JOIN p_plan_task_detail ptd on ptd.id = pc.plan_task_detail_id
where ptd.executor_id = #{person}
</if>
) a
<include
refid=
"mobile-check-record-where"
/>
<if
test=
"orderRule == null or orderRule == ''"
>
order by checkDate
</if>
...
...
@@ -2021,6 +2025,10 @@
pc.org_code AS orgCode
FROM p_check pc
LEFT JOIN p_point pp ON pp.id = pc.point_id
<if
test=
"person != null and person != ''"
>
LEFT JOIN p_plan_task_detail ptd on ptd.id = pc.plan_task_detail_id
where ptd.executor_id = #{person}
</if>
) a
<include
refid=
"mobile-check-record-where"
/>
</select>
...
...
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