Commit 06b8be60 authored by helinlin's avatar helinlin

防火监督图片查看

parent 53a66327
...@@ -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);
} }
} }
...@@ -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);
} }
...@@ -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);
} }
} }
...@@ -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);
} }
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment