Commit 01804a2a authored by W_Y's avatar W_Y

根据任务id查询细则不通过数量

parent f76a65ee
...@@ -19,6 +19,8 @@ public interface ReviewDetailsResultMapper extends BaseMapper<ReviewDetailsResul ...@@ -19,6 +19,8 @@ public interface ReviewDetailsResultMapper extends BaseMapper<ReviewDetailsResul
List<ReviewDetailsResult> findByTaskId(@Param("taskId") Long taskId); List<ReviewDetailsResult> findByTaskId(@Param("taskId") Long taskId);
ReviewDetailsResult findByTaskIdAndDetailsId(@Param("taskId") Long taskId,@Param("reviewDetailsId") Long reviewDetailsId); ReviewDetailsResult findByTaskIdAndDetailsId(@Param("taskId") Long taskId,@Param("reviewDetailsId") Long reviewDetailsId);
Long findNotPass(@Param("taskId") Long taskId);
} }
......
package com.ruoyi.web.request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel(value = "SystemReviewTaskSubmitRequest", description = "提交体系审查问卷")
@Data
public class SystemReviewTaskSubmitRequest {
@ApiModelProperty("任务id")
private Long taskId;
@ApiModelProperty("图片地址")
private String imagesUrl;
}
...@@ -27,4 +27,9 @@ ...@@ -27,4 +27,9 @@
FROM t_review_details_result FROM t_review_details_result
WHERE task_id = #{taskId} and review_details_id = #{reviewDetailsId} WHERE task_id = #{taskId} and review_details_id = #{reviewDetailsId}
</select> </select>
<select id="findNotPass" resultType="long">
SELECT COUNT(*) sum FROM t_review_details_result
WHERE passed = 0 AND task_id = #{taskId}
</select>
</mapper> </mapper>
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