智慧管家物业管理系统(小组项目)

目录

前言

一、项目介绍

1、目的和背景

2、项目主要内容 

 3、技术介绍

二、功能模块

1、重要文件结构

2、功能实现(部分个人负责模块功能)

2.1 展示房源信息页面

2.2 房屋详情页面

2.3  房源信息管理

三、功能模块页面

1、前台模块

2、后台模块 

四、总结


前言

经过前段时间对于Ajax、springboot、vue3以及若依框架的学习,我们进行了一个小组项目,项目的内容是物业管理系统(物业管理系统主要是实现对小区内建筑物、公共设施、业主信息以及各项服务的高效、便捷管理),其中我们小组还添加了关于租房的功能业务。

下面是关于我们这次项目的内容介绍。

一、项目介绍

1、目的和背景

提升物业管理效率:

通过引入信息化管理系统,提高物业管理的效率和准确性,降低人力成本。

推动智慧型社区建设:

作为智慧型社区的重要组成部分,小区物业管理系统有助于实现社区智能化、便捷化和安全化。

加强业主满意度:

通过优化服务流程,提高服务质量,增强业主对物业管理的满意度。

2、项目主要内容 

前台:

  1. 登录注册
  2. 显示租房信息
  3. 查看房源详情信息
  4. 查看个人中心
  5. 收藏感兴趣的房源
  6. 历史浏览记录
  7. 租房下单
  8. 缴费

后台: 

  1. 登录
  2. 系统管理
  3. 租赁管理
  4. 房屋管理
  5. 服务请求管理
  6. 收费管理
  7. 缴费管理

 3、技术介绍

前台内容主要是使用html和Ajax完成

后台内容主要是依靠若依框架使用vue3完成

  •  Ajax:AJAX是一种用于创建快速动态网页的技术。通过在后台与服务器进行少量数据交换,可以在不重新加载整个页面的情况下,实现网页的局部更新和快速响应。
  • Spring Boot:SpringBoot是一个由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。
  • Vue3:Vue3是一个轻量、高效、响应式的现代前端框架,用于构建用户界面。引入了许多新功能和性能改进。
  • 若依框架:若依框架是基于JAVA语言的开源Web应用程序框架,采用了Spring Boot、SpringCloud等核心技术,同时也支持多种安全框架和持久层框架。

二、功能模块

1、重要文件结构

2、功能实现(部分个人负责模块功能)

2.1 展示房源信息页面

(1)关联表:

(2)主要sql语句

<resultMap id="houseResources" type="House">
        <id column="id" property="id"></id>
        <result column="lease_time" property="leaseTime"></result>
        <result column="status" property="status"></result>
        <result column="room_id" property="roomId"></result>
        <result column="facilities" property="facilities"></result>
        <result column="img" property="img"></result>
        <result column="description" property="description"></result>
        <result column="price" property="price"></result>
        <result column="rental_methods" property="rentalMethods"></result>
        <result column="room_num" property="roomNum"></result>
        <result column="floor" property="floor"></result>
        <result column="room_type" property="roomType"></result>
        <result column="area" property="area"></result>
        <result column="user_id" property="userId"></result>
        <result column="unit_id" property="unitId"></result>
        <result column="toward" property="toward"></result>
        <result column="unit_name" property="unitName"></result>
        <result column="type" property="type"></result>
        <result column="name" property="name"></result>
        <result column="completion_time" property="completionTime"></result>
        <result column="mobile" property="mobile"></result>
        <result column="nick_name" property="nickName"></result>
    </resultMap>

    <select id="queryByStatus" resultMap="houseResources">
        SELECT h.*,
               r.*,
               hu.unit_name,
               hb.*,
               u.mobile,
               u.nick_name
        FROM house_resources h
                 JOIN room r ON h.room_id = r.id
                 JOIN house_unit hu ON r.unit_id = hu.id
                 JOIN house_building hb ON hu.build_id = hb.id
                 left JOIN `sys_user` u ON u.user_id = r.user_id
        WHERE h.STATUS = "0"
    </select>

    <select id="queryByPage" parameterType="HouseConditionVO" resultMap="houseResources">
        SELECT
        h.*,
        r.*,
        hu.unit_name,
        hb.*,
        u.mobile,
        u.nick_name
        FROM
        house_resources h
        JOIN room r ON h.room_id = r.id
        JOIN house_unit hu ON r.unit_id = hu.id
        JOIN house_building hb ON hu.build_id = hb.id
        left JOIN `sys_user` u ON u.user_id = r.user_id
        <where>
            h.STATUS = "0"
            <if test="roomType != ''">
                and room_type like '%${roomType}%'
            </if>
        </where>
        limit ${(pageIndex - 1) * pageCount},#{pageCount}
    </select>

(3)控制层 (查询与分页)

    @GetMapping(value = {"/index","/8080/index"})
    @ResponseBody
    public Map show() throws Exception {
        Map map = new HashMap<>();
        List<House> house = houseService.queryByStatus();
        map.put("code","200");
        map.put("msg","查询成功");
        map.put("data",house);
        return map;
    }

    @GetMapping(value = {"/queryByPage","/8080/queryByPage"})
    @ResponseBody
    public PageBean queryByPage(HouseConditionVO houseConditionVO){
        //调用分页条件查询,响应分页模型对象
        PageBean<House> house = houseService.queryByPage(houseConditionVO);
        return house;
    }

(4)页面显示(Ajax代码) 

包含点击图片时跳转到详情页面

<script type="text/javascript">
    var tId;

    $(function () {
      loadbypage(pageindex);

      $("#TypeSearch").click(function () {
        loadbypage(1);
      })

    });

    var pageindex = 1;
    var pagecount = 6;
    var totalpage = 0;

    function loadbypage(index) {
      pageindex = index;
      $.ajax({
        url: "/house/8080/queryByPage",
        type: "get",
        data: {
          roomType: $("#roomType").val(),
          pageIndex: pageindex,
          pageCount: pagecount
        },
        dataType: "json",
        success: function (result) {
          //获取分页的属性值
          pageindex = result.currentPage;
          pagecount = result.rows;
          totalpage = result.totalPage;

          var jsons = result.list;

          //清空表格主体内容
          $("#pro").empty();
          //循环json数组将值绑定到表格中
          var str = "";
          for (let i = 0; i < jsons.length; i++) {
            //获取循环的某一个json对象  {}
            var pro = jsons[i];

            str = "<div id='room' class=\"list-item\" style='width: 100%;'  >\n" +
                    "<a href='javascript:void(0)' onclick='detailsProduct(" + pro.id + ")'>\n" +
                    "        <img class=\"item-image\" src='" + pro.img + "' alt=\"图片1\" display='inline-block'  width='270px'  />\n" +
                    "        <div class=\"item-description\" style='display:inline-block;vertical-align: top' >\n" +
                    "          <h3 class=\"item-title\">幸福里" + pro.name + pro.unitName + "</h3>\n" +
                    "          <p class=\"item-text\">" + pro.roomType + " | " + pro.area + "平米</p>\n" +
                    "          <div class=\"item-actions\">\n" +
                    "            <button class=\"item-button\">" + pro.rentalMethods + "</button>\n" +
                    "            <span class=\"item-span\">" + pro.price + "元/月</span>\n" +
                    "          </div>\n" +
                    "        </div>\n" +
                    "      </div>";

            //循环向指定标签对象中追加元素内容
            $("#pro").append(str);
          }

          //绑定分页链接
          var pageStr = '<span><b style="margin-left: 110px">总计:' + result.totalCount + '条</b></span>';

          //当前页面不等于1时
          if (pageindex != 1) {
            pageStr += '<a href = "javascript:void(0)" style="color:#000000";style="margin-left: 186px;" onclick="loadbypage(pageindex - 1)"><button class="page-link">上一页</button></a>';
          }

          for (let i = 1; i <= totalpage; i++) {
            if (i == pageindex) {
              pageStr += '<span>[' + i + ']</span>';
            } else {
              pageStr += '<a href="javascript:void(0)" style="color:black";style="margin-left: 186px;" onclick="loadbypage(' + i + ')"><button class="page-link active">' + i + '</button></a>';
            }
          }

          //当前页面不等于最后一页时
          if (pageindex != totalpage) {
            pageStr += '<a href = "javascript:void(0)" style="color:black";style="margin-left: 186px;" onclick="loadbypage(pageindex + 1)"><button class="page-link">下一页</button></a>';
          }

          $("#pageDiv").empty();
          $("#pageDiv").append(pageStr);
        }
      });
    }

    //内容的跳转
    function detailsProduct(id) {
      tId = localStorage.getItem("tId"); // 获取租户的id

      $.ajax({
        url: "/history/8080/add",
        type: "post",
        //contentType: "application/json",
        data: {
          hrId: id,
          tId: tId
        },
        dataType: "json",
        success:function (){
          localStorage.setItem("id", id);
          location.href = "details.html";
        }
      });
    }
  </script>

2.2 房屋详情页面

(1)关联表(同房源信息展示)

(2)主要sql语句

    <select id="queryAllById" parameterType="Long" resultMap="houseResources">
        SELECT h.*,
               r.*,
               hu.unit_name,
               hb.*,
               u.mobile,
               u.nick_name
        FROM house_resources h
                 JOIN room r ON h.room_id = r.id
                 JOIN house_unit hu ON r.unit_id = hu.id
                 JOIN house_building hb ON hu.build_id = hb.id
                 left JOIN `sys_user` u ON u.user_id = r.user_id
        WHERE h.STATUS = "0"
          and h.id = #{id}
    </select>

(3)控制层

@GetMapping(value = {"/{id}","/8080/{id}"})
    @ResponseBody
    public ResponseData<House> getById(@PathVariable Long id) throws Exception {
        return ResponseDataUtil.buildOk(houseService.queryAllById(id));
    }

(4)页面显示(主要Ajax代码) 

    $(function() {
        //获取路径地址中的编号
        id = localStorage.getItem("id");
      });

    function loadPage(id) {
        $.get("/house/8080/"+id,{
          id:id
        },function (result) {
          if (result.meta.status == 200) {
            var pro = result.data;

            $("#img").attr("src",pro.img);
            $("#name").html("幸福里"+pro.name+pro.unitName);
            $("#roomNum").html(pro.roomNum);
            $("#roomType").html(pro.roomType);
            $("#area").html(pro.area);
            $("#price").html(pro.price+"/月");
            $("#mobile").html(pro.mobile);

          }
        },"json");

      }

2.3  房源信息管理

(1) 页面显示

<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="租赁时间" prop="leaseTime">
        <el-input
          v-model="queryParams.leaseTime"
          placeholder="请输入租赁时间"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="房间号" prop="roomNum">
        <el-input
          v-model="queryParams.roomNum"
          placeholder="请输入房间号"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="卧室设施" prop="facilities">
        <el-input
          v-model="queryParams.facilities"
          placeholder="请输入卧室设施"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="描述" prop="description">
        <el-input
          v-model="queryParams.description"
          placeholder="请输入描述"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="价格" prop="price">
        <el-input
          v-model="queryParams.price"
          placeholder="请输入价格"
          clearable
          @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
        <el-button icon="Refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="Plus"
          @click="handleAdd"
          v-hasPermi="['system:resources:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="Edit"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['system:resources:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="Delete"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['system:resources:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="Download"
          @click="handleExport"
          v-hasPermi="['system:resources:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="resourcesList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="房源编号" align="center" prop="id" />
      <el-table-column label="租赁时间" align="center" prop="leaseTime" />
        <el-table-column label="是否出租" align="center" prop="status">
            <template #default="scope">
                <span>{{ getStatusText(scope.row) }}</span>
            </template>
        </el-table-column>
      <el-table-column label="房间号" align="center" prop="roomNum" />
      <el-table-column label="楼栋" align="center" prop="name" />
      <el-table-column label="单元" align="center" prop="unitName" />
      <el-table-column label="卧室设施" align="center" prop="facilities" />
      <el-table-column label="图片" align="center" prop="img" width="100">
        <template #default="scope">
          <image-preview :src="scope.row.img" :width="50" :height="50"/>
        </template>
      </el-table-column>
      <el-table-column label="描述" align="center" prop="description" />
      <el-table-column label="价格" align="center" prop="price" />
      <el-table-column label="租房方式" align="center" prop="rentalMethods" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template #default="scope">
          <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:resources:edit']">修改</el-button>
          <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:resources:remove']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <pagination
      v-show="total>0"
      :total="total"
      v-model:page="queryParams.pageNum"
      v-model:limit="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改房源对话框 -->
    <el-dialog :title="title" v-model="open" width="500px" append-to-body>
      <el-form ref="resourcesRef" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="租赁时间" prop="leaseTime">
          <el-input v-model="form.leaseTime" placeholder="请输入租赁时间" />
        </el-form-item>
        <el-form-item label="房间ID" prop="roomId">
          <el-input v-model="form.roomId" placeholder="请输入房间ID" />
        </el-form-item>
        <el-form-item label="卧室设施" prop="facilities">
          <el-input v-model="form.facilities" placeholder="请输入卧室设施" />
        </el-form-item>
        <el-form-item label="图片" prop="img">
          <image-upload v-model="form.img"/>
        </el-form-item>
        <el-form-item label="描述" prop="description">
          <el-input v-model="form.description" placeholder="请输入描述" />
        </el-form-item>
        <el-form-item label="价格" prop="price">
          <el-input v-model="form.price" placeholder="请输入价格" />
        </el-form-item>
        <el-form-item label="租房方式" prop="rentalMethods">
              <el-input v-model="form.rentalMethods" placeholder="请输入租房方式" />
        </el-form-item>
        <el-form-item label="是否出租" prop="status">
              <el-radio-group v-model="form.status">
                  <el-radio :label="1">已出租</el-radio>
                  <el-radio :label="0">未出租</el-radio>
              </el-radio-group>
        </el-form-item>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitForm">确 定</el-button>
          <el-button @click="cancel">取 消</el-button>
        </div>
      </template>
    </el-dialog>
  </div>
</template>

<script setup name="Resources">
import { listResources, getResources, delResources, addResources, updateResources } from "@/api/rent/resources";

const { proxy } = getCurrentInstance();

const resourcesList = ref([]);
const open = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const title = ref("");

const data = reactive({
  form: {},
  queryParams: {
    pageNum: 1,
    pageSize: 10,
    leaseTime: null,
    status: null,
    roomNum: null,
    facilities: null,
    img: null,
    description: null,
    price: null,
    rentalMethods: null
  },
  rules: {
    roomId: [
      { required: true, message: "外键列不能为空", trigger: "blur" }
    ],
  }
});

const { queryParams, form, rules } = toRefs(data);

/** 查询房源列表 */
function getList() {
  loading.value = true;
  listResources(queryParams.value).then(response => {
    resourcesList.value = response.rows;
    total.value = response.total;
    loading.value = false;
  });
}

// 取消按钮
function cancel() {
  open.value = false;
  reset();
}

//0:未出租 1:已出租
function getStatusText(row) {

    return row.status == 1 ? '已出租' : '未出租';
}

// 表单重置
function reset() {
  form.value = {
    id: null,
    leaseTime: null,
    status: null,
    roomId: null,
    facilities: null,
    img: null,
    description: null,
    price: null,
    rentalMethods: null
  };
  proxy.resetForm("resourcesRef");
}

/** 搜索按钮操作 */
function handleQuery() {
  queryParams.value.pageNum = 1;
  getList();
}

/** 重置按钮操作 */
function resetQuery() {
  proxy.resetForm("queryRef");
  handleQuery();
}

// 多选框选中数据
function handleSelectionChange(selection) {
  ids.value = selection.map(item => item.id);
  single.value = selection.length != 1;
  multiple.value = !selection.length;
}

/** 新增按钮操作 */
function handleAdd() {
  reset();
  open.value = true;
  title.value = "添加房源";
}

/** 修改按钮操作 */
function handleUpdate(row) {
  reset();
  const _id = row.id || ids.value
  getResources(_id).then(response => {
    form.value = response.data;
    open.value = true;
    title.value = "修改房源";
  });
}

/** 提交按钮 */
function submitForm() {
  proxy.$refs["resourcesRef"].validate(valid => {
    if (valid) {
      if (form.value.id != null) {
        updateResources(form.value).then(response => {
          proxy.$modal.msgSuccess("修改成功");
          open.value = false;
          getList();
        });
      } else {
        addResources(form.value).then(response => {
          proxy.$modal.msgSuccess("新增成功");
          open.value = false;
          getList();
        });
      }
    }
  });
}

/** 删除按钮操作 */
function handleDelete(row) {
  const _ids = row.id || ids.value;
  proxy.$modal.confirm('是否确认删除房源编号为"' + _ids + '"的数据项?').then(function() {
    return delResources(_ids);
  }).then(() => {
    getList();
    proxy.$modal.msgSuccess("删除成功");
  }).catch(() => {});
}

/** 导出按钮操作 */
function handleExport() {
  proxy.download('system/resources/export', {
    ...queryParams.value
  }, `resources_${new Date().getTime()}.xlsx`)
}

getList();
</script>

 (2)api方法

import request from '@/utils/request'

// 查询房源列表
export function listResources(query) {
  return request({
    url: 'house/list',
    method: 'get',
    params: query
  })
}

// 查询房源详细
export function getResources(id) {
  return request({
    url: 'house/room/' + id,
    method: 'get'
  })
}

// 新增房源
export function addResources(data) {
  return request({
    url: 'house',
    method: 'post',
    data: data
  })
}

// 修改房源
export function updateResources(data) {
  return request({
    url: 'house',
    method: 'put',
    data: data
  })
}

// 删除房源
export function delResources(id) {
  return request({
    url: 'house/' + id,
    method: 'delete'
  })
}

(3)增加修改页面 

三、功能模块页面

1、前台模块

(1)登录注册

(2)显示租房信息

(3)查看房源详情信息

(4)个人中心(用户登录后在个人中心可以显示个人信息)

(5)收藏感兴趣的房源

(6)历史浏览记录

(7)租房下单

(8)缴费

2、后台模块 

(1)登录

(2)系统管理(包含用户管理、角色管理、菜单管理、字典管理)

如:用户管理

(3)租赁管理(包含租赁订单管理、房源信息管理)

如:房源信息管理

(4)房屋管理(包含楼栋管理、单元管理、房间管理)

如:房间管理

(5)服务请求管理(包含报修信息管理、投诉信息管理)

如:报修信息管理

(6)收费管理(包含水费余额、电费余额)

如:水费余额

(7)缴费管理(包含电费缴费记录、水费缴费记录)

 如: 电费缴费记录

四、总结

  • 深刻体会到了团队协作与项目管理的重要性,及时与团队成员的交流和讨论还是很重要的,只有这样问题才能快速解决项目中遇到的问题
  • 经过这次的项目又重新的让我熟练使用Ajax技术
  • 熟悉了若依框架,能够快速的写出若依框架的一些简单功能

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/619433.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

【Mac】Ghost Buster Pro(苹果电脑内存清理专家) v3.2.5安装教程

软件介绍 Ghost Buster pro是一款针对Mac系统的电脑清理和优化工具&#xff0c;可以帮助用户清理系统垃圾、修复注册表错误、卸载不需要的软件、管理启动项等&#xff0c;从而提高系统性能和稳定性。 安装教程 1.打开镜像包&#xff0c;拖动「Ghost Buster Pro」到应用程序中…

UnitTest / pytest 框架

文章目录 一、UnitTest框架1. TestCase使用2. TestSuite 和 TestRunner3. TestLoader4. Fixture装置5. UnitTest断言1. 登录案例 6. 参数化1. parameterized插件 7. unitTest 跳过 二、pytest 框架1. 运行方式3.读取配置文件(常用方式) 2. pytest执行用例的顺序1. 分组执行(冒烟…

华为数据之道第二部分导读

目录 导读 第二部分 第4章 面向“业务交易”的信息架构建设 信息架构的四个组件 数据资产目录 数据标准 数据模型 数据分布 信息架构原则&#xff1a;建立企业层面的共同行为准则 信息架构建设核心要素&#xff1a;基于业务对象进行设计和落地 按业务对象进行架构设…

vue3+ts--实际开发之--table表格打印或者保存

vue3实现指定区域打印&#xff08;导出&#xff09;功能-主要是解决分页内容分割问题 一、 问题页面效果二、 Print.js相关属性 和使用1. 介绍2. 安装引入3. PrintJS参数配置表 三 、解决关于分页文字或者表格被分割问题&#xff0c;解决后如下&#xff1a;1. 设置一个自定义ta…

20240512,函数对象,常用算法:遍历,查找

函数对象 函数对象基本使用 重载 函数调用操作符 的类&#xff0c;其对象被称为函数对象&#xff1b;函数对象使用重载的&#xff08;&#xff09;时&#xff0c;行为类似函数调用&#xff0c;也叫仿函数 函数对象&#xff08;仿函数&#xff09;本质是一个类&#xff0c;不是…

创新案例|为何农夫山泉创新战略升级为一家零售科技公司

农夫山泉上市的消息被公之于众后&#xff0c;几乎所有人都将目光投向了这家国内家喻户晓的饮料公司&#xff0c;谁都想第一时间内窥探它的庐山真面目。 当然&#xff0c;在此之前已经有多路消息通过旁敲侧击&#xff0c;从管窥中获取了一些农夫山泉的真实数据。 去年6月&…

OCR技术在历史文献数字化中的革命性作用

随着数字化技术的不断发展&#xff0c;历史文献的数字化已成为保存和传播文化遗产的重要途径。其中&#xff0c;光学字符识别&#xff08;OCR&#xff09;技术在历史文献数字化中发挥了革命性的作用&#xff0c;为研究者提供了更广阔的研究空间&#xff0c;推动了历史学研究的发…

Golang | Leetcode Golang题解之第86题分隔链表

题目&#xff1a; 题解&#xff1a; func partition(head *ListNode, x int) *ListNode {small : &ListNode{}smallHead : smalllarge : &ListNode{}largeHead : largefor head ! nil {if head.Val < x {small.Next headsmall small.Next} else {large.Next hea…

Web安全:SQL注入之布尔盲注原理+步骤+实战操作

「作者简介」&#xff1a;2022年北京冬奥会网络安全中国代表队&#xff0c;CSDN Top100&#xff0c;就职奇安信多年&#xff0c;以实战工作为基础对安全知识体系进行总结与归纳&#xff0c;著作适用于快速入门的 《网络安全自学教程》&#xff0c;内容涵盖系统安全、信息收集等…

Pytorch基础:环境变量CUDA_VISIBLE_DEVICES

相关阅读 Pytorch基础https://blog.csdn.net/weixin_45791458/category_12457644.html?spm1001.2014.3001.5482 CUDA_VISIBLE_DEVICES这个环境变量可以影响CUDA能识别到的GPU&#xff0c;并影响它映射到的cuda设备编号。 首先我们知道使用nvidia-smi命令可以查询本机GPU的相关…

vue element checkbox的实现

实现多选非常简单: 手动添加一个el-table-column&#xff0c;设type属性为selection即可&#xff1b;默认情况下若内容过多会折行显示&#xff0c;若需要单行显示可以使用show-overflow-tooltip属性&#xff0c;它接受一个Boolean&#xff0c;为true时多余的内容会在 hover 时以…

实验过程演示【计算机网络实验】

前言 这是陈旧已久的草稿2023-05-20 11:23:54 这个是计算机网络的一个实验&#xff0c;现在也不知道这个是啥来着。 现在2024-5-12 22:33:17&#xff0c;发布到[计算机网络实验]专栏中。 实验过程演示 2023-5-18 20:17:45 1&#xff0e;搭建一个多跳网络拓扑&#xff0c;…

回炉重造java----多线程

概念 注&#xff1a; main方法其实也是一个线程。在java中所以的线程都是同时启动的&#xff0c;至于什么时候&#xff0c;哪个先执行&#xff0c;完全看谁先得到CPU的资源。在java中&#xff0c;每次程序运行至少启动2个线程。一个是main线程&#xff0c;一个是垃圾收集(gc )线…

Hikyuu高性能量化研究框架助力探索

Hikyuu Quant Framework 是一款基于C/Python的开源量化交易分析与研究工具&#xff0c;主要用于A股市场的交易策略分析与回测&#xff0c;目前不支持期货等&#xff0c;需要自行改造。 Hikyuu的目标 Hikyuu的最初目的是为了快速对A股全市场股票进行策略回测和验证&#xff0c…

[数据集][目标检测]电力场景安全帽检测数据集VOC+YOLO格式295张2类别

数据集格式&#xff1a;Pascal VOC格式YOLO格式(不包含分割路径的txt文件&#xff0c;仅仅包含jpg图片以及对应的VOC格式xml文件和yolo格式txt文件) 图片数量(jpg文件个数)&#xff1a;295 标注数量(xml文件个数)&#xff1a;295 标注数量(txt文件个数)&#xff1a;295 标注类别…

Git之revert的使用

问题场景&#xff1a; 提交代码都是以merge request的形式合并到主分支master的。 由于有一个merge request被误merge了&#xff0c;这期间又有同时merge了其它内容。 如何快速将这个被误merge的request从master上revert呢&#xff1f; 实例演示&#xff1a; 下面是最近的5…

消息中间件Kafka(PHP版本)

小编最近需要用到消息中间件&#xff0c;有需要要复习一下以前的东西&#xff0c;有需要的自取&#xff0c;强调一点&#xff0c;如果真的想了解透彻&#xff0c;一定要动手&#xff0c;脑袋会了不代表就会写了 Kafka是由Scala和Java编写。Kafka是一种高吞吐量的分布式发布订阅…

Debian Linux 下给Nginx 1.26.0 编译增加Brotli算法支持

明月发现参考【给Nginx添加谷歌Brotli压缩算法支持】一文给出的方法&#xff0c;在Debian Linux 12.5下就一直编译失败&#xff0c;主要的错误是因为文件缺失&#xff0c;在专门又安装了apt-get install libbrotli-dev的依赖库后依然会因为文件缺失无法编译完成&#xff0c;就这…

用 Python 从头开始​​编写线性回归

找到最佳拟合线的方法是使用梯度下降&#xff0c;我们将随机绘制一条线&#xff0c;计算该线的误差 计算误差 给定m和b&#xff0c;我们将计算直线的误差。Eeeor用sigma表示法表示 def compute_error_for_line_given_points(b, m, points):totalError 0for i in range(0, len…

安装conda并搭建python环境(入门教程)

文章目录 1. 什么是 conda&#xff1f;1.1 Conda 与 Anaconda 的区别1.2 Conda 与 pip 的区别 2. 下载安装3. 配置并使用 conda3.1 配置下载源3.2 环境管理3.2.1 创建&#xff08;删除&#xff09;环境3.2.2 激活&#xff08;切换&#xff09;环境3.2.2 下载&#xff08;卸载&a…