质量和安全增加已撤回的筛选

This commit is contained in:
guoshengxiong 2024-07-05 14:27:29 +08:00
parent 711cebe20d
commit 388665b8ee
4 changed files with 8 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class QualityInspectionRecordController {
@ApiImplicitParam(name = "regionId", value = "检查部位ID", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "regionId", value = "检查部位ID", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "itemId", value = "子任务ID", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "itemId", value = "子任务ID", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "status", value = "状态1无需整改2待整改3待复查4待核验5合格60未合格7超期未关闭", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "status", value = "状态1无需整改2待整改3待复查4待核验5合格60未合格7超期未关闭", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "recordStatus", value = "查询类型1排查记录2已闭合3未闭合4超期未关闭5待整改6待复查7待核验", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "recordStatus", value = "查询类型1排查记录2已闭合3未闭合4超期未关闭5待整改6待复查7待核验8不包含已撤回", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "urgentLevel", value = "紧急程度1一般2严重3紧要", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "urgentLevel", value = "紧急程度1一般2严重3紧要", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "level", value = "问题等级1一级2二级3三级4四级", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "level", value = "问题等级1一级2二级3三级4四级", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "changeId", value = "整改人", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "changeId", value = "整改人", paramType = "body", required = false, dataType = "String"),

View File

@ -262,6 +262,9 @@
LEFT join subdivision_project subsection on subsection.id = a.subsection_id LEFT join subdivision_project subsection on subsection.id = a.subsection_id
LEFT join subdivision_project subentry on subentry.id = a.subentry_id LEFT join subdivision_project subentry on subentry.id = a.subentry_id
WHERE a.project_sn = #{param.projectSn} WHERE a.project_sn = #{param.projectSn}
<if test="param.recordStatus == '8'.toString() ">
and a.status != 6
</if>
<if test="param.enterpriseId != null and param.enterpriseId != ''"> <if test="param.enterpriseId != null and param.enterpriseId != ''">
and a.enterprise_id = #{param.enterpriseId} and a.enterprise_id = #{param.enterpriseId}
</if> </if>

View File

@ -67,7 +67,7 @@ public class XzSecurityQualityInspectionRecordController {
@ApiImplicitParam(name = "regionId", value = "检查部位ID", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "regionId", value = "检查部位ID", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "itemId", value = "子任务ID", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "itemId", value = "子任务ID", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "status", value = "状态1无需整改2待整改3待复查4待核验5合格60未合格7超期未关闭", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "status", value = "状态1无需整改2待整改3待复查4待核验5合格60未合格7超期未关闭", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "recordStatus", value = "查询类型1排查记录2已闭合3未闭合4超期未关闭5待整改6待复查7待核验", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "recordStatus", value = "查询类型1排查记录2已闭合3未闭合4超期未关闭5待整改6待复查7待核验8不包含已撤回", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "urgentLevel", value = "紧急程度1一般2严重3紧要", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "urgentLevel", value = "紧急程度1一般2严重3紧要", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "level", value = "问题等级1一级2二级3三级4四级", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "level", value = "问题等级1一级2二级3三级4四级", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "changeId", value = "整改人", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "changeId", value = "整改人", paramType = "body", required = false, dataType = "String"),

View File

@ -271,6 +271,9 @@
LEFT JOIN (SELECT quality_id,MAX(rectify_time) as rectify_time FROM xz_security_quality_rectify_record GROUP BY LEFT JOIN (SELECT quality_id,MAX(rectify_time) as rectify_time FROM xz_security_quality_rectify_record GROUP BY
quality_id) r ON r.quality_id = t.id quality_id) r ON r.quality_id = t.id
WHERE t.project_sn = #{param.projectSn} WHERE t.project_sn = #{param.projectSn}
<if test="param.recordStatus == '8'.toString() ">
and t.status != 6
</if>
<if test="param.type != null and param.type != ''"> <if test="param.type != null and param.type != ''">
and t.type = #{param.type} and t.type = #{param.type}
</if> </if>