From 9e194a9d6ccfdfc80c0169af6542fb192cb51eb7 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 08 Dec 2023 08:45:52 +0800
Subject: [PATCH] 新增e呼即应管理,区域查询修改

---
 src/main/java/org/springblade/modules/task/service/impl/ECallEventServiceImpl.java |   42 ++++
 src/main/java/org/springblade/common/utils/NodeTreeUtil.java                       |    2 
 src/main/java/org/springblade/modules/task/entity/ECallEventEntity.java            |  168 ++++++++++++++++
 src/main/java/org/springblade/modules/task/wrapper/ECallEventWrapper.java          |   50 +++++
 src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.java           |   45 ++++
 src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml               |    3 
 src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.xml            |   46 ++++
 src/main/java/org/springblade/modules/house/vo/HouseVO.java                        |    5 
 src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml                 |    8 
 src/main/java/org/springblade/modules/task/service/IECallEventService.java         |   43 ++++
 src/main/java/org/springblade/modules/task/vo/ECallEventVO.java                    |   35 +++
 src/main/java/org/springblade/modules/task/controller/ECallEventController.java    |  108 ++++++++++
 12 files changed, 552 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/springblade/common/utils/NodeTreeUtil.java b/src/main/java/org/springblade/common/utils/NodeTreeUtil.java
index f616629..a81edf8 100644
--- a/src/main/java/org/springblade/common/utils/NodeTreeUtil.java
+++ b/src/main/java/org/springblade/common/utils/NodeTreeUtil.java
@@ -62,7 +62,7 @@
 	 */
 	public static List<TreeStringNode> getStringNodeTree(Map<String, TreeStringNode> treeMap){
 		List<TreeStringNode> tree = new ArrayList<>();
-		if (treeMap.size() > 1) {
+		if (treeMap.size() > 0) {
 			treeMap.forEach((id, treeNode) -> {
 				if (treeMap.containsKey(treeNode.getParentId())) {
 					treeMap.get(treeNode.getParentId()).getChildren().add(treeNode);
diff --git a/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml b/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
index a0a0f72..58adc44 100644
--- a/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
+++ b/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
@@ -86,15 +86,19 @@
 
     <!--自定义分页列表-->
     <select id="selectHousePage" resultType="org.springblade.modules.house.vo.HouseVO">
-        select *,concat(building," ",unit," ",room) as address from jczz_house
+        select jh.*,concat(building," ",unit," ",room) as address from jczz_house jh
+        left join jczz_doorplate_address jda on jda.address_code = jh.house_code
         where is_deleted = 0
         <if test="house.id != null "> and id = #{house.id}</if>
+        <if test="house.streetCode != null and house.streetCode != ''">
+         and jda.town_street_code like concat('%',#{house.streetCode},'%')
+        </if>
         <if test="house.houseCode != null  and house.houseCode != ''"> and house_code = #{house.houseCode}</if>
         <if test="house.districtCode != null  and house.districtCode != ''"> and district_code = #{house.districtCode}</if>
         <if test="house.districtName != null  and house.districtName != ''">
             and district_name like concat('%',#{house.districtName},'%')
          </if>
-        <if test="house.houseName != null  and house.houseName != ''"> and house_name = #{house.houseName}</if>
+        <if test="house.houseName != null  and house.houseName != ''"> and house_name like concat('%',#{house.houseName},'%')</if>
         <if test="house.phone != null  and house.phone != ''"> and phone = #{house.phone}</if>
         <if test="house.area != null "> and area = #{house.area}</if>
         <if test="house.propertyPrice != null "> and property_price = #{house.propertyPrice}</if>
diff --git a/src/main/java/org/springblade/modules/house/vo/HouseVO.java b/src/main/java/org/springblade/modules/house/vo/HouseVO.java
index e7e5d70..325f7ea 100644
--- a/src/main/java/org/springblade/modules/house/vo/HouseVO.java
+++ b/src/main/java/org/springblade/modules/house/vo/HouseVO.java
@@ -39,5 +39,10 @@
 	 */
 	private String address;
 
+	/**
+	 * 街道编号
+	 */
+	private String streetCode;
+
 	private List<UserHouseLabelVO> userHouseLabelVOList = new ArrayList<>();
 }
diff --git a/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml b/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
index 34821a1..70fd56c 100644
--- a/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -109,6 +109,9 @@
         parent_code as parentId,
         name
         FROM blade_region where district_code = '361102'
+        <if test="parentCode!=null">
+            and parent_code = #{parentCode}
+        </if>
     </select>
 
 </mapper>
diff --git a/src/main/java/org/springblade/modules/task/controller/ECallEventController.java b/src/main/java/org/springblade/modules/task/controller/ECallEventController.java
new file mode 100644
index 0000000..6aeef6b
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/controller/ECallEventController.java
@@ -0,0 +1,108 @@
+package org.springblade.modules.task.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.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.task.entity.ECallEventEntity;
+import org.springblade.modules.task.vo.ECallEventVO;
+import org.springblade.modules.task.wrapper.ECallEventWrapper;
+import org.springblade.modules.task.service.IECallEventService;
+
+/**
+ * e呼即办表 控制器
+ *
+ * @author BladeX
+ * @since 2023-12-07
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("blade-eCallEvent/eCallEvent")
+@Api(value = "e呼即办表", tags = "e呼即办表接口")
+public class ECallEventController {
+
+	private final IECallEventService eCallEventService;
+
+	/**
+	 * e呼即办表 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入eCallEvent")
+	public R<ECallEventVO> detail(ECallEventEntity eCallEvent) {
+		ECallEventEntity detail = eCallEventService.getOne(Condition.getQueryWrapper(eCallEvent));
+		return R.data(ECallEventWrapper.build().entityVO(detail));
+	}
+	/**
+	 * e呼即办表 分页
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入eCallEvent")
+	public R<IPage<ECallEventVO>> list(ECallEventEntity eCallEvent, Query query) {
+		IPage<ECallEventEntity> pages = eCallEventService.page(Condition.getPage(query), Condition.getQueryWrapper(eCallEvent));
+		return R.data(ECallEventWrapper.build().pageVO(pages));
+	}
+
+	/**
+	 * e呼即办表 自定义分页
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入eCallEvent")
+	public R<IPage<ECallEventVO>> page(ECallEventVO eCallEvent, Query query) {
+		IPage<ECallEventVO> pages = eCallEventService.selectECallEventPage(Condition.getPage(query), eCallEvent);
+		return R.data(pages);
+	}
+
+	/**
+	 * e呼即办表 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入eCallEvent")
+	public R save(@Valid @RequestBody ECallEventEntity eCallEvent) {
+		return R.status(eCallEventService.save(eCallEvent));
+	}
+
+	/**
+	 * e呼即办表 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入eCallEvent")
+	public R update(@Valid @RequestBody ECallEventEntity eCallEvent) {
+		return R.status(eCallEventService.updateById(eCallEvent));
+	}
+
+	/**
+	 * e呼即办表 新增或修改
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入eCallEvent")
+	public R submit(@Valid @RequestBody ECallEventEntity eCallEvent) {
+		return R.status(eCallEventService.saveOrUpdate(eCallEvent));
+	}
+
+	/**
+	 * e呼即办表 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 7)
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(eCallEventService.removeByIds(Func.toLongList(ids)));
+	}
+
+
+}
diff --git a/src/main/java/org/springblade/modules/task/entity/ECallEventEntity.java b/src/main/java/org/springblade/modules/task/entity/ECallEventEntity.java
new file mode 100644
index 0000000..cf688f8
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/entity/ECallEventEntity.java
@@ -0,0 +1,168 @@
+/*
+ *      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.task.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
+import lombok.Data;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.EqualsAndHashCode;
+import org.springblade.core.tenant.mp.TenantEntity;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * e呼即办表 实体类
+ *
+ * @author BladeX
+ * @since 2023-12-07
+ */
+@Data
+@TableName("jczz_e_call_event")
+@ApiModel(value = "ECallEvent对象", description = "e呼即办表")
+public class ECallEventEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 主键
+	 */
+	@JsonSerialize(using = ToStringSerializer.class)
+	@ApiModelProperty("主键id")
+	@TableId(value = "id", type = IdType.ASSIGN_ID)
+	private Long id;
+
+	/**
+	 * 门牌地址编码
+	 */
+	@ApiModelProperty(value = "门牌地址编码")
+	private String addressCode;
+
+	/**
+	 * 事件类型
+	 */
+	@ApiModelProperty(value = "事件类型")
+	private Integer type;
+	/**
+	 * 事件名称
+	 */
+	@ApiModelProperty(value = "事件名称")
+	private String name;
+	/**
+	 * 社区编号
+	 */
+	@ApiModelProperty(value = "社区编号")
+	private String communityCode;
+	/**
+	 * 发生地点
+	 */
+	@ApiModelProperty(value = "发生地点")
+	private String scene;
+	/**
+	 * 发生时间
+	 */
+	@ApiModelProperty(value = "发生时间")
+	@DateTimeFormat(pattern = "yyyy-MM-dd")
+	@JsonFormat(pattern = "yyyy-MM-dd")
+	private Date occurrenceTime;
+	/**
+	 * 姓名
+	 */
+	@ApiModelProperty(value = "姓名")
+	private String realName;
+	/**
+	 * 联系电话
+	 */
+	@ApiModelProperty(value = "联系电话")
+	private String phone;
+	/**
+	 * 事件简述
+	 */
+	@ApiModelProperty(value = "事件简述")
+	private String remark;
+	/**
+	 * 回访情况
+	 */
+	@ApiModelProperty(value = "回访情况")
+	private String retVis;
+	/**
+	 * 处理结果
+	 */
+	@ApiModelProperty(value = "处理结果")
+	private String disRes;
+	/**
+	 * 数据来源
+	 */
+	@ApiModelProperty(value = "数据来源")
+	private String source;
+	/**
+	 * 现场图片urls
+	 */
+	@ApiModelProperty(value = "现场图片urls")
+	private String imageUrls;
+	/**
+	 * 处置状态
+	 */
+	@ApiModelProperty(value = "处置状态")
+	private Integer disStatus;
+
+	/**
+	 * 创建人
+	 */
+	@JsonSerialize(using = ToStringSerializer.class)
+	@ApiModelProperty("创建人")
+	@TableField(fill = FieldFill.INSERT)
+	private Long createUser;
+
+	/**
+	 * 创建时间
+	 */
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty("创建时间")
+	@TableField(fill = FieldFill.INSERT)
+	private Date createTime;
+
+	/**
+	 * 更新人
+	 */
+	@JsonSerialize(using = ToStringSerializer.class)
+	@ApiModelProperty("更新人")
+	@TableField(fill = FieldFill.INSERT_UPDATE)
+	private Long updateUser;
+
+	/**
+	 * 更新时间
+	 */
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	@ApiModelProperty("更新时间")
+	@TableField(fill = FieldFill.INSERT_UPDATE)
+	private Date updateTime;
+
+	/**
+	 * 是否删除
+	 */
+	@TableLogic
+	@ApiModelProperty("是否已删除 0:否  1:是")
+	private Integer isDeleted;
+
+}
diff --git a/src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.java b/src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.java
new file mode 100644
index 0000000..0bb7b4d
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.java
@@ -0,0 +1,45 @@
+/*
+ *      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.task.mapper;
+
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springblade.modules.task.entity.ECallEventEntity;
+import org.springblade.modules.task.vo.ECallEventVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * e呼即办表 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2023-12-07
+ */
+public interface EcCallEventMapper extends BaseMapper<ECallEventEntity> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param eCallEvent
+	 * @return
+	 */
+	List<ECallEventVO> selectECallEventPage(IPage page,@Param("eCallEvent") ECallEventVO eCallEvent);
+
+
+}
diff --git a/src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.xml b/src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.xml
new file mode 100644
index 0000000..f43bfb5
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/mapper/EcCallEventMapper.xml
@@ -0,0 +1,46 @@
+<?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.task.mapper.EcCallEventMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="eCallEventResultMap" type="org.springblade.modules.task.entity.ECallEventEntity">
+        <result column="id" property="id"/>
+        <result column="type" property="type"/>
+        <result column="name" property="name"/>
+        <result column="community_code" property="communityCode"/>
+        <result column="scene" property="scene"/>
+        <result column="occurrence_time" property="occurrenceTime"/>
+        <result column="real_name" property="realName"/>
+        <result column="phone" property="phone"/>
+        <result column="remark" property="remark"/>
+        <result column="dis_sit" property="disSit"/>
+        <result column="ret_vis" property="retVis"/>
+        <result column="dis_res" property="disRes"/>
+        <result column="source" property="source"/>
+        <result column="dis_status" property="disStatus"/>
+        <result column="create_time" property="createTime"/>
+        <result column="create_user" property="createUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="is_deleted" property="isDeleted"/>
+    </resultMap>
+
+    <!--自定义分页查询-->
+    <select id="selectECallEventPage" resultType="org.springblade.modules.task.vo.ECallEventVO">
+        select
+        *
+        from jczz_e_call_event
+        where is_deleted = 0
+        <if test="eCallEvent.name!=null and eCallEvent.name!=''">
+            and name like concat('%',#{eCallEvent.name},'%')
+        </if>
+        <if test="eCallEvent.phone!=null and eCallEvent.phone!=''">
+            and phone like concat('%',#{eCallEvent.phone},'%')
+        </if>
+        <if test="eCallEvent.realName!=null and eCallEvent.realName!=''">
+            and real_name like concat('%',#{eCallEvent.realName},'%')
+        </if>
+    </select>
+
+
+</mapper>
diff --git a/src/main/java/org/springblade/modules/task/service/IECallEventService.java b/src/main/java/org/springblade/modules/task/service/IECallEventService.java
new file mode 100644
index 0000000..d6a3ded
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/service/IECallEventService.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.task.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.springblade.modules.task.entity.ECallEventEntity;
+import org.springblade.modules.task.vo.ECallEventVO;
+import org.springblade.core.mp.base.BaseService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * e呼即办表 服务类
+ *
+ * @author BladeX
+ * @since 2023-12-07
+ */
+public interface IECallEventService extends IService<ECallEventEntity> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param eCallEvent
+	 * @return
+	 */
+	IPage<ECallEventVO> selectECallEventPage(IPage<ECallEventVO> page, ECallEventVO eCallEvent);
+
+
+}
diff --git a/src/main/java/org/springblade/modules/task/service/impl/ECallEventServiceImpl.java b/src/main/java/org/springblade/modules/task/service/impl/ECallEventServiceImpl.java
new file mode 100644
index 0000000..382e78e
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/service/impl/ECallEventServiceImpl.java
@@ -0,0 +1,42 @@
+/*
+ *      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.task.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springblade.modules.task.entity.ECallEventEntity;
+import org.springblade.modules.task.vo.ECallEventVO;
+import org.springblade.modules.task.mapper.EcCallEventMapper;
+import org.springblade.modules.task.service.IECallEventService;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * e呼即办表 服务实现类
+ *
+ * @author BladeX
+ * @since 2023-12-07
+ */
+@Service
+public class ECallEventServiceImpl extends ServiceImpl<EcCallEventMapper, ECallEventEntity> implements IECallEventService {
+
+	@Override
+	public IPage<ECallEventVO> selectECallEventPage(IPage<ECallEventVO> page, ECallEventVO eCallEvent) {
+		return page.setRecords(baseMapper.selectECallEventPage(page, eCallEvent));
+	}
+
+
+}
diff --git a/src/main/java/org/springblade/modules/task/vo/ECallEventVO.java b/src/main/java/org/springblade/modules/task/vo/ECallEventVO.java
new file mode 100644
index 0000000..833a1db
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/vo/ECallEventVO.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.task.vo;
+
+import org.springblade.modules.task.entity.ECallEventEntity;
+import org.springblade.core.tool.node.INode;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * e呼即办表 视图实体类
+ *
+ * @author BladeX
+ * @since 2023-12-07
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class ECallEventVO extends ECallEventEntity {
+	private static final long serialVersionUID = 1L;
+
+}
diff --git a/src/main/java/org/springblade/modules/task/wrapper/ECallEventWrapper.java b/src/main/java/org/springblade/modules/task/wrapper/ECallEventWrapper.java
new file mode 100644
index 0000000..c469cb6
--- /dev/null
+++ b/src/main/java/org/springblade/modules/task/wrapper/ECallEventWrapper.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.task.wrapper;
+
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import org.springblade.modules.task.entity.ECallEventEntity;
+import org.springblade.modules.task.vo.ECallEventVO;
+import java.util.Objects;
+
+/**
+ * e呼即办表 包装类,返回视图层所需的字段
+ *
+ * @author BladeX
+ * @since 2023-12-07
+ */
+public class ECallEventWrapper extends BaseEntityWrapper<ECallEventEntity, ECallEventVO>  {
+
+	public static ECallEventWrapper build() {
+		return new ECallEventWrapper();
+ 	}
+
+	@Override
+	public ECallEventVO entityVO(ECallEventEntity eCallEvent) {
+		ECallEventVO eCallEventVO = Objects.requireNonNull(BeanUtil.copy(eCallEvent, ECallEventVO.class));
+
+		//User createUser = UserCache.getUser(eCallEvent.getCreateUser());
+		//User updateUser = UserCache.getUser(eCallEvent.getUpdateUser());
+		//eCallEventVO.setCreateUserName(createUser.getName());
+		//eCallEventVO.setUpdateUserName(updateUser.getName());
+
+		return eCallEventVO;
+	}
+
+
+}

--
Gitblit v1.9.3