安全修改

This commit is contained in:
guoshengxiong 2024-06-12 16:09:48 +08:00
parent 1ef7d759e8
commit 3e5a90f4a8
2 changed files with 5 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class XzSecurityQualityInspectionRecordController {
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, 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 = "status", value = "状态1无需整改2待整改3待复查4待核验5合格6不合格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 = "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"),

View File

@ -316,13 +316,16 @@
<if test="param.level != null and param.level != ''">
and t.level = #{param.level}
</if>
<if test="param.status != null and param.status != '' and param.status != '7'.toString()">
<if test="param.status != null and param.status != '' and param.status != '7'.toString() and param.status != '60'.toString()">
and t.status = #{param.status}
</if>
<if test="param.status == '7'.toString()">
and t.change_limit_time <![CDATA[<]]> current_date
and t.status != 5 and t.status != 6
</if>
<if test="param.status == '60'.toString()">
and t.status != 5 and t.status != 6
</if>
<if test="param.urgentLevel != null and param.urgentLevel != ''">
and t.urgent_level = #{param.urgentLevel}
</if>