xuhy
2023-04-13 35bb07ddedd5cd446d8859b851c21bdad29c3246
management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TComplaintMapper.xml
@@ -43,8 +43,14 @@
            <if test="state != null">
                AND c.state = #{state}
            </if>
            <if test="roleType != null and roleType == 2">
                AND d.branchOfficeId = #{objectId}
            </if>
            <if test="roleType != null and roleType == 3">
                AND d.agentId = #{objectId}
            </if>
        </where>
        ORDER BY c.state
        ORDER BY c.state,c.createTime DESC
    </select>
</mapper>