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
06b8be60
Commit
06b8be60
authored
Jan 13, 2022
by
helinlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防火监督图片查看
parent
53a66327
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
9 deletions
+18
-9
CheckController.java
...amos/supervision/business/controller/CheckController.java
+4
-2
CheckMapper.java
...oin/amos/supervision/business/dao/mapper/CheckMapper.java
+1
-1
CheckServiceImpl.java
...s/supervision/business/service/impl/CheckServiceImpl.java
+3
-3
ICheckService.java
...mos/supervision/business/service/intfc/ICheckService.java
+1
-1
dbTemplate_check.xml
...rvision/src/main/resources/db/mapper/dbTemplate_check.xml
+9
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/CheckController.java
View file @
06b8be60
...
@@ -592,8 +592,10 @@ public class CheckController extends AbstractBaseController {
...
@@ -592,8 +592,10 @@ public class CheckController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"根据检查记录查询照片"
,
notes
=
"根据检查记录查询照片"
)
@ApiOperation
(
value
=
"根据检查记录查询照片"
,
notes
=
"根据检查记录查询照片"
)
@RequestMapping
(
value
=
"/getPictureByCheckId"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getPictureByCheckId"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
getPictureByCheckId
(
@ApiParam
(
value
=
"检查记录ID"
)
@RequestParam
String
checkId
)
{
public
CommonResponse
getPictureByCheckId
(
@ApiParam
(
value
=
"检查记录ID"
)
@RequestParam
String
checkId
,
List
<
String
>
pictures
=
checkService
.
getPictureByCheckId
(
checkId
);
@ApiParam
(
value
=
"检查项ID"
)
@RequestParam
String
id
)
{
List
<
String
>
pictures
=
checkService
.
getPictureByCheckId
(
checkId
,
id
);
return
CommonResponseUtil
.
success
(
pictures
);
return
CommonResponseUtil
.
success
(
pictures
);
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/dao/mapper/CheckMapper.java
View file @
06b8be60
...
@@ -305,5 +305,5 @@ public interface CheckMapper extends BaseMapper {
...
@@ -305,5 +305,5 @@ public interface CheckMapper extends BaseMapper {
*/
*/
List
<
Check
>
getCheckListByTaskId
(
@Param
(
value
=
"planTaskId"
)
long
id
);
List
<
Check
>
getCheckListByTaskId
(
@Param
(
value
=
"planTaskId"
)
long
id
);
List
<
String
>
getPictureByCheckId
(
String
checkId
);
List
<
String
>
getPictureByCheckId
(
String
checkId
,
String
id
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/CheckServiceImpl.java
View file @
06b8be60
...
@@ -1577,7 +1577,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1577,7 +1577,7 @@ public class CheckServiceImpl implements ICheckService {
Plan
plan
=
planService
.
queryPlanById
(
planTask
.
getPlanId
());
Plan
plan
=
planService
.
queryPlanById
(
planTask
.
getPlanId
());
// 计划完成,规则推送消息
// 计划完成,规则推送消息
if
(
PlanStatusEnum
.
COMPLETED
.
getValue
()
==
plan
.
getStatus
()){
if
(
PlanStatusEnum
.
COMPLETED
.
getValue
()
==
plan
.
getStatus
())
{
rulePlanService
.
addPlanRule
(
plan
,
null
,
RuleTypeEnum
.
计划完成
,
null
);
rulePlanService
.
addPlanRule
(
plan
,
null
,
RuleTypeEnum
.
计划完成
,
null
);
}
}
...
@@ -1686,7 +1686,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1686,7 +1686,7 @@ public class CheckServiceImpl implements ICheckService {
}
}
@Override
@Override
public
List
<
String
>
getPictureByCheckId
(
String
checkId
)
{
public
List
<
String
>
getPictureByCheckId
(
String
checkId
,
String
id
)
{
return
checkMapper
.
getPictureByCheckId
(
checkId
);
return
checkMapper
.
getPictureByCheckId
(
checkId
,
id
);
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/intfc/ICheckService.java
View file @
06b8be60
...
@@ -283,5 +283,5 @@ public interface ICheckService {
...
@@ -283,5 +283,5 @@ public interface ICheckService {
Page
<
CheckVo
>
queryPage
(
CheckPageParam
criterias
);
Page
<
CheckVo
>
queryPage
(
CheckPageParam
criterias
);
List
<
String
>
getPictureByCheckId
(
String
checkId
);
List
<
String
>
getPictureByCheckId
(
String
checkId
,
String
id
);
}
}
amos-boot-system-supervision/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
06b8be60
...
@@ -2057,8 +2057,14 @@
...
@@ -2057,8 +2057,14 @@
SELECT
SELECT
photo_data
photo_data
FROM
FROM
p_check_shot
p_check_shot a
LEFT JOIN
p_check_input b
ON
a.check_input_id=b.id
WHERE
WHERE
check_id = #{checkId}
a.check_id = #{checkId}
AND
b.input_id= #{id}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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