mitao
2025-03-01 fe6bd976d42a0fc35c119afc2cb3f4ec3398e7f7
bug修改
2个文件已修改
11 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java
@@ -736,6 +736,7 @@
        record1.setReportType(complaintAuditRecord.getReportType());
        record1.setSuperiorId(complaintAuditRecord.getSuperiorId());
        record1.setSort(count + 1);
        record1.setRejectReason(dto.getRejectReason());
        complaintAuditRecordService.save(record1);
    }
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml
@@ -123,7 +123,7 @@
        <where>
            scar.latest_flag = 1
            <if test="null != accountLevel and accountLevel == 5">
                and sc.report_type = 5 and sc.create_by = #{targetId}
                and scar.report_type = 5 and scar.superior_id = #{targetId}
                <if test="query.type == 0">
                    and scar.audit_type != 0 AND scar.audit_status = 0
                </if>
@@ -131,7 +131,7 @@
            <if test="null != accountLevel and accountLevel == 4">
                <if test="query.type==null">
                    and (
                    (sc.report_type = 4 and sc.create_by = #{targetId}) or (sc.superior_type = 4 and sc.superior_id = #{targetId})
                    (scar.report_type = 4 and scar.superior_id = #{targetId}) or (scar.report_type = 4 and scar.superior_id = #{targetId})
                    or ( scar.audit_type != 0 AND scar.audit_status != 1 and scar.report_type = 4 and scar.superior_id =  #{targetId})
                    )
                </if>
@@ -142,7 +142,7 @@
            <if test="null != accountLevel and accountLevel == 3">
                <if test="query.type==null">
                    and (
                    (sc.report_type = 3 and sc.create_by = #{targetId}) or (sc.superior_type = 3 and sc.superior_id = #{targetId})
                    (scar.report_type = 3 and scar.superior_id = #{targetId}) or (scar.report_type = 3 and scar.superior_id = #{targetId})
                    or (scar.audit_type != 0 AND scar.audit_status != 1 and scar.report_type = 3 and scar.superior_id =  #{targetId})
                    )
                </if>
@@ -152,7 +152,7 @@
            </if>
            <if test="null != accountLevel and accountLevel == 2">
                <if test="query.type==null">
                    and ((sc.report_type = 2 and sc.create_by = #{targetId}) or (sc.superior_type = 2 and sc.superior_id = #{targetId})
                    and ((scar.report_type = 2 and scar.superior_id = #{targetId}) or (scar.report_type = 2 and scar.superior_id = #{targetId})
                    or (scar.audit_type != 0 AND scar.audit_status != 1 and scar.report_type = 2 and scar.superior_id =  #{targetId})
                    )
                </if>
@@ -162,7 +162,7 @@
            </if>
            <if test="null != accountLevel and accountLevel == 1">
                <if test="query.type == null">
                    and ((sc.report_type = 1 and sc.create_by = #{targetId}) or (sc.superior_type = 1 and sc.superior_id = #{targetId})
                    and ((scar.report_type = 1 and scar.superior_id = #{targetId}) or (scar.report_type = 1 and scar.superior_id = #{targetId})
                    or (scar.audit_type != 0 AND scar.audit_status != 1 and scar.report_type = 1 and scar.superior_id =  #{targetId}))
                </if>
                <if test="query.type == 0">