Commit 06b8be60 authored by helinlin's avatar helinlin

防火监督图片查看

parent 53a66327
......@@ -592,8 +592,10 @@ public class CheckController extends AbstractBaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "根据检查记录查询照片", notes = "根据检查记录查询照片")
@RequestMapping(value = "/getPictureByCheckId", method = RequestMethod.GET)
public CommonResponse getPictureByCheckId(@ApiParam(value = "检查记录ID") @RequestParam String checkId) {
List<String> pictures = checkService.getPictureByCheckId(checkId);
public CommonResponse getPictureByCheckId(@ApiParam(value = "检查记录ID") @RequestParam String checkId,
@ApiParam(value = "检查项ID") @RequestParam String id
) {
List<String> pictures = checkService.getPictureByCheckId(checkId,id);
return CommonResponseUtil.success(pictures);
}
}
......@@ -305,5 +305,5 @@ public interface CheckMapper extends BaseMapper {
*/
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 {
Plan plan = planService.queryPlanById(planTask.getPlanId());
// 计划完成,规则推送消息
if (PlanStatusEnum.COMPLETED.getValue() == plan.getStatus()){
if (PlanStatusEnum.COMPLETED.getValue() == plan.getStatus()) {
rulePlanService.addPlanRule(plan, null, RuleTypeEnum.计划完成, null);
}
......@@ -1686,7 +1686,7 @@ public class CheckServiceImpl implements ICheckService {
}
@Override
public List<String> getPictureByCheckId(String checkId) {
return checkMapper.getPictureByCheckId(checkId);
public List<String> getPictureByCheckId(String checkId, String id) {
return checkMapper.getPictureByCheckId(checkId,id);
}
}
......@@ -283,5 +283,5 @@ public interface ICheckService {
Page<CheckVo> queryPage(CheckPageParam criterias);
List<String> getPictureByCheckId(String checkId);
List<String> getPictureByCheckId(String checkId,String id);
}
......@@ -2057,8 +2057,14 @@
SELECT
photo_data
FROM
p_check_shot
p_check_shot a
LEFT JOIN
p_check_input b
ON
a.check_input_id=b.id
WHERE
check_id = #{checkId}
a.check_id = #{checkId}
AND
b.input_id= #{id}
</select>
</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