From 3a9a3ed1d424c9c393aa92565932269445cb98c9 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Wed, 13 Mar 2024 14:26:44 +0800
Subject: [PATCH] 新增报警记录表

---
 src/main/java/org/springblade/modules/policeAlarmRecords/controller/PoliceAlarmRecordsController.java    |  126 ++++++++++++
 src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.xml             |   71 +++++++
 src/main/java/org/springblade/modules/policeAlarmRecords/service/impl/PoliceAlarmRecordsServiceImpl.java |   43 ++++
 src/main/java/org/springblade/modules/policeAlarmRecords/dto/PoliceAlarmRecordsDTO.java                  |   34 +++
 src/main/java/org/springblade/modules/policeAlarmRecords/entity/PoliceAlarmRecordsEntity.java            |  101 ++++++++++
 src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.java            |   43 ++++
 src/main/java/org/springblade/modules/policeAlarmRecords/vo/PoliceAlarmRecordsVO.java                    |   35 +++
 src/main/java/org/springblade/modules/policeAlarmRecords/wrapper/PoliceAlarmRecordsWrapper.java          |   50 +++++
 src/main/java/org/springblade/modules/policeAlarmRecords/service/IPoliceAlarmRecordsService.java         |   43 ++++
 9 files changed, 546 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/controller/PoliceAlarmRecordsController.java b/src/main/java/org/springblade/modules/policeAlarmRecords/controller/PoliceAlarmRecordsController.java
new file mode 100644
index 0000000..b43db70
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/controller/PoliceAlarmRecordsController.java
@@ -0,0 +1,126 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.secure.BladeUser;
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity;
+import org.springblade.modules.policeAlarmRecords.vo.PoliceAlarmRecordsVO;
+import org.springblade.modules.policeAlarmRecords.wrapper.PoliceAlarmRecordsWrapper;
+import org.springblade.modules.policeAlarmRecords.service.IPoliceAlarmRecordsService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 报警记录 控制器
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("blade-policeAlarmRecords/policeAlarmRecords")
+@Api(value = "报警记录", tags = "报警记录接口")
+public class PoliceAlarmRecordsController extends BladeController {
+
+	private final IPoliceAlarmRecordsService policeAlarmRecordsService;
+
+	/**
+	 * 报警记录 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入policeAlarmRecords")
+	public R<PoliceAlarmRecordsVO> detail(PoliceAlarmRecordsEntity policeAlarmRecords) {
+		PoliceAlarmRecordsEntity detail = policeAlarmRecordsService.getOne(Condition.getQueryWrapper(policeAlarmRecords));
+		return R.data(PoliceAlarmRecordsWrapper.build().entityVO(detail));
+	}
+	/**
+	 * 报警记录 分页
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入policeAlarmRecords")
+	public R<IPage<PoliceAlarmRecordsVO>> list(PoliceAlarmRecordsEntity policeAlarmRecords, Query query) {
+		IPage<PoliceAlarmRecordsEntity> pages = policeAlarmRecordsService.page(Condition.getPage(query), Condition.getQueryWrapper(policeAlarmRecords));
+		return R.data(PoliceAlarmRecordsWrapper.build().pageVO(pages));
+	}
+
+	/**
+	 * 报警记录 自定义分页
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入policeAlarmRecords")
+	public R<IPage<PoliceAlarmRecordsVO>> page(PoliceAlarmRecordsVO policeAlarmRecords, Query query) {
+		IPage<PoliceAlarmRecordsVO> pages = policeAlarmRecordsService.selectPoliceAlarmRecordsPage(Condition.getPage(query), policeAlarmRecords);
+		return R.data(pages);
+	}
+
+	/**
+	 * 报警记录 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入policeAlarmRecords")
+	public R save(@Valid @RequestBody PoliceAlarmRecordsEntity policeAlarmRecords) {
+		return R.status(policeAlarmRecordsService.save(policeAlarmRecords));
+	}
+
+	/**
+	 * 报警记录 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入policeAlarmRecords")
+	public R update(@Valid @RequestBody PoliceAlarmRecordsEntity policeAlarmRecords) {
+		return R.status(policeAlarmRecordsService.updateById(policeAlarmRecords));
+	}
+
+	/**
+	 * 报警记录 新增或修改
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入policeAlarmRecords")
+	public R submit(@Valid @RequestBody PoliceAlarmRecordsEntity policeAlarmRecords) {
+		return R.status(policeAlarmRecordsService.saveOrUpdate(policeAlarmRecords));
+	}
+
+	/**
+	 * 报警记录 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 7)
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(policeAlarmRecordsService.removeBatchByIds(Func.toLongList(ids)));
+	}
+
+
+}
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/dto/PoliceAlarmRecordsDTO.java b/src/main/java/org/springblade/modules/policeAlarmRecords/dto/PoliceAlarmRecordsDTO.java
new file mode 100644
index 0000000..4ff11c0
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/dto/PoliceAlarmRecordsDTO.java
@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.dto;
+
+import org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 报警记录 数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class PoliceAlarmRecordsDTO extends PoliceAlarmRecordsEntity {
+	private static final long serialVersionUID = 1L;
+
+}
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/entity/PoliceAlarmRecordsEntity.java b/src/main/java/org/springblade/modules/policeAlarmRecords/entity/PoliceAlarmRecordsEntity.java
new file mode 100644
index 0000000..1ce3813
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/entity/PoliceAlarmRecordsEntity.java
@@ -0,0 +1,101 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import org.springblade.core.tenant.mp.TenantEntity;
+
+import java.util.Date;
+
+/**
+ * 报警记录 实体类
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+@Data
+@TableName("jczz_police_alarm_records")
+@ApiModel(value = "PoliceAlarmRecords对象", description = "报警记录")
+public class PoliceAlarmRecordsEntity {
+	/** id */
+	@ApiModelProperty(value = "主键ID", example = "")
+	@TableId(value = "id", type = IdType.AUTO)
+	private Long id;
+
+	/** 房屋编码 */
+	@ApiModelProperty(value = "房屋编码", example = "")
+	@TableField("house_code")
+	private String houseCode;
+
+	/** 地址 */
+	@ApiModelProperty(value = "地址", example = "")
+	@TableField("address")
+	private String address;
+
+	/** 名称 */
+	@ApiModelProperty(value = "名称", example = "")
+	@TableField("name")
+	private String name;
+
+	/** 联系电话 */
+	@ApiModelProperty(value = "联系电话", example = "")
+	@TableField("phone")
+	private String phone;
+
+	/** (刑事案件、治安案件、纠纷、救助、举报) */
+	@ApiModelProperty(value = "(刑事案件、治安案件、纠纷、救助、举报)", example = "")
+	@TableField("alarm_type")
+	private String alarmType;
+
+	/** 0:否 1:是   是否受伤  */
+	@ApiModelProperty(value = "0:否 1:是   是否受伤 ", example = "")
+	@TableField("injury_flag")
+	private Integer injuryFlag;
+
+	/** 网格编码 */
+	@ApiModelProperty(value = "网格编码", example = "")
+	@TableField("grid_code")
+	private String gridCode;
+
+	/** 0:否 1:是 */
+	@ApiModelProperty(value = "0:否 1:是", example = "")
+	@TableField("is_deleted")
+	private Integer isDeleted;
+
+	/** 民警id */
+	@ApiModelProperty(value = "民警id", example = "")
+	@TableField("police_id")
+	private Long policeId;
+
+	/** 创建时间 */
+	@ApiModelProperty(value = "创建时间", example = "")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+	@TableField(value = "create_time",fill = FieldFill.INSERT)
+	private Date createTime;
+
+	/** 更新时间 */
+	@ApiModelProperty(value = "更新时间", example = "")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+	@TableField(value = "update_time",fill = FieldFill.UPDATE)
+	private Date updateTime;
+
+}
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.java b/src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.java
new file mode 100644
index 0000000..b0460d8
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.java
@@ -0,0 +1,43 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.mapper;
+
+import org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity;
+import org.springblade.modules.policeAlarmRecords.vo.PoliceAlarmRecordsVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 报警记录 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+public interface PoliceAlarmRecordsMapper extends BaseMapper<PoliceAlarmRecordsEntity> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param policeAlarmRecords
+	 * @return
+	 */
+	List<PoliceAlarmRecordsVO> selectPoliceAlarmRecordsPage(IPage page, PoliceAlarmRecordsVO policeAlarmRecords);
+
+
+}
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.xml b/src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.xml
new file mode 100644
index 0000000..7e43930
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/mapper/PoliceAlarmRecordsMapper.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.springblade.modules.policeAlarmRecords.mapper.PoliceAlarmRecordsMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="policeAlarmRecordsResultMap" type="org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity">
+    </resultMap>
+
+
+    <select id="selectPoliceAlarmRecordsPage" resultMap="policeAlarmRecordsResultMap">
+        select * from jczz_police_alarm_records where is_deleted = 0
+    </select>
+
+    <resultMap type="org.springblade.modules.policeAlarmRecords.dto.PoliceAlarmRecordsDTO" id="PoliceAlarmRecordsDTOResult">
+        <result property="id"    column="id"    />
+        <result property="houseCode"    column="house_code"    />
+        <result property="address"    column="address"    />
+        <result property="name"    column="name"    />
+        <result property="phone"    column="phone"    />
+        <result property="alarmType"    column="alarm_type"    />
+        <result property="injuryFlag"    column="injury_flag"    />
+        <result property="gridCode"    column="grid_code"    />
+        <result property="isDeleted"    column="is_deleted"    />
+        <result property="policeId"    column="police_id"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectPoliceAlarmRecords">
+        select
+            id,
+            house_code,
+            address,
+            name,
+            phone,
+            alarm_type,
+            injury_flag,
+            grid_code,
+            is_deleted,
+            police_id,
+            create_time,
+            update_time
+        from
+            jczz_police_alarm_records
+    </sql>
+
+<!--    <select id="selectPoliceAlarmRecordsById" parameterType="long" resultMap="PoliceAlarmRecordsDTOResult">-->
+<!--        <include refid="selectPoliceAlarmRecords"/>-->
+<!--        where-->
+<!--        id = #{id}-->
+<!--    </select>-->
+
+<!--    <select id="selectPoliceAlarmRecordsList" parameterType="org.springblade.modules.policeAlarmRecords.dto.PoliceAlarmRecordsDTO" resultMap="PoliceAlarmRecordsDTOResult">-->
+<!--        <include refid="selectPoliceAlarmRecords"/>-->
+<!--        <where>-->
+<!--            <if test="id != null "> and id = #{id}</if>-->
+<!--            <if test="houseCode != null  and houseCode != ''"> and house_code = #{houseCode}</if>-->
+<!--            <if test="address != null  and address != ''"> and address = #{address}</if>-->
+<!--            <if test="name != null  and name != ''"> and name = #{name}</if>-->
+<!--            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>-->
+<!--            <if test="alarmType != null  and alarmType != ''"> and alarm_type = #{alarmType}</if>-->
+<!--            <if test="injuryFlag != null "> and injury_flag = #{injuryFlag}</if>-->
+<!--            <if test="gridCode != null  and gridCode != ''"> and grid_code = #{gridCode}</if>-->
+<!--            <if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>-->
+<!--            <if test="policeId != null "> and police_id = #{policeId}</if>-->
+<!--            <if test="createTime != null "> and create_time = #{createTime}</if>-->
+<!--            <if test="updateTime != null "> and update_time = #{updateTime}</if>-->
+<!--        </where>-->
+<!--    </select>-->
+
+</mapper>
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/service/IPoliceAlarmRecordsService.java b/src/main/java/org/springblade/modules/policeAlarmRecords/service/IPoliceAlarmRecordsService.java
new file mode 100644
index 0000000..5472731
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/service/IPoliceAlarmRecordsService.java
@@ -0,0 +1,43 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity;
+import org.springblade.modules.policeAlarmRecords.vo.PoliceAlarmRecordsVO;
+import org.springblade.core.mp.base.BaseService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 报警记录 服务类
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+public interface IPoliceAlarmRecordsService extends IService<PoliceAlarmRecordsEntity> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param policeAlarmRecords
+	 * @return
+	 */
+	IPage<PoliceAlarmRecordsVO> selectPoliceAlarmRecordsPage(IPage<PoliceAlarmRecordsVO> page, PoliceAlarmRecordsVO policeAlarmRecords);
+
+
+}
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/service/impl/PoliceAlarmRecordsServiceImpl.java b/src/main/java/org/springblade/modules/policeAlarmRecords/service/impl/PoliceAlarmRecordsServiceImpl.java
new file mode 100644
index 0000000..a4ba3e4
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/service/impl/PoliceAlarmRecordsServiceImpl.java
@@ -0,0 +1,43 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity;
+import org.springblade.modules.policeAlarmRecords.vo.PoliceAlarmRecordsVO;
+import org.springblade.modules.policeAlarmRecords.mapper.PoliceAlarmRecordsMapper;
+import org.springblade.modules.policeAlarmRecords.service.IPoliceAlarmRecordsService;
+import org.springblade.core.mp.base.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 报警记录 服务实现类
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+@Service
+public class PoliceAlarmRecordsServiceImpl extends ServiceImpl<PoliceAlarmRecordsMapper, PoliceAlarmRecordsEntity> implements IPoliceAlarmRecordsService {
+
+	@Override
+	public IPage<PoliceAlarmRecordsVO> selectPoliceAlarmRecordsPage(IPage<PoliceAlarmRecordsVO> page, PoliceAlarmRecordsVO policeAlarmRecords) {
+		return page.setRecords(baseMapper.selectPoliceAlarmRecordsPage(page, policeAlarmRecords));
+	}
+
+
+}
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/vo/PoliceAlarmRecordsVO.java b/src/main/java/org/springblade/modules/policeAlarmRecords/vo/PoliceAlarmRecordsVO.java
new file mode 100644
index 0000000..f23b69c
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/vo/PoliceAlarmRecordsVO.java
@@ -0,0 +1,35 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.vo;
+
+import org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity;
+import org.springblade.core.tool.node.INode;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 报警记录 视图实体类
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class PoliceAlarmRecordsVO extends PoliceAlarmRecordsEntity {
+	private static final long serialVersionUID = 1L;
+
+}
diff --git a/src/main/java/org/springblade/modules/policeAlarmRecords/wrapper/PoliceAlarmRecordsWrapper.java b/src/main/java/org/springblade/modules/policeAlarmRecords/wrapper/PoliceAlarmRecordsWrapper.java
new file mode 100644
index 0000000..52d5a06
--- /dev/null
+++ b/src/main/java/org/springblade/modules/policeAlarmRecords/wrapper/PoliceAlarmRecordsWrapper.java
@@ -0,0 +1,50 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.policeAlarmRecords.wrapper;
+
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import org.springblade.modules.policeAlarmRecords.entity.PoliceAlarmRecordsEntity;
+import org.springblade.modules.policeAlarmRecords.vo.PoliceAlarmRecordsVO;
+import java.util.Objects;
+
+/**
+ * 报警记录 包装类,返回视图层所需的字段
+ *
+ * @author BladeX
+ * @since 2024-03-13
+ */
+public class PoliceAlarmRecordsWrapper extends BaseEntityWrapper<PoliceAlarmRecordsEntity, PoliceAlarmRecordsVO>  {
+
+	public static PoliceAlarmRecordsWrapper build() {
+		return new PoliceAlarmRecordsWrapper();
+ 	}
+
+	@Override
+	public PoliceAlarmRecordsVO entityVO(PoliceAlarmRecordsEntity policeAlarmRecords) {
+		PoliceAlarmRecordsVO policeAlarmRecordsVO = Objects.requireNonNull(BeanUtil.copy(policeAlarmRecords, PoliceAlarmRecordsVO.class));
+
+		//User createUser = UserCache.getUser(policeAlarmRecords.getCreateUser());
+		//User updateUser = UserCache.getUser(policeAlarmRecords.getUpdateUser());
+		//policeAlarmRecordsVO.setCreateUserName(createUser.getName());
+		//policeAlarmRecordsVO.setUpdateUserName(updateUser.getName());
+
+		return policeAlarmRecordsVO;
+	}
+
+
+}

--
Gitblit v1.9.3